summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJesusaves <cpntb1@ymail.com>2020-02-15 00:19:06 -0300
committerJesusaves <cpntb1@ymail.com>2020-02-15 00:19:06 -0300
commit73e1ab8ecb0bd79ea3f3f3266f82dc2f2f0d67be (patch)
tree588ac4a6f073cc6cffacefee1d2d8eef57984038
parentcb1d3d61c0a81c57af900d4e4449b3fe11f2a86e (diff)
downloadserverdata-73e1ab8ecb0bd79ea3f3f3266f82dc2f2f0d67be.tar.gz
serverdata-73e1ab8ecb0bd79ea3f3f3266f82dc2f2f0d67be.tar.bz2
serverdata-73e1ab8ecb0bd79ea3f3f3266f82dc2f2f0d67be.tar.xz
serverdata-73e1ab8ecb0bd79ea3f3f3266f82dc2f2f0d67be.zip
[skip ci] swap logic
-rw-r--r--npc/commands/ucp.txt2
-rw-r--r--npc/items/valentine.txt2
2 files changed, 2 insertions, 2 deletions
diff --git a/npc/commands/ucp.txt b/npc/commands/ucp.txt
index 8464a7e4b..23e920655 100644
--- a/npc/commands/ucp.txt
+++ b/npc/commands/ucp.txt
@@ -178,7 +178,7 @@ function script UserCtrlPanel {
if ($EVENT$ == "Valentine") {
// GSET_VALENTINE_EATONE
// Eat all Chocolate Boxes from Valentine Day event
- if (GSET_VALENTINE_EATONE)
+ if (!GSET_VALENTINE_EATALL)
mes l("[Valentine] Eat all chocolate: ") + col(l("Not allowed"), 2);
else
mes l("[Valentine] Eat all chocolate: ") + col(l("Allowed"), 1);
diff --git a/npc/items/valentine.txt b/npc/items/valentine.txt
index 2bb56ab26..79a0a968b 100644
--- a/npc/items/valentine.txt
+++ b/npc/items/valentine.txt
@@ -14,7 +14,7 @@ function script EatValentineChocolate {
getitem BoxOfChocolates, 1;
} else {
.@pts=1;
- if (!GSET_VALENTINE_EATONE) {
+ if (GSET_VALENTINE_EATALL) {
.@pts=(#VALENTINE_RECEIVED-#VALENTINE_OPENED);
delitem BoxOfChocolates, .@pts-1;
}