Esnure player always has positive gold from chest at end of cave...

...in Out of the Frying Pan

since this rewards players who recruit heavily at the start of the
scenario, the maximum gold awarded is reduced

Award algorithm is the same as at scenario end, except that at least
50 gold will be given to players who really kept a lot of gold.
This commit is contained in:
Simon Forsyth 2012-06-29 12:09:40 +00:00
parent 695b5c7c2e
commit 6498378901
3 changed files with 46 additions and 15 deletions

View file

@ -78,6 +78,7 @@ Version 1.11.0-svn:
* Updated the Stun weapon special code to use [object] duration=turn
* The Human Commander unit now uses the smallfoot movetype instead of woodland
* Display dehydration status in the sidebar
* Ensure player always has positive gold leaving the cave in Out of the Frying Pan
* Editor:
* New gui theme, fixes the editor being broken on low resolutions.
* Smaller font for displaying the terrain information.

View file

@ -3630,26 +3630,55 @@
message= _ "Looks like the guards at this outpost had been saving away a bit of loot. I dont suppose theyre going to mind anymore if we made use of it."
[/message]
#ifdef EASY
[gold]
amount=75
# Modify gold as though the scenario had ended (multiply by 0.4 then add new award)
# However, ensure that players receive at least 50 gold if they are doing well
# This reduces the tomato surprise aspect of adding a fight at the end and
# reduces the reward that careful players will receive, making it slightly harder for them
[store_gold]
side=1
[/gold]
#endif
variable=gold_amount
[/store_gold]
[if]
[variable]
name=gold_amount
greater_than=0
[/variable]
[then]
[set_variable]
name=gold_amount
multiply=-0.6
[/set_variable]
[set_variable]
name=gold_amount
round=floor
[/set_variable]
[/then]
[else]
[set_variable]
name=gold_amount
multiply=-1
[/set_variable]
[/else]
[/if]
[set_variable]
name=gold_amount
add={ON_DIFFICULTY 75 125 150}
[/set_variable]
[if]
[variable]
name=gold_amount
less_than=50
[/variable]
[then]
{VARIABLE gold_amount 50}
[/then]
[/if]
#ifdef NORMAL
[gold]
amount=150
amount=$gold_amount
side=1
[/gold]
#endif
#ifdef HARD
[gold]
amount=175
side=1
[/gold]
#endif
{CLEAR_VARIABLE gold_amount}
[/event]
# Event 15: Elves step out into the daylight, Eloh appears

View file

@ -53,6 +53,7 @@ Version 1.11.0-svn:
* Made it so that all units are rehydrated quietly upon victory in scenario two.
* The Human Commander unit now uses the smallfoot movetype instead of woodland.
* Display dehydration status in the sidebar.
* Ensure player always has positive gold leaving the cave in Out of the Frying Pan.
* Editor:
* New gui theme, fixes the editor being broken on low resolutions.