summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJesusaves <cpntb1@ymail.com>2019-11-19 13:51:54 -0300
committerJesusaves <cpntb1@ymail.com>2019-11-19 13:51:54 -0300
commit4bd2f8760637f03bd5e757c981d5af1abb22bb1a (patch)
tree05a4b783175a0911d43a5b51e0d3dae69b66e46e
parentb2da86621ed50b7f0ae377615eb12fe3398064e4 (diff)
downloadserverdata-4bd2f8760637f03bd5e757c981d5af1abb22bb1a.tar.gz
serverdata-4bd2f8760637f03bd5e757c981d5af1abb22bb1a.tar.bz2
serverdata-4bd2f8760637f03bd5e757c981d5af1abb22bb1a.tar.xz
serverdata-4bd2f8760637f03bd5e757c981d5af1abb22bb1a.zip
Allow you to drink even while drunk, but you'll lose health and can die!!!!
-rw-r--r--npc/items/alcohol.txt6
1 files changed, 4 insertions, 2 deletions
diff --git a/npc/items/alcohol.txt b/npc/items/alcohol.txt
index c83ae406b..80d040f0d 100644
--- a/npc/items/alcohol.txt
+++ b/npc/items/alcohol.txt
@@ -45,10 +45,12 @@ OnUse:
if (ALC_THRESHOLD) {
.@vit=readparam2(bVit);
if (@Alcohol+ALC_THRESHOLD > .@vit) {
- dispbottom l("You vomit, you are too drunk for this to have effect anymore.");
+ //dispbottom l("You vomit, you are too drunk for this to have effect anymore.");
+ dispbottom l("You vomit, you are too drunk and drinking is harmful.");
dispbottom l("Raise vitality to be able to drink even more.");
sc_start SC_CONFUSION, 5000, 0, 10000, SCFLAG_NOAVOID; // Warning, forces user to use @resync!
- end;
+ //end; // FIXME
+ percentheal -@Alcohol, -@Alcohol;
}
}
.@deltatime=2*60*1000; // How long (in ms) each Alcohol point works? (max. 100 points)