Skip to content

Commit

Permalink
split early finishing bonus between players in LoW
Browse files Browse the repository at this point in the history
  • Loading branch information
gfgtdf committed Nov 30, 2015
1 parent d755d3b commit 76da10b
Show file tree
Hide file tree
Showing 12 changed files with 54 additions and 8 deletions.
Expand Up @@ -565,7 +565,11 @@ This is the story of Kalenz, Landar, and of the Elves in the first days of the h
[then]
[endlevel]
result=victory
#ifdef MULTIPLAYER
bonus=0.5
#else
bonus=yes
#endif
{NEW_GOLD_CARRYOVER 40}
[/endlevel]
[/then]
Expand Down
Expand Up @@ -602,9 +602,12 @@
{ENDSPEECH unit}

[endlevel]
#TODO reduce the carry over
result=victory
bonus=yes
#ifdef MULTIPLAYER
bonus=0.5
#else
bonus=yes
#endif
[/endlevel]
[/event]

Expand Down Expand Up @@ -641,9 +644,12 @@
{ENDSPEECH secondary_unit}
#undef ENDSPEECH
[endlevel]
#TODO reduce carry over
result=victory
bonus=yes
#ifdef MULTIPLAYER
bonus=0.5
#else
bonus=yes
#endif
[/endlevel]
[/event]

Expand Down
Expand Up @@ -1076,7 +1076,6 @@
image=wesnoth-icon.png
[/message]
[/event]

[event]
name=victory

Expand Down Expand Up @@ -1188,6 +1187,7 @@
{GLOBAL_VARIABLE LoW_Chapter_One gold_store el_isomithir_gold global}
#endif
[/event]
{DEFAULT_VICTORY 0.5}

{campaigns/Legend_of_Wesmere/utils/deaths.cfg}
[/scenario]
Expand Down
Expand Up @@ -460,6 +460,7 @@ Chapter Two"
message= _ "When you meet your kin in the dry hells, tell them you perished at the hands of Kalenz’s elves!"
[/message]
[/event]
{DEFAULT_VICTORY 0.4}

{campaigns/Legend_of_Wesmere/utils/deaths.cfg}
[/scenario]
Expand Up @@ -437,7 +437,11 @@

[endlevel]
result=victory
#ifdef MULTIPLAYER
bonus=0.4
#else
bonus=yes
#endif
[/endlevel]
[/event]

Expand Down Expand Up @@ -519,6 +523,7 @@
#endif
[/event]

{DEFAULT_VICTORY 0.4}
{campaigns/Legend_of_Wesmere/utils/deaths.cfg}
[/scenario]

Expand Down
Expand Up @@ -365,6 +365,7 @@
[/sound]
[/event]

{DEFAULT_VICTORY 0.4}
{campaigns/Legend_of_Wesmere/utils/deaths.cfg}
[/scenario]

Expand Down
Expand Up @@ -684,6 +684,7 @@
[/message]
[/event]

{DEFAULT_VICTORY 0.4}
{campaigns/Legend_of_Wesmere/utils/deaths.cfg}
###/DEATH EVENTS###
[/scenario]
Expand Down
Expand Up @@ -546,7 +546,11 @@ Chapter Three"

[endlevel]
result=victory
bonus=yes
#ifdef MULTIPLAYER
bonus=0.3
#else
bonus=yes
#endif
[/endlevel]
[/event]

Expand Down Expand Up @@ -663,6 +667,7 @@ Chapter Three"
#endif
[/event]

{DEFAULT_VICTORY 0.3}
{campaigns/Legend_of_Wesmere/utils/deaths.cfg}
[/scenario]

Expand Down
Expand Up @@ -281,7 +281,11 @@
[/message]
[endlevel]
result=victory
bonus=yes
#ifdef MULTIPLAYER
bonus=0.3
#else
bonus=yes
#endif
[/endlevel]
[/event]

Expand Down Expand Up @@ -392,6 +396,7 @@
{UNCLEAR_FOG}
[/event]

{DEFAULT_VICTORY 0.3}
{campaigns/Legend_of_Wesmere/utils/deaths.cfg}
[/scenario]

Expand Down
Expand Up @@ -289,7 +289,11 @@
[endlevel]
result=victory
save=no
bonus=yes
#ifdef MULTIPLAYER
bonus=0.3
#else
bonus=yes
#endif
[/endlevel]
[/event]

Expand All @@ -307,6 +311,7 @@
[/endlevel]
[/event]

{DEFAULT_VICTORY 0.3}
{campaigns/Legend_of_Wesmere/utils/deaths.cfg}
[/scenario]

Expand Down
Expand Up @@ -684,6 +684,7 @@ Chapter Four"
[/message]
[/event]

{DEFAULT_VICTORY 0.3}
{campaigns/Legend_of_Wesmere/utils/deaths.cfg}
[/scenario]

Expand Down
12 changes: 12 additions & 0 deletions data/campaigns/Legend_of_Wesmere/utils/low-macros.cfg
Expand Up @@ -19,6 +19,18 @@
#enddef
#endif

#define DEFAULT_VICTORY MP_BONUS
[event]
name=enemies defeated
[endlevel]
#ifdef MULTIPLAYER
bonus={MP_BONUS}
#else
bonus=yes
#endif
[/endlevel]
[/event]
#enddef

#define PLAYER_GOLD_04
{GOLD 280 250 220}
Expand Down

0 comments on commit 76da10b

Please sign in to comment.