mirror of
https://github.com/wesnoth/wesnoth
synced 2025-05-06 18:13:29 +00:00
poison no longer prevents resting
This commit is contained in:
parent
11984c862b
commit
8c8ec2e768
@ -1,6 +1,8 @@
|
||||
Version 1.5.0+svn:
|
||||
* graphics:
|
||||
* new ford graphics from Syntax_Error
|
||||
* game engine:
|
||||
* poison no longer prevents resting
|
||||
* language and i18n:
|
||||
* updated translations: Chinese, Finnish, French, German, Polish, Russian,
|
||||
Spanish, Turkish
|
||||
|
@ -14,6 +14,9 @@ Version 1.5.0+svn:
|
||||
* Decreased the ranged attack of the Mage of Light from 15-3 to 12-3.
|
||||
* Decreased the melee attack of the Merman Warrior from 8-4 to 10-3.
|
||||
|
||||
* Game engine
|
||||
* Poison no longer prevents Resting
|
||||
|
||||
* User interface
|
||||
* Titlescreen is now randomly loaded.
|
||||
|
||||
|
@ -1542,6 +1542,8 @@ void calculate_healing(game_display& disp, const gamemap& map,
|
||||
std::vector<unit_map::iterator> healers;
|
||||
|
||||
int healing = 0;
|
||||
int rest_healing = 0;
|
||||
|
||||
std::string curing;
|
||||
|
||||
unit_ability_list heal = i->second.get_abilities("heals",i->first);
|
||||
@ -1628,24 +1630,25 @@ void calculate_healing(game_display& disp, const gamemap& map,
|
||||
curer = units.end();
|
||||
}
|
||||
if(i->second.resting()) {
|
||||
healing += game_config::rest_heal_amount;
|
||||
rest_healing = game_config::rest_heal_amount;
|
||||
healing += rest_healing;
|
||||
}
|
||||
}
|
||||
if(is_poisoned) {
|
||||
if(curing == "cured") {
|
||||
i->second.set_state("poisoned","");
|
||||
healing = 0;
|
||||
healing = rest_healing;
|
||||
healers.clear();
|
||||
healers.push_back(curer);
|
||||
} else if(curing == "slowed") {
|
||||
healing = 0;
|
||||
healing = rest_healing;
|
||||
healers.clear();
|
||||
healers.push_back(curer);
|
||||
} else {
|
||||
healers.clear();
|
||||
healing = 0;
|
||||
healing = rest_healing;
|
||||
if(i->second.side() == side) {
|
||||
healing = -game_config::poison_amount;
|
||||
healing -= game_config::poison_amount;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user