summaryrefslogtreecommitdiff
path: root/world/map/npc/annuals
diff options
context:
space:
mode:
authorRelaxMore <RelaxMore@users.noreply.github.com>2015-01-14 20:13:25 +0530
committerRelaxMore <RelaxMore@users.noreply.github.com>2015-01-14 20:13:25 +0530
commit5c5d91101ba26698510772f414220b8fc3d734ab (patch)
tree61aa2eeee5b10835b28ba159eccef8a7bff8da43 /world/map/npc/annuals
parent3d7fd218c50a39c643245d3520e4bbd314e4f3fa (diff)
downloadserverdata-5c5d91101ba26698510772f414220b8fc3d734ab.tar.gz
serverdata-5c5d91101ba26698510772f414220b8fc3d734ab.tar.bz2
serverdata-5c5d91101ba26698510772f414220b8fc3d734ab.tar.xz
serverdata-5c5d91101ba26698510772f414220b8fc3d734ab.zip
Replaced numbers with already defined constants
The $@xmas_reward_tally_rare and $@xmas_reward_tally_common are defined in tmwa-server-data/world/map/npc/annuals/xmas/config.txt I've made lines 212 and 214 (in core.txt) similar to lines 205 and 207 (in core.txt).
Diffstat (limited to 'world/map/npc/annuals')
-rw-r--r--world/map/npc/annuals/xmas/core.txt4
1 files changed, 2 insertions, 2 deletions
diff --git a/world/map/npc/annuals/xmas/core.txt b/world/map/npc/annuals/xmas/core.txt
index 30562e13..d064efca 100644
--- a/world/map/npc/annuals/xmas/core.txt
+++ b/world/map/npc/annuals/xmas/core.txt
@@ -209,9 +209,9 @@ L_FinalGift:
set @xmas_reward_item2$, $@xmas_uncommon_reward$[@xmas_uncommon_slot2];
if(checkweight("Iten", 1) == 0)
goto L_FullInv;
- if(@xmas_reward >= 80)
+ if(@xmas_reward >= $@xmas_reward_tally_rare)
getitem @xmas_reward_item$, 1;
- if(@xmas_reward >= 40)
+ if(@xmas_reward >= $@xmas_reward_tally_common)
getitem @xmas_reward_item1$, 1;
getitem @xmas_reward_item2$, 1;
set @xmas_uncommon_slot1, 0;