aboutsummaryrefslogtreecommitdiff
path: root/internal/world/mob.go
diff options
context:
space:
mode:
authorhistoria <[not public]>2026-06-14 22:38:23 -0400
committerhistoria <[not public]>2026-06-14 22:38:23 -0400
commita6f0ad79e2e3a5b7c11eef1ffc3233f3a2766f77 (patch)
tree89601a502bbfcb50302cf03f09b6febc6040eeb0 /internal/world/mob.go
parent1aba2bdd23aebed4032333e74aa553c40a31fcbd (diff)
downloadthehouseoficarus-a6f0ad79e2e3a5b7c11eef1ffc3233f3a2766f77.tar.gz
feat: fractional ticks and server game_speed implemented. potentially insanely janky.
Diffstat (limited to 'internal/world/mob.go')
-rw-r--r--internal/world/mob.go10
1 files changed, 5 insertions, 5 deletions
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
}