Return Grüü's gold to Kapou'e only if positive
This commit is contained in:
parent
bde4e8fdee
commit
8cee267b5a
1 changed files with 18 additions and 4 deletions
|
@ -754,10 +754,24 @@
|
|||
variable=stored_Gruu_side
|
||||
[/store_side]
|
||||
|
||||
[gold]
|
||||
side=1
|
||||
amount=$stored_Gruu_side.gold
|
||||
[/gold]
|
||||
[if]
|
||||
[variable]
|
||||
name=stored_Gruu_side.gold
|
||||
greater_than=0
|
||||
[/variable]
|
||||
|
||||
[then]
|
||||
[gold]
|
||||
side=1
|
||||
amount=$stored_Gruu_side.gold
|
||||
[/gold]
|
||||
|
||||
[gold]
|
||||
side=4
|
||||
amount=-$stored_Gruu_side.gold
|
||||
[/gold]
|
||||
[/then]
|
||||
[/if]
|
||||
|
||||
{CLEAR_VARIABLE stored_Gruu_side}
|
||||
|
||||
|
|
Loading…
Add table
Reference in a new issue