mirror of
https://github.com/wesnoth/wesnoth
synced 2025-05-13 18:13:52 +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
|
||||
[/effect]
|
||||
[/object]
|
||||
# Store and unstore to show the hitpoint bonus text
|
||||
[store_unit]
|
||||
[filter]
|
||||
x,y=$x2,$y2
|
||||
[/filter]
|
||||
kill=no
|
||||
variable=ghast_temp
|
||||
[/store_unit]
|
||||
# Unstore to show the hitpoint bonus text
|
||||
[unstore_unit]
|
||||
variable=ghast_temp
|
||||
variable=second_unit
|
||||
red,green,blue=0,0,255
|
||||
text= _ "+1 max HP"
|
||||
[/unstore_unit]
|
||||
[clear_variable]
|
||||
name=ghastTemp
|
||||
find_vacant=no
|
||||
[/clear_variable]
|
||||
[/unstore_unit]
|
||||
[/event]
|
||||
[/unit]
|
||||
|
Loading…
x
Reference in New Issue
Block a user