int configure_engine::xp_modifier_default() const
{
	return use_map_settings()
		? settings::get_xp_modifier(initial_cfg()["experience_modifier"])
		: preferences::xp_modifier();
}
int configure_engine::village_gold_default() const
{
	return use_map_settings()
		? settings::get_village_gold(initial_cfg()["mp_village_gold"], &state_.classification())
		: preferences::village_gold();
}
int configure_engine::village_support_default() const
{
	return use_map_settings()
		? settings::get_village_support(initial_cfg()["mp_village_support"])
		: preferences::village_support();
}
bool configure_engine::shroud_game_default() const
{
	return use_map_settings() ? initial_cfg()["mp_shroud"].to_bool(false) : preferences::shroud();
}
int configure_engine::num_turns_default() const
{
	return use_map_settings() ? settings::get_turns(initial_cfg()["turns"]) : preferences::turns();
}
bool configure_engine::random_start_time_default() const
{
	return use_map_settings()
		? initial_cfg()["random_start_time"].to_bool(false)
		: preferences::random_start_time();
}
bool configure_engine::fog_game_default() const
{
	return use_map_settings()
		? initial_cfg()["mp_fog"].to_bool(state_.classification().is_normal_mp_game())
		: preferences::fog();
}
bool configure_engine::fog_game_default() const {
	return use_map_settings() && sides_.first != sides_.second ?
		cfg_["fog"].to_bool(state_.classification().campaign_type != game_classification::SCENARIO) :
		preferences::fog();
}
bool configure_engine::shroud_game_default() const {
	return use_map_settings() && sides_.first != sides_.second ?
		cfg_["shroud"].to_bool(false) :
		preferences::shroud();
}
Beispiel #10
0
bool configure_engine::random_start_time_default() const {
	return use_map_settings() ?
		state_.get_starting_pos()["random_start_time"].to_bool(true) :
		preferences::random_start_time();
}
Beispiel #11
0
int configure_engine::xp_modifier_default() const {
	return use_map_settings() ?
		settings::get_xp_modifier(state_.get_starting_pos()["experience_modifier"]) :
		preferences::xp_modifier();
}
Beispiel #12
0
int configure_engine::village_support_default() const {
	return use_map_settings() && sides_.first != sides_.second ?
		settings::get_village_support(cfg_["village_support"]) :
		preferences::village_support();
}
Beispiel #13
0
int configure_engine::village_gold_default() const {
	return use_map_settings() && sides_.first != sides_.second ?
		settings::get_village_gold(cfg_["village_gold"], state_.classification().campaign_type) :
		preferences::village_gold();
}
Beispiel #14
0
int configure_engine::num_turns_default() const {
	return use_map_settings() ?
		settings::get_turns(state_.get_starting_pos()["turns"]) :
		preferences::turns();
}