mirror of
https://github.com/Aurorastation/Aurora.3.git
synced 2026-08-23 21:12:24 +01:00
Ports the radiation subsystem and cleans up damage flags. (#15715)
This commit is contained in:
@@ -13,7 +13,7 @@
|
||||
var/sharp = 0 // whether this object cuts
|
||||
var/edge = FALSE // whether this object is more likely to dismember
|
||||
var/in_use = 0 // If we have a user using us, this will be set on. We will check if the user has stopped using us, and thus stop updating and LAGGING EVERYTHING!
|
||||
var/damtype = BRUTE
|
||||
var/damtype = DAMAGE_BRUTE
|
||||
var/force = 0
|
||||
var/armor_penetration = 0
|
||||
var/noslice = 0 // To make it not able to slice things.
|
||||
@@ -251,8 +251,8 @@
|
||||
/obj/proc/damage_flags()
|
||||
. = 0
|
||||
if(has_edge(src))
|
||||
. |= DAM_EDGE
|
||||
. |= DAMAGE_FLAG_EDGE
|
||||
if(is_sharp(src))
|
||||
. |= DAM_SHARP
|
||||
if(damtype == BURN)
|
||||
. |= DAM_LASER
|
||||
. |= DAMAGE_FLAG_SHARP
|
||||
if(damtype == DAMAGE_BURN)
|
||||
. |= DAMAGE_FLAG_LASER
|
||||
|
||||
Reference in New Issue
Block a user