aboutsummaryrefslogtreecommitdiffstats
path: root/src/server.rs
diff options
context:
space:
mode:
authorLibravatar Alexander Foremny <aforemny@posteo.de>2024-03-17 12:48:41 +0100
committerLibravatar Alexander Foremny <aforemny@posteo.de>2024-03-17 12:57:55 +0100
commit4f9957fc6b4bdb4c7430f878101b07051b40a2ff (patch)
treefc9f2a4a4b8ef15a12ec10e6331bdc5ab3f2ef01 /src/server.rs
parent0436c10a90db450bdaf75ac43608e094bd9f0e8f (diff)
feat: abilities
Diffstat (limited to 'src/server.rs')
-rw-r--r--src/server.rs4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/server.rs b/src/server.rs
index d9f2653..e3d5a72 100644
--- a/src/server.rs
+++ b/src/server.rs
@@ -198,7 +198,7 @@ fn imperative_attack_approach(
) {
for (id, mut imperative) in players.iter_mut() {
match *imperative {
- Imperative::Attack(target_player) => {
+ Imperative::Attack(AttackKey::A, target_player) => {
let Some(entity) = entity_map.0.get(&id.0) else {
*imperative = Imperative::Idle;
return;
@@ -242,7 +242,7 @@ fn imperative_attack_attack(
) {
for (id, mut imperative) in players.iter_mut() {
match *imperative {
- Imperative::Attack(target_player) => {
+ Imperative::Attack(AttackKey::A, target_player) => {
let Some(entity) = entity_map.0.get(&id.0) else {
*imperative = Imperative::Idle;
return;