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:
2015-01-30 12:58:39 -05:00
parent 2de0b76454
commit e0baecef4d
3 changed files with 4 additions and 2 deletions

View File

@@ -207,7 +207,7 @@ void start_town_mode(short which_town, short entry_dir) {
switch(univ.town.monst[j].time_flag){
case eMonstTime::ALWAYS: break; // Nothing to do.
case eMonstTime::SOMETIMES_A: case eMonstTime::SOMETIMES_B: case eMonstTime::SOMETIMES_C:
if((calc_day() % 3) + 3 != int(univ.town.monst[i].time_flag))
if((calc_day() % 3) + 3 != int(univ.town.monst[j].time_flag))
univ.town.monst[j].active = 0;
else {
univ.town.monst[j].active = 1;