auto resolve existance

This commit is contained in:
2026-03-30 16:10:31 +02:00
parent 5858e2808d
commit d2435eee7f
5 changed files with 82 additions and 55 deletions

View File

@@ -70,7 +70,7 @@ export class InteractionsComponent extends TranslateableComponent implements OnD
}
public isAwake(): boolean {
return isState(STATES[this.chibi().state], EChibiStateName.Awake);
return isState(STATES[this.chibi().currentStateName], EChibiStateName.Awake);
}
public interact(interaction: EChibiInteraction, item?: Food): void {
@@ -78,7 +78,7 @@ export class InteractionsComponent extends TranslateableComponent implements OnD
this.brain.resolveInteraction({ name: interaction, payload: item } as ChibiInteraction<Food>);
}
public openFoodPantry(): void {
this.interactionMenuState.set(EInteractionMenuState.Pantry);
}