Replace all secondary flags with bitflags stored in the flags_2 var
This commit is contained in:
@@ -125,7 +125,7 @@
|
||||
for(var/obj/I in contents)
|
||||
if(I.resistance_flags & FREEZE_PROOF)
|
||||
return
|
||||
if(!HAS_SECONDARY_FLAG(I, FROZEN)) //let it go
|
||||
if(!(I.flags_2 & FROZEN_2)) //let it go
|
||||
I.make_frozen_visual()
|
||||
for(var/mob/living/L in contents)
|
||||
if(L.bodytemperature <= 50)
|
||||
@@ -241,7 +241,7 @@
|
||||
wet_time = MAXIMUM_WET_TIME
|
||||
if(wet == TURF_WET_ICE && air.temperature > T0C)
|
||||
for(var/obj/O in contents)
|
||||
if(HAS_SECONDARY_FLAG(O, FROZEN))
|
||||
if(O.flags_2 & FROZEN_2)
|
||||
O.make_unfrozen()
|
||||
MakeDry(TURF_WET_ICE)
|
||||
MakeSlippery(TURF_WET_WATER)
|
||||
|
||||
@@ -11,7 +11,7 @@
|
||||
if(prob(66)) //fastest possible exit 2/3 of the time
|
||||
return
|
||||
|
||||
if(!(flags & CAN_BE_DIRTY))
|
||||
if(!(flags_1 & CAN_BE_DIRTY_1))
|
||||
return
|
||||
|
||||
if(locate(/obj/structure/grille) in contents)
|
||||
@@ -19,7 +19,7 @@
|
||||
|
||||
var/area/A = get_area(src)
|
||||
|
||||
if(A && !(A.flags & CAN_BE_DIRTY))
|
||||
if(A && !(A.flags_1 & CAN_BE_DIRTY_1))
|
||||
return
|
||||
|
||||
//The code below here isn't exactly optimal, but because of the individual decals that each area uses it's still applicable.
|
||||
|
||||
@@ -141,7 +141,7 @@
|
||||
broken_states = list("damaged")
|
||||
smooth = SMOOTH_TRUE
|
||||
canSmoothWith = list(/turf/open/floor/carpet)
|
||||
flags = NONE
|
||||
flags_1 = NONE
|
||||
|
||||
/turf/open/floor/carpet/Initialize()
|
||||
..()
|
||||
|
||||
@@ -0,0 +1,10 @@
|
||||
diff a/code/game/turfs/simulated/floor/fancy_floor.dm b/code/game/turfs/simulated/floor/fancy_floor.dm (rejected hunks)
|
||||
@@ -66,7 +66,7 @@
|
||||
icon_state = "grass"
|
||||
floor_tile = /obj/item/stack/tile/grass
|
||||
broken_states = list("sand")
|
||||
- flags = NONE
|
||||
+ flags_1 = NONE
|
||||
var/ore_type = /obj/item/ore/glass
|
||||
var/turfverb = "uproot"
|
||||
|
||||
@@ -328,7 +328,7 @@
|
||||
slowdown = 2
|
||||
environment_type = "snow"
|
||||
sand_type = /obj/item/stack/sheet/mineral/snow
|
||||
flags = NONE
|
||||
flags_1 = NONE
|
||||
|
||||
/turf/open/floor/plating/asteroid/snow/airless
|
||||
initial_gas_mix = "TEMP=2.7"
|
||||
|
||||
@@ -80,7 +80,7 @@
|
||||
/turf/open/floor/plating/beach
|
||||
name = "beach"
|
||||
icon = 'icons/misc/beach.dmi'
|
||||
flags = NONE
|
||||
flags_1 = NONE
|
||||
|
||||
/turf/open/floor/plating/beach/ex_act(severity, target)
|
||||
contents_explosion(severity, target)
|
||||
|
||||
@@ -175,7 +175,7 @@
|
||||
desc = "A light-weight titanium wall used in shuttles."
|
||||
icon = 'icons/turf/walls/shuttle_wall.dmi'
|
||||
icon_state = "map-shuttle"
|
||||
flags = CAN_BE_DIRTY | CHECK_RICOCHET
|
||||
flags_1 = CAN_BE_DIRTY_1 | CHECK_RICOCHET_1
|
||||
sheet_type = /obj/item/stack/sheet/mineral/titanium
|
||||
smooth = SMOOTH_MORE|SMOOTH_DIAGONAL
|
||||
canSmoothWith = list(/turf/closed/wall/mineral/titanium, /obj/machinery/door/airlock/shuttle, /obj/machinery/door/airlock/, /turf/closed/wall/shuttle, /obj/structure/window/shuttle, /obj/structure/shuttle/engine/heater, /obj/structure/falsewall/titanium)
|
||||
|
||||
@@ -2,7 +2,7 @@
|
||||
icon_state = "black"
|
||||
dir = SOUTH
|
||||
baseturf = /turf/open/space/transit
|
||||
flags = NOJAUNT //This line goes out to every wizard that ever managed to escape the den. I'm sorry.
|
||||
flags_1 = NOJAUNT_1 //This line goes out to every wizard that ever managed to escape the den. I'm sorry.
|
||||
|
||||
/turf/open/space/transit/get_smooth_underlay_icon(mutable_appearance/underlay_appearance, turf/asking_turf, adjacency_dir)
|
||||
. = ..()
|
||||
|
||||
@@ -11,7 +11,7 @@
|
||||
|
||||
var/blocks_air = FALSE
|
||||
|
||||
flags = CAN_BE_DIRTY
|
||||
flags_1 = CAN_BE_DIRTY_1
|
||||
|
||||
var/image/obscured //camerachunks
|
||||
|
||||
@@ -133,7 +133,7 @@
|
||||
|
||||
//Next, check objects to block entry that are on the border
|
||||
for(var/atom/movable/border_obstacle in src)
|
||||
if(border_obstacle.flags & ON_BORDER)
|
||||
if(border_obstacle.flags_1 & ON_BORDER_1)
|
||||
if(!border_obstacle.CanPass(mover, mover.loc, 1) && (forget != border_obstacle))
|
||||
mover.Collide(border_obstacle)
|
||||
return FALSE
|
||||
@@ -187,7 +187,7 @@
|
||||
//melting
|
||||
if(isobj(AM) && air && air.temperature > T0C)
|
||||
var/obj/O = AM
|
||||
if(HAS_SECONDARY_FLAG(O, FROZEN))
|
||||
if(O.flags_2 & FROZEN_2)
|
||||
O.make_unfrozen()
|
||||
|
||||
/turf/proc/is_plasteel_floor()
|
||||
@@ -226,7 +226,7 @@
|
||||
var/old_affecting_lights = affecting_lights
|
||||
var/old_lighting_object = lighting_object
|
||||
var/old_corners = corners
|
||||
|
||||
|
||||
var/old_exl = explosion_level
|
||||
var/old_exi = explosion_id
|
||||
var/old_bp = blueprint_data
|
||||
@@ -250,7 +250,7 @@
|
||||
W.AfterChange(ignore_air)
|
||||
|
||||
W.blueprint_data = old_bp
|
||||
|
||||
|
||||
if(SSlighting.initialized)
|
||||
recalc_atom_opacity()
|
||||
lighting_object = old_lighting_object
|
||||
|
||||
@@ -0,0 +1,10 @@
|
||||
diff a/code/game/turfs/turf.dm b/code/game/turfs/turf.dm (rejected hunks)
|
||||
@@ -323,7 +323,7 @@
|
||||
M.take_damage(damage*2, BRUTE, "melee", 1)
|
||||
|
||||
/turf/proc/Bless()
|
||||
- flags |= NOJAUNT
|
||||
+ flags_1 |= NOJAUNT_1
|
||||
|
||||
/turf/storage_contents_dump_act(obj/item/storage/src_object, mob/user)
|
||||
if(src_object.contents.len)
|
||||
Reference in New Issue
Block a user