mirror of
https://github.com/Aurorastation/Aurora.3.git
synced 2026-08-30 08:29:57 +01:00
Repathed /obj/item/projectile to /obj/projectile (#19693)
Repathed /obj/item/projectile to /obj/projectile, same as TG and Bay, that's pretty much it.
This commit is contained in:
@@ -74,7 +74,7 @@
|
||||
|
||||
..()
|
||||
|
||||
/obj/machinery/shield/bullet_act(var/obj/item/projectile/Proj)
|
||||
/obj/machinery/shield/bullet_act(var/obj/projectile/Proj)
|
||||
health -= Proj.get_structure_damage()
|
||||
..()
|
||||
check_failure()
|
||||
|
||||
@@ -54,7 +54,7 @@
|
||||
/obj/effect/energy_field/ex_act(var/severity)
|
||||
Stress(0.5 + severity)
|
||||
|
||||
/obj/effect/energy_field/bullet_act(var/obj/item/projectile/Proj)
|
||||
/obj/effect/energy_field/bullet_act(var/obj/projectile/Proj)
|
||||
Stress(Proj.get_structure_damage() / 10)
|
||||
|
||||
/obj/effect/energy_field/proc/Stress(var/severity)
|
||||
|
||||
@@ -195,7 +195,7 @@
|
||||
alldir_cleanup()
|
||||
return ..()
|
||||
|
||||
/obj/machinery/shieldwallgen/bullet_act(var/obj/item/projectile/Proj)
|
||||
/obj/machinery/shieldwallgen/bullet_act(var/obj/projectile/Proj)
|
||||
storedpower -= 400 * Proj.get_structure_damage()
|
||||
if(power_state >= POWER_STARTING)
|
||||
visible_message(SPAN_WARNING("\The [src]'s shielding sparks as \the [Proj] hits it!"))
|
||||
@@ -255,7 +255,7 @@
|
||||
gen_primary.storedpower -= power_usage / 2
|
||||
gen_secondary.storedpower -= power_usage / 2
|
||||
|
||||
/obj/shieldwall/bullet_act(var/obj/item/projectile/Proj)
|
||||
/obj/shieldwall/bullet_act(var/obj/projectile/Proj)
|
||||
if(needs_power)
|
||||
var/obj/machinery/shieldwallgen/G
|
||||
if(prob(50))
|
||||
@@ -297,7 +297,7 @@
|
||||
if(istype(mover) && mover.pass_flags & PASSGLASS)
|
||||
return prob(20)
|
||||
else
|
||||
if(istype(mover, /obj/item/projectile))
|
||||
if(istype(mover, /obj/projectile))
|
||||
return prob(10)
|
||||
else
|
||||
return !density
|
||||
|
||||
Reference in New Issue
Block a user