Changes

Jump to navigation Jump to search
Added missing case to part III. Changed some 'if' statements to 'else if' to make some parts clearer.
Line 123: Line 123:  
if category is universally loved:
 
if category is universally loved:
 
   TASTE = love
 
   TASTE = love
if category is universally hated:
+
else if category is universally hated:
 
   TASTE = hate
 
   TASTE = hate
if category is universally liked:
+
else if category is universally liked:
 
   TASTE = like
 
   TASTE = like
if category is universally disliked:
+
else if category is universally disliked:
 
   TASTE = dislike
 
   TASTE = dislike
   Line 134: Line 134:  
   TASTE = love
 
   TASTE = love
 
   HAS_UNIVERSAL_ID = true
 
   HAS_UNIVERSAL_ID = true
if itemID is universally hated:
+
else if itemID is universally hated:
 
   TASTE = hate
 
   TASTE = hate
 
   HAS_UNIVERSAL_ID = true
 
   HAS_UNIVERSAL_ID = true
if itemID is universally liked:
+
else if itemID is universally liked:
 
   TASTE = like
 
   TASTE = like
 
   HAS_UNIVERSAL_ID = true
 
   HAS_UNIVERSAL_ID = true
if itemID is universally disliked:
+
else if itemID is universally disliked:
 
   TASTE = dislike
 
   TASTE = dislike
 
   HAS_UNIVERSAL_ID = true
 
   HAS_UNIVERSAL_ID = true
if itemID is universally neutral:
+
else if itemID is universally neutral:
 
   TASTE = neutral
 
   TASTE = neutral
 
   HAS_UNIVERSAL_ID = true
 
   HAS_UNIVERSAL_ID = true
Line 151: Line 151:  
if TASTE is neutral and not HAS_UNIVERSAL_NEUTRAL_ID:
 
if TASTE is neutral and not HAS_UNIVERSAL_NEUTRAL_ID:
 
   if item is edible but tastes bad (-300 > edibility < 0):
 
   if item is edible but tastes bad (-300 > edibility < 0):
       taste = hate
+
       TASTE = hate
   if item has a price < 20g:
+
   else if item has a price < 20g:
       taste = dislike
+
       TASTE = dislike
 +
  else if item type contains "Arch":
 +
      TASTE = dislike
 +
      if npc name is "Penny":
 +
        TASTE = like
    
// part IV: sometimes override with personal tastes
 
// part IV: sometimes override with personal tastes
6

edits

Navigation menu