aboutsummaryrefslogtreecommitdiff
path: root/server
diff options
context:
space:
mode:
Diffstat (limited to 'server')
-rw-r--r--server/protocol/Cargo.toml2
-rw-r--r--server/protocol/src/lib.rs2
-rw-r--r--server/src/commands.rs2
-rw-r--r--server/src/entity/demand_sink.rs2
-rw-r--r--server/src/server.rs2
5 files changed, 5 insertions, 5 deletions
diff --git a/server/protocol/Cargo.toml b/server/protocol/Cargo.toml
index 520db1ef..f439f4fd 100644
--- a/server/protocol/Cargo.toml
+++ b/server/protocol/Cargo.toml
@@ -1,6 +1,6 @@
[package]
name = "hurrycurry-protocol"
-version = "12.1.0"
+version = "12.0.0"
edition = "2024"
[dependencies]
diff --git a/server/protocol/src/lib.rs b/server/protocol/src/lib.rs
index 1fbb5e03..d7cd2cd9 100644
--- a/server/protocol/src/lib.rs
+++ b/server/protocol/src/lib.rs
@@ -267,7 +267,7 @@ pub enum PacketC {
message: Option<Message>,
timeout: Option<MessageTimeout>,
},
- Effect {
+ Effect2 {
name: String,
location: ItemLocation,
},
diff --git a/server/src/commands.rs b/server/src/commands.rs
index 7b3ce48d..6aba5f8f 100644
--- a/server/src/commands.rs
+++ b/server/src/commands.rs
@@ -275,7 +275,7 @@ impl Server {
}),
Command::Effect { name } => {
self.broadcast
- .send(PacketC::Effect {
+ .send(PacketC::Effect2 {
name,
location: ItemLocation::Player(player, Hand(0)),
})
diff --git a/server/src/entity/demand_sink.rs b/server/src/entity/demand_sink.rs
index 2955e444..173d166b 100644
--- a/server/src/entity/demand_sink.rs
+++ b/server/src/entity/demand_sink.rs
@@ -36,7 +36,7 @@ impl Entity for DemandSink {
c.game.score.demands_completed += 1;
c.game.score.points += demand.points;
*c.score_changed = true;
- c.packet_out.push_back(PacketC::Effect {
+ c.packet_out.push_back(PacketC::Effect2 {
name: "satisfied".to_string(),
location: ItemLocation::Tile(self.pos),
});
diff --git a/server/src/server.rs b/server/src/server.rs
index afeda492..b2597bc6 100644
--- a/server/src/server.rs
+++ b/server/src/server.rs
@@ -494,7 +494,7 @@ impl Server {
.push_back(PacketC::RemovePlayer { id: player })
}
PacketS::Effect { player, name } => {
- self.packet_out.push_back(PacketC::Effect {
+ self.packet_out.push_back(PacketC::Effect2 {
name,
location: ItemLocation::Player(player, Hand(0)),
});