Rework arrows falling into water and lava
Hits no longer splash; glancing and spent arrows splash where they land, drift burning on lava, and arrows on a removed bridge sink. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This commit is contained in:
1 parent
5adf3d0e00
commit
f0eb33a6b1
3 files changed
+135
-17
No files matched your search
+1
-1
@@ -4888,7 +4888,7 @@ impl Game {
|
||||
let dir = norm(ex - px, ey - py);
|
||||
let (endx, endy, wall) = self.arrow_end(px, py, dir.0, dir.1, t.range());
|
||||
self.shot(mx, my, mh, endx, endy, 0.45, 0.3, 0xffd0e0f0);
|
||||
self.style_last_fx(if wall { crate::particles::ST_ARROW_WALL } else { crate::particles::ST_ARROW });
|
||||
self.style_last_fx(if wall { crate::particles::ST_ARROW_WALL } else { crate::particles::ST_ARROW_FALL });
|
||||
self.sfx(Sfx::Shoot, px, py);
|
||||
let mut hits = vec![(j, dmg)];
|
||||
for (o, e) in self.ents.iter().enumerate() {
|
||||
|
||||
Reference in new issue
Block a user