summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJesusaves <cpntb1@ymail.com>2018-09-13 10:34:00 -0300
committerJesusaves <cpntb1@ymail.com>2018-09-13 10:34:00 -0300
commit8689fbc4a192962db7c47385326183181b217c7f (patch)
tree5e09abb7b344bfe2b3bd88560c16c3d6fb1df1f0
parent2ee39b2708f609d0e91e8d2c2217207ca64795f1 (diff)
downloadserverdata-8689fbc4a192962db7c47385326183181b217c7f.tar.gz
serverdata-8689fbc4a192962db7c47385326183181b217c7f.tar.bz2
serverdata-8689fbc4a192962db7c47385326183181b217c7f.tar.xz
serverdata-8689fbc4a192962db7c47385326183181b217c7f.zip
The rule for #parum is weird crazy. I have no idea how it works, so, DON'T ASK.
-rw-r--r--npc/magic/parum.txt6
1 files changed, 4 insertions, 2 deletions
diff --git a/npc/magic/parum.txt b/npc/magic/parum.txt
index 9e1cc0994..31d0a5eb8 100644
--- a/npc/magic/parum.txt
+++ b/npc/magic/parum.txt
@@ -42,12 +42,14 @@ OnCall:
// Create the stuff based on MAGIC_EXP
.@r=rand(1,41);
+ // Each 2 mexp reduces chance to get a fail
if (.@r < 42-(MAGIC_EXP/2)) {
getitem WarpedLog, 1;
} else {
- if (.@r > 30+abizit())
+ // Proeficiency makes more likely to finish it
+ if (.@r > 30-abizit())
getitem MoubooFigurine, 1;
- else if (.@r > 20 && MAGIC_EXP > 82)
+ else if (.@r > 20-abizit() && MAGIC_EXP > 82)
getitem WoodenLog, 1;
else
getitem Arrow, .@r;