mirror of
https://github.com/Bubberstation/Bubberstation.git
synced 2026-07-16 02:24:11 +01:00
Moves the is_frozen var to a secondary flag
One less var on ALL OBJECTS.
This commit is contained in:
@@ -24,7 +24,6 @@
|
||||
var/force_blueprints = FALSE //forces the obj to be on the blueprints, regardless of when it was created.
|
||||
|
||||
var/persistence_replacement = null //have something WAY too amazing to live to the next round? Set a new path here. Overuse of this var will make me upset.
|
||||
var/is_frozen = FALSE
|
||||
var/unique_rename = 0 // can you customize the description/name of the thing?
|
||||
|
||||
|
||||
@@ -47,8 +46,8 @@
|
||||
|
||||
/obj/throw_at(atom/target, range, speed, mob/thrower, spin=1, diagonals_first = 0, datum/callback/callback)
|
||||
..()
|
||||
if(is_frozen)
|
||||
visible_message("<span class = 'danger'><b>[src] shatters into a million pieces!</b></span>")
|
||||
if(HAS_SECONDARY_FLAG(src, FROZEN))
|
||||
visible_message("<span class='danger'>[src] shatters into a million pieces!</span>")
|
||||
qdel(src)
|
||||
|
||||
/obj/assume_air(datum/gas_mixture/giver)
|
||||
@@ -225,4 +224,4 @@
|
||||
M << "You have successfully changed \the [name]'s description."
|
||||
return
|
||||
else
|
||||
return
|
||||
return
|
||||
|
||||
Reference in New Issue
Block a user