[MIRROR] fix some runtimes and an overlay overflow (#8210)

Co-authored-by: Kashargul <144968721+Kashargul@users.noreply.github.com>
This commit is contained in:
CHOMPStation2
2024-04-11 07:47:45 +02:00
committed by GitHub
co-authored by Kashargul
parent 57a0b4a5eb
commit 234aed941f
7 changed files with 22 additions and 20 deletions
+5 -1
View File
@@ -18,6 +18,8 @@
else
ammo = projectile_gun.contents[1]
P = ammo.BB
if(!P)
return "no"
switch(P.damage)
if(0)
return "no"
@@ -57,6 +59,8 @@
else
ammo = projectile_gun.contents[1]
P = ammo.BB
if(!P)
return "no"
switch(P.armor_penetration)
if(0)
return "cannot pierce armor"
@@ -149,4 +153,4 @@
if(reach > 1)
weapon_stats += "\nIt can attack targets up to [reach] tiles away, and can attack over certain objects."
return weapon_stats
return weapon_stats