summaryrefslogtreecommitdiff
path: root/npc/craft
diff options
context:
space:
mode:
authorJesusaves <cpntb1@ymail.com>2019-05-28 10:58:53 -0300
committerJesusaves <cpntb1@ymail.com>2019-05-28 10:58:53 -0300
commit8fb9a82849539c346c1ff20a25858dfa6b864f58 (patch)
tree010421726d2329bb9de75b77ed64844428e614f4 /npc/craft
parent9d868fff658a4038fa2c6d5a65f9b7355801edbf (diff)
downloadserverdata-8fb9a82849539c346c1ff20a25858dfa6b864f58.tar.gz
serverdata-8fb9a82849539c346c1ff20a25858dfa6b864f58.tar.bz2
serverdata-8fb9a82849539c346c1ff20a25858dfa6b864f58.tar.xz
serverdata-8fb9a82849539c346c1ff20a25858dfa6b864f58.zip
The whole second tier, and an extra option
Diffstat (limited to 'npc/craft')
-rw-r--r--npc/craft/options.txt62
1 files changed, 58 insertions, 4 deletions
diff --git a/npc/craft/options.txt b/npc/craft/options.txt
index f652a6103..ab5b7dcf7 100644
--- a/npc/craft/options.txt
+++ b/npc/craft/options.txt
@@ -38,14 +38,16 @@ function script csys_Generate {
.@avg=0;
.@stk=0;
+ /////////////////////////////////////////////////////////////
+ // Basic tier
if (.@gid & CRGROUP_BASE) {
.@lvl=CRAFTSYS[CRGROUP_BASE];
if (.@lvl >= 1)
array_push(@csys_attr, VAR_STRAMOUNT);
if (.@lvl >= 2)
- array_push(@csys_attr, VAR_AGIAMOUNT);
- if (.@lvl >= 3)
array_push(@csys_attr, VAR_VITAMOUNT);
+ if (.@lvl >= 3)
+ array_push(@csys_attr, VAR_AGIAMOUNT);
if (.@lvl >= 4)
array_push(@csys_attr, VAR_INTAMOUNT);
if (.@lvl >= 5)
@@ -61,7 +63,9 @@ function script csys_Generate {
.@avg+=.@lvl;
.@stk+=1;
}
- // First tier
+
+ /////////////////////////////////////////////////////////////
+ // First tier
if (.@gid & CRGROUP_ATK) {
.@lvl=CRAFTSYS[CRGROUP_ATK];
if (.@lvl >= 1) {
@@ -127,7 +131,8 @@ function script csys_Generate {
.@stk+=1;
}
- // Second tier
+ /////////////////////////////////////////////////////////////
+ // Second tier
if (.@gid & CRGROUP_REGEN) {
.@lvl=CRAFTSYS[CRGROUP_REGEN];
if (.@lvl >= 1) {
@@ -143,6 +148,55 @@ function script csys_Generate {
.@avg+=.@lvl;
.@stk+=1;
}
+ if (.@gid & CRGROUP_SPEED) {
+ .@lvl=CRAFTSYS[CRGROUP_SPEED];
+ if (.@lvl >= 1) {
+ array_push(@csys_attr, VAR_PLUSASPD);
+ }
+ if (.@lvl >= 3) {
+ array_push(@csys_attr, VAR_PLUSASPDPERCENT);
+ }
+ if (.@lvl >= 5) {
+ array_push(@csys_attr, IOPT_WALKSPEED);
+ }
+ array_push(@csys_penalty, VAR_ATTPOWER);
+ array_push(@csys_penalty, VAR_ATTMPOWER);
+
+ // Update averages
+ .@avg+=.@lvl;
+ .@stk+=1;
+ }
+ if (.@gid & CRGROUP_DOUBLE) {
+ .@lvl=CRAFTSYS[CRGROUP_DOUBLE];
+ if (.@lvl >= 1) {
+ array_push(@csys_attr, IOPT_CRITDMG);
+ }
+ if (.@lvl >= 5) {
+ array_push(@csys_attr, IOPT_DOUBLEATTACK);
+ }
+ array_push(@csys_penalty, VAR_ATTPOWER);
+ array_push(@csys_penalty, VAR_ATTMPOWER);
+
+ // Update averages
+ .@avg+=.@lvl;
+ .@stk+=1;
+ }
+ if (.@gid & CRGROUP_MAXPC) {
+ .@lvl=CRAFTSYS[CRGROUP_MAXPC];
+ if (.@lvl >= 1) {
+ array_push(@csys_attr, VAR_MAXHPPERCENT);
+ array_push(@csys_attr, VAR_MAXSPPERCENT);
+ }
+ if (.@lvl >= 5) {
+ array_push(@csys_attr, CLASS_DAMAGE_BOSS_USER);
+ }
+ array_push(@csys_penalty, VAR_ATTPOWER);
+ array_push(@csys_penalty, VAR_ATTMPOWER);
+
+ // Update averages
+ .@avg+=.@lvl;
+ .@stk+=1;
+ }
// Clear the dummies
array_remove(@csys_attr, DeathPenalty);