Several little fixes
- Fix take_gold function adding to party gold instead of subtracting - Fix wandering NPCs not appearing if the town was stored in a save slot - If IF_FIELDS node called while outdoors, skip to jumpto - If IF_STATISTIC called on selected target with whole party selected, default to cumulative check
This commit is contained in:
@@ -67,7 +67,7 @@ void give_gold(short amount,bool print_result) {
|
||||
bool take_gold(short amount,bool print_result) {
|
||||
if(univ.party.gold < amount)
|
||||
return false;
|
||||
univ.party.gold += amount;
|
||||
univ.party.gold -= amount;
|
||||
if(print_result)
|
||||
put_pc_screen();
|
||||
return true;
|
||||
|
Reference in New Issue
Block a user