Add player sparring command

This commit is contained in:
Tanner committed 2026-11-17 22:55:07 +00:00
1 parent 1b9f973db3
commit dbd2831dda
3 files changed
+34 -9

No files matched your search

+7
View File
@@ -266,6 +266,8 @@ class JobStates(LegacyJobStates):
def __init__(self, global_state):
self.g = global_state
self.combat_states = combat.CombatStates(global_state)
self.kill_states = combat.CombatStates(
global_state, target_players=True)
self.gather_wood_states = gather_wood.GatherWoodStates(global_state)
self.gather_crop_states = gather_crop.GatherCropStates(global_state)
self.gather_wart_states = gather_wart.GatherWartStates(global_state)
@@ -333,6 +335,9 @@ class JobStates(LegacyJobStates):
def combat(self):
return [self.combat_states]
def kill(self):
return [self.kill_states]
def eat(self):
return [self.eat_food_states]
@@ -362,6 +367,8 @@ class JobStates(LegacyJobStates):
self.g.game.leave_bed()
self.combat_states.state = self.combat_states.idle
self.combat_states.target_id = None
self.kill_states.state = self.kill_states.idle
self.kill_states.target_id = None
self.gather_wood_states.state = self.gather_wood_states.idle
self.gather_crop_states.state = self.gather_crop_states.idle
self.gather_sand_states.state = self.gather_sand_states.idle