Follow-up Comment #3, patch #1808 (project wesnoth):

New version. This fullfills all of your requirements from the previous post,
and a bit more I think. Structures like

                [modify_unit]
                        [filter]
                                id=Shaman
                        [/filter]
                        type=Dwarvish Fighter
                        [attack]
                        [/attack]
                        [movement_costs]
                                flat=2
                        [/movement_costs]
                        [attack]
                                description=_"pierce attack"
                                type=pierce
                                damage=10
                        [/attack]
                        [modifications]
                                {TRAIT_HEALTHY}
                        [/modifications]
                [/modify_unit]

are handled; handle_child processes a tag with its keys/values and calls
itsself for the next subtags until whatever nesting level.
Now I can make the type= and trait-adding completely work I think but it
depends on what's wanted; what shall be changed additionally when type=
changes ?
It would also be nice to be able to remove stuff, that is, complete tags, not
only setting their attributes ="" (but whith which syntax ?)

(file #9707)
    _______________________________________________________

Additional Item Attachment:

File name: modify_unit.patch              Size:2 KB


    _______________________________________________________

Reply to this item at:

  <http://gna.org/patch/?1808>

_______________________________________________
  Nachricht geschickt von/durch Gna!
  http://gna.org/


_______________________________________________
Wesnoth-bugs mailing list
[email protected]
https://mail.gna.org/listinfo/wesnoth-bugs

Reply via email to