diff options
author | Jesusaves <cpntb1@ymail.com> | 2019-03-07 16:42:04 -0300 |
---|---|---|
committer | Jesusaves <cpntb1@ymail.com> | 2019-03-07 16:42:04 -0300 |
commit | 1fb1700771fcda34ee25337f7c4e77a40d0e232c (patch) | |
tree | 4c61b6198c0a1230865d660c27a0a87bd9dca15a /npc | |
parent | 62818a6f6312793dd20eb47f4ab817e0ae53f0ef (diff) | |
download | serverdata-1fb1700771fcda34ee25337f7c4e77a40d0e232c.tar.gz serverdata-1fb1700771fcda34ee25337f7c4e77a40d0e232c.tar.bz2 serverdata-1fb1700771fcda34ee25337f7c4e77a40d0e232c.tar.xz serverdata-1fb1700771fcda34ee25337f7c4e77a40d0e232c.zip |
Final checks at localhost. Craft [Red Wine] is done roughly as Saulc planned.
Diffstat (limited to 'npc')
-rw-r--r-- | npc/017-3/chagashroom.txt | 13 |
1 files changed, 10 insertions, 3 deletions
diff --git a/npc/017-3/chagashroom.txt b/npc/017-3/chagashroom.txt index 12bc44429..3adf9e56a 100644 --- a/npc/017-3/chagashroom.txt +++ b/npc/017-3/chagashroom.txt @@ -23,11 +23,18 @@ .@c=REDWINE_DONE-.@base; //-gettimetick(2); .@d=REDWINE_DATE-.@base; //-REDWINE_DONE; .@e=gettimetick(2)-.@base; - debugmes "%d - %d - %d", .@d, .@e, .@c; - debugmes "Start - Now - Finish"; + + // We must divide everything by 10 to cause imprecision + // aka. don't cause overflow bug + .@c=.@c/10; + .@d=.@d/10; + .@e=.@e/10; + + //debugmes "%d - %d - %d", .@d, .@e, .@c; + //debugmes "Start - Now - Finish"; if (.@c == 0) return .@max; - debugmes "Ratio: %d/%d = %d", .@e, .@c, (.@e*.@max)/.@c; + if ($@GM_OVERRIDE) debugmes "Ratio: %d/%d = %d", .@e, .@c, (.@e*.@max)/.@c; return min(10000, (.@e*.@max)/.@c); } |