replace conditional block with direct use of random for unit spawning
This commit is contained in:
parent
6fed611b12
commit
8f3ed71c48
1 changed files with 8 additions and 52 deletions
|
@ -1395,19 +1395,8 @@ This unit always strikes first with this attack, even if they are defending."
|
|||
[/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 @@ This unit always strikes first with this attack, even if they are defending."
|
|||
[/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 @@ This unit always strikes first with this attack, even if they are defending."
|
|||
[/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 @@ This unit always strikes first with this attack, even if they are defending."
|
|||
[/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}
|
||||
|
|
Loading…
Add table
Reference in a new issue