summaryrefslogtreecommitdiff
path: root/npc/guild2/agit_main_se.txt
diff options
context:
space:
mode:
authorHaru <haru@dotalux.com>2013-11-10 04:28:03 +0100
committerHaru <haru@dotalux.com>2013-11-10 04:31:28 +0100
commitb4f1b3b5c5c009ed4f7635c5349ea97c80c08c25 (patch)
treecbd305d3896bdc9f498ed9eb72836dc7b6c32b99 /npc/guild2/agit_main_se.txt
parentc9b63614070f7fce81c88cd60e5edad5a7730df0 (diff)
downloadhercules-b4f1b3b5c5c009ed4f7635c5349ea97c80c08c25.tar.gz
hercules-b4f1b3b5c5c009ed4f7635c5349ea97c80c08c25.tar.bz2
hercules-b4f1b3b5c5c009ed4f7635c5349ea97c80c08c25.tar.xz
hercules-b4f1b3b5c5c009ed4f7635c5349ea97c80c08c25.zip
Follow-up to 857bdc4f98be6cd1e185a24565d6b6b54752b9b4
- Consolidated case in variables, labels, constants. Signed-off-by: Haru <haru@dotalux.com>
Diffstat (limited to 'npc/guild2/agit_main_se.txt')
-rw-r--r--npc/guild2/agit_main_se.txt14
1 files changed, 7 insertions, 7 deletions
diff --git a/npc/guild2/agit_main_se.txt b/npc/guild2/agit_main_se.txt
index 580fb2944..685900792 100644
--- a/npc/guild2/agit_main_se.txt
+++ b/npc/guild2/agit_main_se.txt
@@ -143,8 +143,8 @@ OnClock0001:
setcastledata strnpcinfo(2),4,0;
}
if (getcastledata(strnpcinfo(2),5)) {
- set .@Defence,getcastledata(strnpcinfo(2),3);
- setcastledata strnpcinfo(2),3,.@Defence+getcastledata(strnpcinfo(2),5);
+ set .@defence,getcastledata(strnpcinfo(2),3);
+ setcastledata strnpcinfo(2),3,.@defence+getcastledata(strnpcinfo(2),5);
if (getcastledata(strnpcinfo(2),3) > 100) setcastledata strnpcinfo(2),3,100;
setcastledata strnpcinfo(2),5,0;
}
@@ -344,11 +344,11 @@ OnTreasureDied:
close;
}
case 3:
- set .@Defence,getcastledata(strnpcinfo(4),3);
+ set .@defence,getcastledata(strnpcinfo(4),3);
setarray .@cost[0],10000,20000,40000,70000,110000,160000,220000,290000,370000,460000,560000,670000,790000,920000,1060000,1210000,1370000,1540000,1720000,1910000;
set .@j,0;
for(set .@i,6; .@i<101; set .@i,.@i+5) {
- if (.@Defence < .@i) {
+ if (.@defence < .@i) {
set .@def_invest,.@cost[.@j];
break;
}
@@ -607,9 +607,9 @@ OnStartArena:
if (.@Economy < 0) set .@Economy, 0;
setcastledata strnpcinfo(4),2,.@Economy;
// Lower Castle Defence
- set .@Defence,getcastledata(strnpcinfo(4),3)-5;
- if (.@Defence < 0) set .@Defence, 0;
- setcastledata strnpcinfo(4),3,.@Defence;
+ set .@defence,getcastledata(strnpcinfo(4),3)-5;
+ if (.@defence < 0) set .@defence, 0;
+ setcastledata strnpcinfo(4),3,.@defence;
// Set new owner
setcastledata strnpcinfo(4),1,.@GID;
// Clear castle's data.