auto resolve existance
This commit is contained in:
@@ -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);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user