size_t AmbushEvent::failure() { Battle* battle = new Battle(_storage, _raid_participants, _raid_slaves, _raid_resources, _raid_loot); battle->generate_enemies(FS_MEDIUM); size_t battle_outcome = battle->play(); delete battle; if (battle_outcome == BO_RAIDERS_WON) { increase_misc_stat(MI_MORALE, BATTLE_MORALE_BOOST); return EO_SUCCESS; } else { decrease_misc_stat(MI_MORALE, BATTLE_MORALE_BOOST); return EO_FAILURE; } }