Phase 1 of fightable mobs: MobTemplate dataclass loaded from TOML, global mobs list, spawn_mob/despawn_mob/get_nearby_mob with wrapping-aware distance. Mob entity gets moves and next_action_at fields.
6 lines
159 B
TOML
6 lines
159 B
TOML
name = "goblin"
|
|
description = "a snarling goblin with a crude club"
|
|
pl = 50.0
|
|
stamina = 40.0
|
|
max_stamina = 40.0
|
|
moves = ["punch left", "punch right", "sweep"]
|