summaryrefslogtreecommitdiffstats
path: root/TemplePushing.c4s/System.c4g
diff options
context:
space:
mode:
authorJan <>2015-02-06 18:11:38 +0100
committerJan <_>2015-07-10 18:44:52 +0200
commit593a3a7bf0b1b7608dc9b067e0e9ed916071f261 (patch)
treeaa3820ef58d14dfe3545ee200c9b6a6aa13660d5 /TemplePushing.c4s/System.c4g
parent00cf829c6c7ed103ba90927d3a9f215839498035 (diff)
downloadtempelschubsen-593a3a7bf0b1b7608dc9b067e0e9ed916071f261.tar.gz
tempelschubsen-593a3a7bf0b1b7608dc9b067e0e9ed916071f261.zip
Fix scroll script
Diffstat (limited to 'TemplePushing.c4s/System.c4g')
-rw-r--r--TemplePushing.c4s/System.c4g/Scroll.c13
1 files changed, 5 insertions, 8 deletions
diff --git a/TemplePushing.c4s/System.c4g/Scroll.c b/TemplePushing.c4s/System.c4g/Scroll.c
index 310652c..7228fe0 100644
--- a/TemplePushing.c4s/System.c4g/Scroll.c
+++ b/TemplePushing.c4s/System.c4g/Scroll.c
@@ -2,15 +2,12 @@
#appendto SCRL
-func Initialize()
+protected func Initialize()
{
- if (mode == MODE_Festive)
- {
- var spells = [ABLA, MFWV, MICS, MLGT, MGPL, ICNL];
- SetSpell(spells[Random(GetLength(spells))]);
- }
- else var spells = [ABLA, MBOT, MFRB, MDBT, GVTY, MMTR, MLGT, CFAL, MSSH, MINV, MQKE, MARK, MFWV, MGFL, LAVS, MGPL, ICNL];
+ var spells = [ABLA, MBOT, MFRB, MDBT, GVTY, MMTR, MLGT, CFAL, MSSH, MINV, MQKE, MARK, MFWV, MGFL, LAVS, MGPL, ICNL];
+ if (mode == MODE_Festive) spells = [ABLA, MFWV, MICS, MLGT, MGPL, ICNL];
+
SetSpell(spells[Random(GetLength(spells))]);
-
+
return _inherited();
}