summaryrefslogtreecommitdiff
path: root/db
diff options
context:
space:
mode:
authorJesusaves <cpntb1@ymail.com>2019-06-01 22:59:09 -0300
committerJesusaves <cpntb1@ymail.com>2019-06-01 22:59:09 -0300
commitb0733f7b5606d7750516eddd10c956541ec1c4f9 (patch)
treee42aa2b9a4a7a237defc0b635117fdc2464d3bb7 /db
parent8a445cbe1b05c63b4b8d4285b69ffe93cb208ffd (diff)
downloadserverdata-b0733f7b5606d7750516eddd10c956541ec1c4f9.tar.gz
serverdata-b0733f7b5606d7750516eddd10c956541ec1c4f9.tar.bz2
serverdata-b0733f7b5606d7750516eddd10c956541ec1c4f9.tar.xz
serverdata-b0733f7b5606d7750516eddd10c956541ec1c4f9.zip
1 - I don't care to verify if getmapxy() failed. 2 - Sagratha score change.
3 - Fix bug on Acorns.
Diffstat (limited to 'db')
-rw-r--r--db/re/item_db.conf12
1 files changed, 7 insertions, 5 deletions
diff --git a/db/re/item_db.conf b/db/re/item_db.conf
index ba5649b13..5b2637555 100644
--- a/db/re/item_db.conf
+++ b/db/re/item_db.conf
@@ -185,11 +185,13 @@ item_db: (
UseEffect: "EFFECT_HEAL"
Script: <"
if (@useType == 1) {
- if (!getmapxy(.@map$, .@x, .@y, 0)) {
- if (rand(1,10) != 3)
- monster(.@map$, .@x, .@y, l("Oak"), 1017, 1);
- else
- monster(.@map$, .@x, .@y, l("Not An Oak"), SpringSquirrel, 1);
+ getmapxy(.@map$, .@x, .@y, 0);
+ if (rand(1,10) != 3) {
+ monster(.@map$, .@x, .@y, l("Oak"), 1017, 1);
+ $TREE_PLANTED=$TREE_PLANTED+1;
+ callfunc "SaggyScoreUpdate", 1;
+ } else {
+ monster(.@map$, .@x, .@y, l("Not An Oak"), SpringSquirrel, 1);
}
} else {
@type = 0;