Author: silene
Date: Sun Sep 12 20:37:52 2010
New Revision: 46417
URL: http://svn.gna.org/viewcvs/wesnoth?rev=46417&view=rev
Log:
Removed [defense] ability.
Modified:
trunk/src/unit.cpp
Modified: trunk/src/unit.cpp
URL:
http://svn.gna.org/viewcvs/wesnoth/trunk/src/unit.cpp?rev=46417&r1=46416&r2=46417&view=diff
==============================================================================
--- trunk/src/unit.cpp (original)
+++ trunk/src/unit.cpp Sun Sep 12 20:37:52 2010
@@ -2059,11 +2059,15 @@
{
assert(resources::game_map != NULL);
int def = defense_modifier_internal(defense_mods_, cfg_, NULL,
*resources::game_map, terrain);
+#if 0
+ // A [defense] ability is too costly and doesn't take into account
target locations.
+ // Left as a comment in case someone ever wonders why it isn't a good
idea.
unit_ability_list defense_abilities = get_abilities("defense");
if (!defense_abilities.empty()) {
unit_abilities::effect defense_effect(defense_abilities, def,
false);
def = defense_effect.get_composite_value();
}
+#endif
return def;
}
_______________________________________________
Wesnoth-commits mailing list
[email protected]
https://mail.gna.org/listinfo/wesnoth-commits