Changes

Jump to navigation Jump to search
No change in size ,  00:40, 8 November 2021
m
Text replacement - "''e.g.''," to "''e.g.,''"
Line 112: Line 112:  
* between an [[Modding:Object data|item ID]] and category ID;
 
* between an [[Modding:Object data|item ID]] and category ID;
 
* between a universal taste and personal taste;
 
* between a universal taste and personal taste;
* between conflicting values (''e.g.'', Jodi both loves and hates Daffodils (item ID 18) specifically);
+
* between conflicting values (''e.g.,'' Jodi both loves and hates Daffodils (item ID 18) specifically);
* and any combination of the above (''e.g.'', between a universal item ID and personal category ID).
+
* and any combination of the above (''e.g.,'' between a universal item ID and personal category ID).
    
The game uses a rather complicated algorithm to determine how much an NPC likes an gift (see <samp>NPC::getGiftTasteForThisItem</samp>). Here's a cleaned up version of the algorithm in pseudocode:
 
The game uses a rather complicated algorithm to determine how much an NPC likes an gift (see <samp>NPC::getGiftTasteForThisItem</samp>). Here's a cleaned up version of the algorithm in pseudocode:
107,395

edits

Navigation menu