From a6f0ad79e2e3a5b7c11eef1ffc3233f3a2766f77 Mon Sep 17 00:00:00 2001 From: historia <[not public]> Date: Sun, 14 Jun 2026 22:38:23 -0400 Subject: feat: fractional ticks and server game_speed implemented. potentially insanely janky. --- internal/world/mob.go | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) (limited to 'internal/world/mob.go') diff --git a/internal/world/mob.go b/internal/world/mob.go index 59c8a20..c161e10 100644 --- a/internal/world/mob.go +++ b/internal/world/mob.go @@ -28,11 +28,11 @@ type MobDef struct { Strength int `yaml:"strength"` Defense int `yaml:"defense"` HP int `yaml:"hp"` - Speed int `yaml:"speed"` + Speed float64 `yaml:"speed"` Aggressive bool `yaml:"aggressive"` Protected bool `yaml:"protected"` Unique bool `yaml:"unique"` - RespawnTicks int `yaml:"respawn_ticks"` + RespawnTicks float64 `yaml:"respawn_ticks"` Drops DropTable `yaml:"drops"` } @@ -46,17 +46,17 @@ type MobInstance struct { Attack int Strength int Defense int - Speed int + Speed float64 Aggressive bool Protected bool Unique bool - RespawnTicks int + RespawnTicks float64 RoomID int HomeRoomID int Drops DropTable IdleDescription string WanderRooms []int - WanderInterval int + WanderInterval float64 WanderTickCounter int regenerateTick int } -- cgit v1.2.3