EI S04c: fix gold management for Ravanal (#9637)

Give side 7 gold to recruit units only after ravanal_gets_serious event, and only if they are low on units, so not to clutter the map.
This commit is contained in:
Thewodoros 2024-12-09 16:15:58 +03:00 committed by GitHub
parent 255b1ad055
commit f7fd05b63e
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -230,31 +230,32 @@
[/effect]
[/modify_unit]
[/event]
[event] # manually set gold to 0
[event]
# if ravanal's low on units and ravanal_no_income is cleared, give him gold
# otherwise, clear Mal-Ravanal's gold so we don't go positive nor negative
name=side 7 turn refresh
first_time_only=no
[filter_condition]
{VARIABLE_CONDITIONAL ravanal_no_income equals yes}
[/filter_condition]
[modify_side]
side=7
gold=0
[/modify_side]
[/event]
[event] # manually set gold to 1000
name=side 1
first_time_only=no
[filter_condition]
[if]
{VARIABLE_CONDITIONAL ravanal_no_income not_equals yes}
[/filter_condition]
[modify_side]
side=7
gold=9999
[/modify_side]
[and]
[have_unit]
side=7
count=0-10
[/have_unit]
[/and]
[then]
[modify_side]
side=7
gold=500
[/modify_side]
[/then]
[else]
[modify_side]
side=7
gold=0
[/modify_side]
[/else]
[/if]
[/event]
#--------------------