From 593a3a7bf0b1b7608dc9b067e0e9ed916071f261 Mon Sep 17 00:00:00 2001 From: Jan <> Date: Fri, 6 Feb 2015 18:11:38 +0100 Subject: Fix scroll script --- TemplePushing.c4s/System.c4g/Scroll.c | 13 +++++-------- 1 file changed, 5 insertions(+), 8 deletions(-) (limited to 'TemplePushing.c4s/System.c4g') 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(); } -- cgit v1.2.3-54-g00ecf