You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
// run only by the merchant, who delivers potions to the farmersfunctionbuy_potions(){varmp=potion_types[1];varhp=potion_types[0];varstack=potion_types[2];// if we have enough gold to purchase, and we need at least one potionif(character.gold>=parent.G.items[hp].g&&(stack-quantity(hp))>0){// we buy enough potions to top off and meet the stack amountparent.buy_with_gold(mp,stack-quantity(mp));}// if we have enough gold to purchase, and we need at least one potionif(character.gold>=parent.G.items[mp].g&&(stack-quantity(mp))>0){// we buy enough potions to top off and meet the stack amountparent.buy_with_gold(hp,stack-quantity(hp));}}
needs to be
// run only by the merchant, who delivers potions to the farmersfunctionbuy_potions(){varmp=potion_types[1];varhp=potion_types[0];varstack=potion_types[2];// if we have enough gold to purchase, and we need at least one potionif(character.gold>=parent.G.items[mp].g&&(stack-quantity(mp))>0){// we buy enough potions to top off and meet the stack amountparent.buy_with_gold(mp,stack-quantity(mp));}// if we have enough gold to purchase, and we need at least one potionif(character.gold>=parent.G.items[hp].g&&(stack-quantity(hp))>0){// we buy enough potions to top off and meet the stack amountparent.buy_with_gold(hp,stack-quantity(hp));}}
The text was updated successfully, but these errors were encountered:
hp/mp missmatch
needs to be
The text was updated successfully, but these errors were encountered: