Skip to content

Commit 4ed2ae5

Browse files
committed
インベントリーの上書きを部分的に禁止
1 parent 9f30b2d commit 4ed2ae5

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

src/ability.ts

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -130,6 +130,7 @@ export function cut(cx: Context) {
130130
if (state.gameover || state.paused || state.goaled) return;
131131
if (!focus) return;
132132
if (!cx.dynamic.player) return;
133+
if (state.usage.copy === 0 && state.inventory) return;
133134

134135
const x = focus.x;
135136
const y = focus.y;

0 commit comments

Comments
 (0)