mirror of
https://github.com/VOREStation/VOREStation.git
synced 2026-08-30 07:28:53 +01:00
Combat Mechs Can Punch More Things (#6303)
* Combat Mechs Can Punch More Things Removes the var to check for the 5 things it can attack, instead it can punch anything (but not everything will take damage). Gives punching objects a check so you don't accidently smash something without meaning to. Gives closets and canisters a proc to take_damage so they'll actually get smashed by the mechs. * Take_Damage Boogaloo * More take_damage Stuff Adds click delay on attacking barriers. Proper noises when attacking material doors and barricades. More stuff can be broken by mech punch and simple mobs. * Adds changelong * usr to user
This commit is contained in:
@@ -389,6 +389,16 @@ var/global/list/light_type_cache = list()
|
||||
broken()
|
||||
return 1
|
||||
|
||||
/obj/machinery/light/take_damage(var/damage)
|
||||
if(!damage)
|
||||
return
|
||||
if(status == LIGHT_EMPTY||status == LIGHT_BROKEN)
|
||||
return
|
||||
if(!(status == LIGHT_OK||status == LIGHT_BURNED))
|
||||
return
|
||||
broken()
|
||||
return 1
|
||||
|
||||
/obj/machinery/light/blob_act()
|
||||
broken()
|
||||
|
||||
|
||||
Reference in New Issue
Block a user