From b0733f7b5606d7750516eddd10c956541ec1c4f9 Mon Sep 17 00:00:00 2001 From: Jesusaves Date: Sat, 1 Jun 2019 22:59:09 -0300 Subject: 1 - I don't care to verify if getmapxy() failed. 2 - Sagratha score change. 3 - Fix bug on Acorns. --- db/re/item_db.conf | 12 +++++++----- 1 file changed, 7 insertions(+), 5 deletions(-) (limited to 'db') 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; -- cgit v1.2.3-60-g2f50