aboutsummaryrefslogtreecommitdiff
path: root/server/src/entity
diff options
context:
space:
mode:
authormetamuffin <metamuffin@disroot.org>2024-09-19 22:36:38 +0200
committermetamuffin <metamuffin@disroot.org>2024-09-19 22:36:39 +0200
commit60adc9a098920f96a3ff1aefe791c129dfc5aa3e (patch)
tree9cbee30eeb35b183e9b8b6253f192ec17d29f2c9 /server/src/entity
parent5b8ac81f412043218120bd59fcfa9e969c7eeabe (diff)
downloadhurrycurry-60adc9a098920f96a3ff1aefe791c129dfc5aa3e.tar
hurrycurry-60adc9a098920f96a3ff1aefe791c129dfc5aa3e.tar.bz2
hurrycurry-60adc9a098920f96a3ff1aefe791c129dfc5aa3e.tar.zst
send tutorial success
Diffstat (limited to 'server/src/entity')
-rw-r--r--server/src/entity/tutorial.rs6
1 files changed, 6 insertions, 0 deletions
diff --git a/server/src/entity/tutorial.rs b/server/src/entity/tutorial.rs
index 889815a6..b61827c1 100644
--- a/server/src/entity/tutorial.rs
+++ b/server/src/entity/tutorial.rs
@@ -41,6 +41,11 @@ impl Entity for Tutorial {
message: None,
});
}
+ c.packet_out.push_back(PacketC::TutorialEnded {
+ player: self.player,
+ item: self.target,
+ success: false,
+ });
}
fn tick(&mut self, c: EntityContext<'_>) -> Result<()> {
const TARGET_DT: f32 = 0.2;
@@ -65,6 +70,7 @@ impl Entity for Tutorial {
c.packet_out.push_back(PacketC::TutorialEnded {
item: self.target,
player: self.player,
+ success: true,
});
} else {
hint = Some((None, trm!("s.tutorial.finished")));