Add scripted lightning weapon mods with interpolated anchored effects

This commit is contained in:
raptorreplica committed 2026-10-11 16:45:22 +11:00
1 parent 98465133aa
commit c0a6fd3431
50 files changed
+3500 -65

No files matched your search

+3 -1
View File
@@ -3337,6 +3337,7 @@ impl Host {
self.effects(canvas, &world, false, alpha)?;
self.secondary_effects(canvas, &world, 2, alpha)?;
self.projectiles(canvas, &world, true, alpha)?;
crate::render::draw_world_lightning_arcs(canvas, &world, &self.palette, alpha);
self.hud(canvas, &world)?;
Ok(())
}
@@ -3958,11 +3959,12 @@ fn shop_info(
WeaponBehavior::Spread => "Spread",
WeaponBehavior::Bomb => "Blast",
WeaponBehavior::EnergyGrab => "Disables guns",
WeaponBehavior::Scripted => "Custom discharge",
};
stats.push(format!(
"{}{}",
behavior,
if weapon.script.is_some() {
if weapon.script.is_some() && !matches!(weapon.behavior, WeaponBehavior::Scripted) {
" / scripted"
} else {
""