summaryrefslogtreecommitdiff
path: root/db/pre-re
diff options
context:
space:
mode:
authorHaru <haru@dotalux.com>2015-11-15 00:54:33 +0100
committerHaru <haru@dotalux.com>2015-11-15 00:57:00 +0100
commit34037c40d28c9fe179d930949320090448b249e9 (patch)
tree3fe4d79c6185df4f165beae47cc3e7a286ce5af8 /db/pre-re
parent8ee5eafc741d581579efd696765fb0646b72a553 (diff)
downloadhercules-34037c40d28c9fe179d930949320090448b249e9.tar.gz
hercules-34037c40d28c9fe179d930949320090448b249e9.tar.bz2
hercules-34037c40d28c9fe179d930949320090448b249e9.tar.xz
hercules-34037c40d28c9fe179d930949320090448b249e9.zip
Fixed too-generic constant names of gettime() types
- Follow-up to 3bd77ffc0daca508352834add828766490075aee - The names were too generic (not namespaced), and were easily clashing with custom (and potential future official) constants or variables. - Constants are now prefixed with a 'GETTIME_' namespace: - GETTIME_SECOND - GETTIME_MINUTE - GETTIME_HOUR - GETTIME_WEEKDAY - GETTIME_DAYOFMONTH - GETTIME_MONTH - GETTIME_YEAR - GETTIME_DAYOFYEAR - Fixed some excessive (and some times incorrect) parentheses in various scripts using gettime(). - Updated documentation. Signed-off-by: Haru <haru@dotalux.com>
Diffstat (limited to 'db/pre-re')
-rw-r--r--db/pre-re/item_db.conf9
1 files changed, 6 insertions, 3 deletions
diff --git a/db/pre-re/item_db.conf b/db/pre-re/item_db.conf
index 42d75e300..b66b1198c 100644
--- a/db/pre-re/item_db.conf
+++ b/db/pre-re/item_db.conf
@@ -38844,7 +38844,10 @@ item_db: (
Weight: 100
Loc: 256
View: 433
- Script: <" if(gettime(6)==9&&gettime(5)>=10&&gettime(5)<=24) bonus bAllStats, 4; ">
+ Script: <"
+ if (gettime(GETTIME_MONTH) == SEPTEMBER && gettime(GETTIME_DAYOFMONTH) >= 10 && gettime(GETTIME_DAYOFMONTH) <= 24)
+ bonus bAllStats, 4;
+ ">
},
{
Id: 5433
@@ -63137,8 +63140,8 @@ item_db: (
Buy: 0
Weight: 80
Script: <"
- if(gettime(5)!=MDiceCone) {
- MDiceCone = gettime(5);
+ if (gettime(GETTIME_DAYOFMONTH) != MDiceCone) {
+ MDiceCone = gettime(GETTIME_DAYOFMONTH);
percentheal 50,50;
}