Skip to content

Commit

Permalink
add more mechanisms in support of correct xp modifier in tutorial
Browse files Browse the repository at this point in the history
- Adds lines `experience_modifier=100` to both tutorial scenarios
- When writing a saved_game, write the mp game settings (including
  the experience modifier setting) for TEST and TUTORIAL scenario
  types as well.

There are no "test campaigns" right now, so this won't be a
problem.
  • Loading branch information
cbeck88 committed Mar 9, 2015
1 parent a8898db commit dd2c6de
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 4 deletions.
1 change: 1 addition & 0 deletions data/campaigns/tutorial/scenarios/01_Tutorial_part_1.cfg
Expand Up @@ -11,6 +11,7 @@
turns=12
next_scenario=2_Tutorial
victory_when_enemies_defeated=no
experience_modifier=100

{DEFAULT_SCHEDULE}

Expand Down
1 change: 1 addition & 0 deletions data/campaigns/tutorial/scenarios/02_Tutorial_part_2.cfg
Expand Up @@ -5,6 +5,7 @@
name= _ "Wesnoth Tutorial — Part II"
map_data="{campaigns/tutorial/maps/02_Tutorial_part_2.map}"
turns=26
experience_modifier=100

{DEFAULT_SCHEDULE}

Expand Down
5 changes: 1 addition & 4 deletions src/saved_game.cpp
Expand Up @@ -145,10 +145,7 @@ void saved_game::write_carryover(config_writer& out) const
void saved_game::write_general_info(config_writer& out) const
{
out.write(classification_.to_config());
if (classification_.campaign_type == game_classification::MULTIPLAYER
|| classification_.campaign_type == game_classification::SCENARIO) {
out.write_child("multiplayer", mp_settings_.to_config());
}
out.write_child("multiplayer", mp_settings_.to_config());
}


Expand Down

0 comments on commit dd2c6de

Please sign in to comment.