Refactor player and room to support adding effects.
This commit is contained in:
@ -1,8 +1,8 @@
|
||||
import Scene from "../Scene.ts";
|
||||
import Player from "../Player.ts";
|
||||
|
||||
export function look(_player: Player, scene: Scene): string {
|
||||
return scene.look();
|
||||
export function look(player: Player, scene: Scene): string {
|
||||
return scene.look(player.activeEffects, scene.activeEffects);
|
||||
}
|
||||
|
||||
export function pickUpItem(
|
||||
|
@ -21,8 +21,8 @@ const look: Action = {
|
||||
|
||||
const take: Action = {
|
||||
action: actions.pickUpItem,
|
||||
category: "action",
|
||||
canPrecedeVariable: true,
|
||||
category: "action",
|
||||
constant: "take",
|
||||
precedesCategories: [],
|
||||
precedesConstants: [],
|
||||
|
Reference in New Issue
Block a user