Author: alarantalara
Date: Sat Mar 31 17:18:22 2012
New Revision: 53723
URL: http://svn.gna.org/viewcvs/wesnoth?rev=53723&view=rev
Log:
replace conditional block with direct use of random for unit spawning
Modified:
trunk/data/campaigns/Under_the_Burning_Suns/scenarios/03_Stirring_in_the_Night.cfg
Modified:
trunk/data/campaigns/Under_the_Burning_Suns/scenarios/03_Stirring_in_the_Night.cfg
URL:
http://svn.gna.org/viewcvs/wesnoth/trunk/data/campaigns/Under_the_Burning_Suns/scenarios/03_Stirring_in_the_Night.cfg?rev=53723&r1=53722&r2=53723&view=diff
==============================================================================
---
trunk/data/campaigns/Under_the_Burning_Suns/scenarios/03_Stirring_in_the_Night.cfg
(original)
+++
trunk/data/campaigns/Under_the_Burning_Suns/scenarios/03_Stirring_in_the_Night.cfg
Sat Mar 31 17:18:22 2012
@@ -1395,19 +1395,8 @@
[/not]
[do]
#ifdef NORMAL
- {RANDOM 0..100}
- [if]
- [variable]
- name=random
- less_than=51
- [/variable]
- [then]
- {NOTRAIT_UNIT 2 (Walking Corpse) 21 24}
- [/then]
- [else]
- {NOTRAIT_UNIT 2 (Soulless) 21 24}
- [/else]
- [/if]
+ {RANDOM (Walking Corpse,Soulless)}
+ {NOTRAIT_UNIT 2 $random 21 24}
#endif
#ifdef EASY
{NOTRAIT_UNIT 2 (Walking Corpse) 21 24}
@@ -1557,19 +1546,8 @@
[/not]
[do]
#ifdef NORMAL
- {RANDOM 0..100}
- [if]
- [variable]
- name=random
- less_than=51
- [/variable]
- [then]
- {NOTRAIT_UNIT 3 (Walking Corpse) 23 6}
- [/then]
- [else]
- {NOTRAIT_UNIT 3 (Soulless) 23 6}
- [/else]
- [/if]
+ {RANDOM (Walking Corpse,Soulless)}
+ {NOTRAIT_UNIT 2 $random 23 6}
#endif
#ifdef EASY
{NOTRAIT_UNIT 3 (Walking Corpse) 23 6}
@@ -1827,19 +1805,8 @@
[/not]
[do]
#ifdef NORMAL
- {RANDOM 0..100}
- [if]
- [variable]
- name=random
- less_than=51
- [/variable]
- [then]
- {NOTRAIT_UNIT 3 (Walking Corpse) 23 6}
- [/then]
- [else]
- {NOTRAIT_UNIT 3 (Soulless) 23 6}
- [/else]
- [/if]
+ {RANDOM (Walking Corpse,Soulless)}
+ {NOTRAIT_UNIT 2 $random 23 6}
#endif
#ifdef EASY
{NOTRAIT_UNIT 3 (Walking Corpse) 23 6}
@@ -2110,19 +2077,8 @@
[/not]
[do]
#ifdef NORMAL
- {RANDOM 0..100}
- [if]
- [variable]
- name=random
- less_than=51
- [/variable]
- [then]
- {NOTRAIT_UNIT 2 (Walking Corpse) 21 24}
- [/then]
- [else]
- {NOTRAIT_UNIT 2 (Soulless) 21 24}
- [/else]
- [/if]
+ {RANDOM (Walking Corpse,Soulless)}
+ {NOTRAIT_UNIT 2 $random 21 24}
#endif
#ifdef EASY
{NOTRAIT_UNIT 2 (Walking Corpse) 21 24}
_______________________________________________
Wesnoth-commits mailing list
[email protected]
https://mail.gna.org/listinfo/wesnoth-commits