URL:
<http://gna.org/bugs/?12106>
Summary: serialization of attacks loses most [effect]
modifications
Project: Battle for Wesnoth
Submitted by: None
Submitted on: Monday 07/28/2008 at 19:48 CEST
Category: Bug
Severity: 5 - Blocker
Priority: 5 - Normal
Item Group: None
Status: None
Privacy: Public
Assigned to: None
Originator Email:
Open/Closed: Open
Discussion Lock: Any
Release: 1.5.2+svn
Operating System: Gentoo Linux
_______________________________________________________
Details:
For example, if you have a unit with the Strong trait, and save and load the
game or [store_unit] and then [unstore_unit] that unit, it will lose the
damage bonus.
The reason for the problem is simple: while most [effect] modifications are
reflected in the WML, most that apply to attacks (increase_damage, etc -
everything but specials) are currently only reflected in the attack_type
construct (that is to say, in its member variables other than
attack_type.cfg_, which is saved.)
A simple fix would be to, in attack_type::apply_modification(), also modify
the attack_type's cfg_ variable to reflect each of the changes.
_______________________________________________________
Reply to this item at:
<http://gna.org/bugs/?12106>
_______________________________________________
Message sent via/by Gna!
http://gna.org/
_______________________________________________
Wesnoth-bugs mailing list
[email protected]
https://mail.gna.org/listinfo/wesnoth-bugs