summaryrefslogtreecommitdiff
path: root/src/map/script.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/map/script.c')
-rw-r--r--src/map/script.c3
1 files changed, 3 insertions, 0 deletions
diff --git a/src/map/script.c b/src/map/script.c
index 5a9b08b91..acf09a796 100644
--- a/src/map/script.c
+++ b/src/map/script.c
@@ -5275,6 +5275,9 @@ int buildin_gettime(struct script_state *st) /* Asgard Version */
case 7://Year(20xx)
push_val(st->stack,C_INT,t->tm_year+1900);
break;
+ case 8://Year Day(01~366)
+ push_val(st->stack,C_INT,t->tm_yday+1);
+ break;
default://(format error)
push_val(st->stack,C_INT,-1);
break;