feat(shared): add sleep system constants and replace rest with sleep goal type
Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
This commit is contained in:
@@ -55,7 +55,7 @@ export function industrySystem(world: World, map: GameMap): void {
|
||||
if (brain.currentGoal === 'craft' && world.getComponent<CraftingState>(entity, 'craftingState')) continue;
|
||||
if (brain.currentGoal === 'build' && world.getComponent<BuildingState>(entity, 'buildingState')) continue;
|
||||
if (brain.currentGoal === 'gather' && world.getComponent<GatheringState>(entity, 'gatheringState')) continue;
|
||||
if (brain.currentGoal === 'gather' || brain.currentGoal === 'eat' || brain.currentGoal === 'rest') continue;
|
||||
if (brain.currentGoal === 'gather' || brain.currentGoal === 'eat' || brain.currentGoal === 'sleep') continue;
|
||||
if (brain.currentGoal === 'dropoff') continue;
|
||||
if (brain.currentGoal === 'pickup') continue;
|
||||
|
||||
|
||||
Reference in New Issue
Block a user