mirror of
https://github.com/Melledy/Nebula.git
synced 2026-11-04 21:36:51 +01:00
Update trace hunt season based on time
This commit is contained in:
1 parent
465ccd769e
commit
2424496472
5 files changed
+93
No files matched your search
@@ -2,6 +2,7 @@ package emu.nebula.data.resources;
|
||||
|
||||
import emu.nebula.data.BaseDef;
|
||||
import emu.nebula.data.ResourceType;
|
||||
import emu.nebula.util.Utils;
|
||||
import lombok.Getter;
|
||||
|
||||
@Getter
|
||||
@@ -10,8 +11,20 @@ public class TraceHuntControlDef extends BaseDef {
|
||||
private int Id;
|
||||
private int[] BossList;
|
||||
|
||||
private String StartTime;
|
||||
private String EndTime;
|
||||
|
||||
private transient long startDate;
|
||||
private transient long endDate;
|
||||
|
||||
@Override
|
||||
public int getId() {
|
||||
return Id;
|
||||
}
|
||||
|
||||
@Override
|
||||
public void onLoad() {
|
||||
this.startDate = Utils.dateToMilliseconds(this.StartTime) / 1000;
|
||||
this.endDate = Utils.dateToMilliseconds(this.EndTime) / 1000;
|
||||
}
|
||||
}
|
||||
Reference in new issue
Block a user