diff options
author | Haru <haru@dotalux.com> | 2015-11-15 00:54:33 +0100 |
---|---|---|
committer | Haru <haru@dotalux.com> | 2015-11-15 00:57:00 +0100 |
commit | 34037c40d28c9fe179d930949320090448b249e9 (patch) | |
tree | 3fe4d79c6185df4f165beae47cc3e7a286ce5af8 /npc/quests/quests_umbala.txt | |
parent | 8ee5eafc741d581579efd696765fb0646b72a553 (diff) | |
download | hercules-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 'npc/quests/quests_umbala.txt')
-rw-r--r-- | npc/quests/quests_umbala.txt | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/npc/quests/quests_umbala.txt b/npc/quests/quests_umbala.txt index 7010ba494..3bcbb7e1d 100644 --- a/npc/quests/quests_umbala.txt +++ b/npc/quests/quests_umbala.txt @@ -1126,7 +1126,7 @@ um_in,101,73,3 script Wainatan 4_F_UMWOMAN,{ close; } if (um_wind == 1) { - if (gettime(HOUR) > 18) { + if (gettime(GETTIME_HOUR) > 18) { um_wind = 2; emotion e_an; mes "[Wainatan]"; @@ -1170,7 +1170,7 @@ um_in,94,123,5 script Bertztan 4_F_UMWOMAN,{ close; } if (um_wind == 2) { - if (gettime(HOUR) > 18) { + if (gettime(GETTIME_HOUR) > 18) { um_wind = 3; emotion e_an; mes "[Bertztan]"; @@ -1222,7 +1222,7 @@ umbala,145,217,3 script Chabimatan 4_F_UMWOMAN,{ close; } if (um_wind == 3) { - if (gettime(HOUR) > 18) { + if (gettime(GETTIME_HOUR) > 18) { um_wind = 4; emotion e_an; mes "[Chabimatan]"; |