mirror of
https://github.com/wesnoth/wesnoth
synced 2025-05-14 18:05:42 +00:00
improve some ghastly WML
This commit is contained in:
parent
b24f276fbd
commit
713e28cefa
@ -134,22 +134,12 @@ This unit gains 1 hitpoint added to its maximum whenever it kills a living unit.
|
|||||||
increase_total=1
|
increase_total=1
|
||||||
[/effect]
|
[/effect]
|
||||||
[/object]
|
[/object]
|
||||||
# Store and unstore to show the hitpoint bonus text
|
# Unstore to show the hitpoint bonus text
|
||||||
[store_unit]
|
|
||||||
[filter]
|
|
||||||
x,y=$x2,$y2
|
|
||||||
[/filter]
|
|
||||||
kill=no
|
|
||||||
variable=ghast_temp
|
|
||||||
[/store_unit]
|
|
||||||
[unstore_unit]
|
[unstore_unit]
|
||||||
variable=ghast_temp
|
variable=second_unit
|
||||||
red,green,blue=0,0,255
|
red,green,blue=0,0,255
|
||||||
text= _ "+1 max HP"
|
text= _ "+1 max HP"
|
||||||
[/unstore_unit]
|
|
||||||
[clear_variable]
|
|
||||||
name=ghastTemp
|
|
||||||
find_vacant=no
|
find_vacant=no
|
||||||
[/clear_variable]
|
[/unstore_unit]
|
||||||
[/event]
|
[/event]
|
||||||
[/unit]
|
[/unit]
|
||||||
|
Loading…
x
Reference in New Issue
Block a user