parent
29265a18b7
commit
9b2eda842a
@ -120,6 +120,11 @@ function attack(left: boolean) {
|
||||
|
||||
function useItem(evt: number) {
|
||||
const action = evt.toString() as "0" | "1" | "2" | "3" | "4" | "5" | "6" | "7";
|
||||
if (notYet.value) {
|
||||
storedAction.value = { action };
|
||||
return;
|
||||
}
|
||||
storedAction.value = null;
|
||||
emit('action', { action });
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user