mirror of
https://github.com/vgstation-coders/vgstation13.git
synced 2025-12-10 18:32:03 +00:00
Forcefully deprecate meteor_hit()
meteor_hit() is a textbook example of snowflake. What you have here is a proc linked to a single entity (the small meteor) which shouldn't even have it (ever since I reworked meteors, small meteors explode) that is present in FIFTY. FUCKING. FILES. Since an explosion more than clearly does the damage we want done on meteor impact, it is more than logical to remove it and lighten our code of obsolete and obscuranting procs For the handful of times where it isn't possible to straight up remove it (immovable rod, dust, small meteor), the code was quickly patched by making it fire ex_act(2), given that small meteors perform explosion(src.loc, -1, 1, 3, 4, 0) Doing it quick and dirty because otherwise it's going to cause conflicts everywhere
This commit is contained in:
@@ -227,10 +227,6 @@ Manual Tracking Direction:"}
|
||||
stat |= BROKEN
|
||||
update_icon()
|
||||
|
||||
/obj/machinery/power/solar/control/meteorhit()
|
||||
broken()
|
||||
return
|
||||
|
||||
/obj/machinery/power/solar/control/ex_act(severity)
|
||||
switch(severity)
|
||||
if(1.0)
|
||||
|
||||
@@ -132,12 +132,6 @@
|
||||
if(health > 1)
|
||||
health = 1 //Only holding up on shards and scrap
|
||||
|
||||
/obj/machinery/power/solar/panel/meteorhit()
|
||||
if(stat & !BROKEN)
|
||||
broken()
|
||||
else
|
||||
kill()
|
||||
|
||||
/obj/machinery/power/solar/panel/ex_act(severity)
|
||||
switch(severity)
|
||||
if(1.0)
|
||||
|
||||
Reference in New Issue
Block a user