From 090602e73405ca7ab892a647e092502f76a31665 Mon Sep 17 00:00:00 2001 From: Jesusaves Date: Wed, 13 Nov 2019 10:51:46 -0300 Subject: Tree planting code update --- db/re/item_db.conf | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) diff --git a/db/re/item_db.conf b/db/re/item_db.conf index da0dd14e4..6f2935219 100644 --- a/db/re/item_db.conf +++ b/db/re/item_db.conf @@ -187,7 +187,7 @@ item_db: ( getmapxy(.@map$, .@x, .@y, 0); if (rand(1,10) != 3) { monster(.@map$, .@x, .@y, l("Oak"), 1017, 1); - $TREE_PLANTED=$TREE_PLANTED+1; + $TREE_PLANTED+=+1; callfunc "SaggyScoreUpdate", callfunc("rand2", 1, 2); } else { monster(.@map$, .@x, .@y, l("Not An Oak"), SpringSquirrel, 1); @@ -2258,7 +2258,6 @@ item_db: ( if (@useType == 1) { if (!getmapxy(.@map$, .@x, .@y, 0)) { monster(.@map$, .@x, .@y, .@name$, .@mid, .@am); - //$TREE_PLANTED=$TREE_PLANTED+1; // Not a tree.... right? } } "> @@ -2392,7 +2391,6 @@ item_db: ( monster(.@map$, .@x, .@y, l("Pumpkandy"), Pumpkandy, 1); if ($EVENT$ == "Halloween") monster(.@map$, .@x, .@y, l("Pumpkandy"), Pumpkandy, 1); - //$TREE_PLANTED=$TREE_PLANTED+1; // Not a tree. } "> }, @@ -13836,7 +13834,7 @@ item_db: ( } else { if (!getmapxy(.@map$, .@x, .@y, 0)) { monster(.@map$, .@x, .@y, l("Oak"), 1017, 1); - $TREE_PLANTED=$TREE_PLANTED+1; + $TREE_PLANTED+=+1; callfunc "SaggyScoreUpdate", callfunc("rand2", 1, 2); } } -- cgit v1.2.3-60-g2f50