diff --git a/code/__DEFINES/icon_smoothing.dm b/code/__DEFINES/icon_smoothing.dm index 8a9a7273909..d4b2592aa16 100644 --- a/code/__DEFINES/icon_smoothing.dm +++ b/code/__DEFINES/icon_smoothing.dm @@ -2,7 +2,7 @@ /// Smoothing system in where adjacencies are calculated and used to build an image by mounting each corner at runtime. #define SMOOTH_CORNERS (1<<0) /// Smoothing system in where adjacencies are calculated and used to select a pre-baked icon_state, encoded by the blob tileset pattern. -#define SMOOTH_BLOB (1<<1) +#define SMOOTH_BITMASK (1<<1) /// Atom has diagonal corners, with underlays under them. #define SMOOTH_DIAGONAL_CORNERS (1<<2) /// Atom will smooth with the borders of the map. @@ -14,7 +14,7 @@ DEFINE_BITFIELD(smoothing_flags, list( "SMOOTH_CORNERS" = SMOOTH_CORNERS, - "SMOOTH_BLOB" = SMOOTH_BLOB, + "SMOOTH_BITMASK" = SMOOTH_BITMASK, "SMOOTH_DIAGONAL_CORNERS" = SMOOTH_DIAGONAL_CORNERS, "SMOOTH_BORDER" = SMOOTH_BORDER, "SMOOTH_QUEUED" = SMOOTH_QUEUED, @@ -24,7 +24,7 @@ DEFINE_BITFIELD(smoothing_flags, list( /*smoothing macros*/ -#define QUEUE_SMOOTH(thing_to_queue) if(thing_to_queue.smoothing_flags & (SMOOTH_CORNERS|SMOOTH_BLOB)) {SSicon_smooth.add_to_queue(thing_to_queue)} +#define QUEUE_SMOOTH(thing_to_queue) if(thing_to_queue.smoothing_flags & (SMOOTH_CORNERS|SMOOTH_BITMASK)) {SSicon_smooth.add_to_queue(thing_to_queue)} #define QUEUE_SMOOTH_NEIGHBORS(thing_to_queue) for(var/neighbor in orange(1, thing_to_queue)) {var/atom/atom_neighbor = neighbor; QUEUE_SMOOTH(atom_neighbor)} diff --git a/code/__HELPERS/icon_smoothing.dm b/code/__HELPERS/icon_smoothing.dm index 630367cfeed..01733e91132 100644 --- a/code/__HELPERS/icon_smoothing.dm +++ b/code/__HELPERS/icon_smoothing.dm @@ -159,7 +159,7 @@ DEFINE_BITFIELD(smoothing_junction, list( corners_diagonal_smooth(calculate_adjacencies()) else corners_cardinal_smooth(calculate_adjacencies()) - else if(smoothing_flags & SMOOTH_BLOB) + else if(smoothing_flags & SMOOTH_BITMASK) blob_smooth() else CRASH("smooth_icon called for [src] with smoothing_flags == [smoothing_flags]") @@ -373,14 +373,14 @@ DEFINE_BITFIELD(smoothing_junction, list( var/list/away_turfs = block(locate(1, 1, zlevel), locate(world.maxx, world.maxy, zlevel)) for(var/V in away_turfs) var/turf/T = V - if(T.smoothing_flags & (SMOOTH_CORNERS|SMOOTH_BLOB)) + if(T.smoothing_flags & (SMOOTH_CORNERS|SMOOTH_BITMASK)) if(now) T.smooth_icon() else QUEUE_SMOOTH(T) for(var/R in T) var/atom/A = R - if(A.smoothing_flags & (SMOOTH_CORNERS|SMOOTH_BLOB)) + if(A.smoothing_flags & (SMOOTH_CORNERS|SMOOTH_BITMASK)) if(now) A.smooth_icon() else diff --git a/code/game/machinery/deployable.dm b/code/game/machinery/deployable.dm index f8bd45c0584..8b4a36cf52f 100644 --- a/code/game/machinery/deployable.dm +++ b/code/game/machinery/deployable.dm @@ -108,7 +108,7 @@ pass_flags = LETPASSTHROW bar_material = SAND climbable = TRUE - smoothing_flags = SMOOTH_BLOB + smoothing_flags = SMOOTH_BITMASK smoothing_groups = list(SMOOTH_GROUP_SANDBAGS) canSmoothWith = list(SMOOTH_GROUP_SANDBAGS, SMOOTH_GROUP_WALLS, SMOOTH_GROUP_SECURITY_BARRICADE) diff --git a/code/game/objects/effects/decals/cleanable/misc.dm b/code/game/objects/effects/decals/cleanable/misc.dm index 4d08f05ee0e..e77c3b65813 100644 --- a/code/game/objects/effects/decals/cleanable/misc.dm +++ b/code/game/objects/effects/decals/cleanable/misc.dm @@ -67,11 +67,11 @@ icon = 'icons/effects/dirt.dmi' icon_state = "" QUEUE_SMOOTH(src) - if(smoothing_flags & (SMOOTH_CORNERS|SMOOTH_BLOB)) + if(smoothing_flags & (SMOOTH_CORNERS|SMOOTH_BITMASK)) QUEUE_SMOOTH_NEIGHBORS(src) /obj/effect/decal/cleanable/dirt/Destroy() - if(smoothing_flags & (SMOOTH_CORNERS|SMOOTH_BLOB)) + if(smoothing_flags & (SMOOTH_CORNERS|SMOOTH_BITMASK)) QUEUE_SMOOTH_NEIGHBORS(src) return ..() diff --git a/code/game/objects/structures.dm b/code/game/objects/structures.dm index 4d2e73e351c..fde5cc121ac 100644 --- a/code/game/objects/structures.dm +++ b/code/game/objects/structures.dm @@ -18,7 +18,7 @@ if (!armor) armor = list(MELEE = 0, BULLET = 0, LASER = 0, ENERGY = 0, BOMB = 0, BIO = 0, RAD = 0, FIRE = 50, ACID = 50) . = ..() - if(smoothing_flags & (SMOOTH_CORNERS|SMOOTH_BLOB)) + if(smoothing_flags & (SMOOTH_CORNERS|SMOOTH_BITMASK)) QUEUE_SMOOTH(src) QUEUE_SMOOTH_NEIGHBORS(src) if(smoothing_flags & SMOOTH_CORNERS) @@ -27,7 +27,7 @@ /obj/structure/Destroy() GLOB.cameranet.updateVisibility(src) - if(smoothing_flags & (SMOOTH_CORNERS|SMOOTH_BLOB)) + if(smoothing_flags & (SMOOTH_CORNERS|SMOOTH_BITMASK)) QUEUE_SMOOTH_NEIGHBORS(src) return ..() diff --git a/code/game/objects/structures/aliens.dm b/code/game/objects/structures/aliens.dm index 5dabcea80e9..f0e47b35013 100644 --- a/code/game/objects/structures/aliens.dm +++ b/code/game/objects/structures/aliens.dm @@ -58,7 +58,7 @@ density = TRUE opacity = TRUE anchored = TRUE - smoothing_flags = SMOOTH_BLOB + smoothing_flags = SMOOTH_BITMASK smoothing_groups = list(SMOOTH_GROUP_ALIEN_RESIN) canSmoothWith = list(SMOOTH_GROUP_ALIEN_RESIN) max_integrity = 200 @@ -122,7 +122,7 @@ icon_state = "weeds1-0" base_icon_state = "weeds1" max_integrity = 15 - smoothing_flags = SMOOTH_BLOB + smoothing_flags = SMOOTH_BITMASK smoothing_groups = list(SMOOTH_GROUP_ALIEN_RESIN, SMOOTH_GROUP_ALIEN_WEEDS) canSmoothWith = list(SMOOTH_GROUP_ALIEN_WEEDS, SMOOTH_GROUP_WALLS) var/last_expand = 0 //last world.time this weed expanded diff --git a/code/game/objects/structures/beds_chairs/alien_nest.dm b/code/game/objects/structures/beds_chairs/alien_nest.dm index 040c07325b9..80cd0f3f25b 100644 --- a/code/game/objects/structures/beds_chairs/alien_nest.dm +++ b/code/game/objects/structures/beds_chairs/alien_nest.dm @@ -8,7 +8,7 @@ base_icon_state = "nest" max_integrity = 120 can_be_unanchored = FALSE - smoothing_flags = SMOOTH_BLOB + smoothing_flags = SMOOTH_BITMASK smoothing_groups = list(SMOOTH_GROUP_ALIEN_NEST) canSmoothWith = list(SMOOTH_GROUP_ALIEN_NEST) buildstacktype = null diff --git a/code/game/objects/structures/false_walls.dm b/code/game/objects/structures/false_walls.dm index c95493e125f..891b0ba31d5 100644 --- a/code/game/objects/structures/false_walls.dm +++ b/code/game/objects/structures/false_walls.dm @@ -12,7 +12,7 @@ density = TRUE opacity = TRUE max_integrity = 100 - smoothing_flags = SMOOTH_BLOB + smoothing_flags = SMOOTH_BITMASK smoothing_groups = list(SMOOTH_GROUP_CLOSED_TURFS, SMOOTH_GROUP_WALLS) canSmoothWith = list(SMOOTH_GROUP_WALLS) can_be_unanchored = FALSE @@ -65,7 +65,7 @@ else if(density) icon_state = "[base_icon_state]-[smoothing_junction]" - smoothing_flags = SMOOTH_BLOB + smoothing_flags = SMOOTH_BITMASK QUEUE_SMOOTH(src) else icon_state = "fwall_open" @@ -138,7 +138,7 @@ base_icon_state = "reinforced_wall" walltype = /turf/closed/wall/r_wall mineral = /obj/item/stack/sheet/plasteel - smoothing_flags = SMOOTH_BLOB + smoothing_flags = SMOOTH_BITMASK /obj/structure/falsewall/reinforced/examine_status(mob/user) to_chat(user, "The outer grille is fully intact.") @@ -161,7 +161,7 @@ base_icon_state = "uranium_wall" mineral = /obj/item/stack/sheet/mineral/uranium walltype = /turf/closed/wall/mineral/uranium - smoothing_flags = SMOOTH_BLOB + smoothing_flags = SMOOTH_BITMASK smoothing_groups = list(SMOOTH_GROUP_WALLS, SMOOTH_GROUP_URANIUM_WALLS) canSmoothWith = list(SMOOTH_GROUP_URANIUM_WALLS) var/active = null @@ -198,7 +198,7 @@ base_icon_state = "gold_wall" mineral = /obj/item/stack/sheet/mineral/gold walltype = /turf/closed/wall/mineral/gold - smoothing_flags = SMOOTH_BLOB + smoothing_flags = SMOOTH_BITMASK smoothing_groups = list(SMOOTH_GROUP_WALLS, SMOOTH_GROUP_GOLD_WALLS) canSmoothWith = list(SMOOTH_GROUP_GOLD_WALLS) @@ -210,7 +210,7 @@ base_icon_state = "silver_wall" mineral = /obj/item/stack/sheet/mineral/silver walltype = /turf/closed/wall/mineral/silver - smoothing_flags = SMOOTH_BLOB + smoothing_flags = SMOOTH_BITMASK smoothing_groups = list(SMOOTH_GROUP_WALLS, SMOOTH_GROUP_SILVER_WALLS) canSmoothWith = list(SMOOTH_GROUP_SILVER_WALLS) @@ -222,7 +222,7 @@ base_icon_state = "diamond_wall" mineral = /obj/item/stack/sheet/mineral/diamond walltype = /turf/closed/wall/mineral/diamond - smoothing_flags = SMOOTH_BLOB + smoothing_flags = SMOOTH_BITMASK smoothing_groups = list(SMOOTH_GROUP_WALLS, SMOOTH_GROUP_DIAMOND_WALLS) canSmoothWith = list(SMOOTH_GROUP_DIAMOND_WALLS) max_integrity = 800 @@ -235,7 +235,7 @@ base_icon_state = "plasma_wall" mineral = /obj/item/stack/sheet/mineral/plasma walltype = /turf/closed/wall/mineral/plasma - smoothing_flags = SMOOTH_BLOB + smoothing_flags = SMOOTH_BITMASK smoothing_groups = list(SMOOTH_GROUP_WALLS, SMOOTH_GROUP_PLASMA_WALLS) canSmoothWith = list(SMOOTH_GROUP_PLASMA_WALLS) @@ -266,7 +266,7 @@ base_icon_state = "bananium_wall" mineral = /obj/item/stack/sheet/mineral/bananium walltype = /turf/closed/wall/mineral/bananium - smoothing_flags = SMOOTH_BLOB + smoothing_flags = SMOOTH_BITMASK smoothing_groups = list(SMOOTH_GROUP_WALLS, SMOOTH_GROUP_BANANIUM_WALLS) canSmoothWith = list(SMOOTH_GROUP_BANANIUM_WALLS) @@ -279,7 +279,7 @@ base_icon_state = "sandstone_wall" mineral = /obj/item/stack/sheet/mineral/sandstone walltype = /turf/closed/wall/mineral/sandstone - smoothing_flags = SMOOTH_BLOB + smoothing_flags = SMOOTH_BITMASK smoothing_groups = list(SMOOTH_GROUP_WALLS, SMOOTH_GROUP_SANDSTONE_WALLS) canSmoothWith = list(SMOOTH_GROUP_SANDSTONE_WALLS) @@ -291,7 +291,7 @@ base_icon_state = "wood_wall" mineral = /obj/item/stack/sheet/mineral/wood walltype = /turf/closed/wall/mineral/wood - smoothing_flags = SMOOTH_BLOB + smoothing_flags = SMOOTH_BITMASK smoothing_groups = list(SMOOTH_GROUP_WALLS, SMOOTH_GROUP_WOOD_WALLS) canSmoothWith = list(SMOOTH_GROUP_WOOD_WALLS) @@ -305,7 +305,7 @@ mineral_amount = 5 walltype = /turf/closed/wall/mineral/iron base_icon_state = "icerock_wall" - smoothing_flags = SMOOTH_BLOB + smoothing_flags = SMOOTH_BITMASK smoothing_groups = list(SMOOTH_GROUP_WALLS, SMOOTH_GROUP_IRON_WALLS) canSmoothWith = list(SMOOTH_GROUP_IRON_WALLS) @@ -317,7 +317,7 @@ base_icon_state = "abductor_wall" mineral = /obj/item/stack/sheet/mineral/abductor walltype = /turf/closed/wall/mineral/abductor - smoothing_flags = SMOOTH_BLOB + smoothing_flags = SMOOTH_BITMASK smoothing_groups = list(SMOOTH_GROUP_WALLS, SMOOTH_GROUP_ABDUCTOR_WALLS) canSmoothWith = list(SMOOTH_GROUP_ABDUCTOR_WALLS) @@ -329,7 +329,7 @@ base_icon_state = "shuttle_wall" mineral = /obj/item/stack/sheet/mineral/titanium walltype = /turf/closed/wall/mineral/titanium - smoothing_flags = SMOOTH_BLOB + smoothing_flags = SMOOTH_BITMASK smoothing_groups = list(SMOOTH_GROUP_WALLS, SMOOTH_GROUP_TITANIUM_WALLS) canSmoothWith = list(SMOOTH_GROUP_TITANIUM_WALLS, SMOOTH_GROUP_AIRLOCK, SMOOTH_GROUP_SHUTTLE_PARTS) @@ -341,6 +341,6 @@ base_icon_state = "plastitanium_wall" mineral = /obj/item/stack/sheet/mineral/plastitanium walltype = /turf/closed/wall/mineral/plastitanium - smoothing_flags = SMOOTH_BLOB + smoothing_flags = SMOOTH_BITMASK smoothing_groups = list(SMOOTH_GROUP_WALLS, SMOOTH_GROUP_PLASTITANIUM_WALLS) canSmoothWith = list(SMOOTH_GROUP_PLASTITANIUM_WALLS, SMOOTH_GROUP_AIRLOCK, SMOOTH_GROUP_SHUTTLE_PARTS) diff --git a/code/game/objects/structures/fluff.dm b/code/game/objects/structures/fluff.dm index 4cb74d59376..f4849995a8b 100644 --- a/code/game/objects/structures/fluff.dm +++ b/code/game/objects/structures/fluff.dm @@ -254,7 +254,7 @@ icon = 'icons/obj/smooth_structures/hedge.dmi' icon_state = "hedge-0" base_icon_state = "hedge" - smoothing_flags = SMOOTH_BLOB + smoothing_flags = SMOOTH_BITMASK smoothing_groups = list(SMOOTH_GROUP_HEDGE_FLUFF) canSmoothWith = list(SMOOTH_GROUP_HEDGE_FLUFF) density = TRUE diff --git a/code/game/objects/structures/grille.dm b/code/game/objects/structures/grille.dm index 1fce6eff1b9..fc5b4818163 100644 --- a/code/game/objects/structures/grille.dm +++ b/code/game/objects/structures/grille.dm @@ -31,7 +31,7 @@ var/ratio = obj_integrity / max_integrity ratio = CEILING(ratio*4, 1) * 25 - if(smoothing_flags & (SMOOTH_CORNERS|SMOOTH_BLOB)) + if(smoothing_flags & (SMOOTH_CORNERS|SMOOTH_BITMASK)) QUEUE_SMOOTH(src) if(ratio > 50) diff --git a/code/game/objects/structures/industrial_lift.dm b/code/game/objects/structures/industrial_lift.dm index e939566b782..adcc13270fd 100644 --- a/code/game/objects/structures/industrial_lift.dm +++ b/code/game/objects/structures/industrial_lift.dm @@ -143,7 +143,7 @@ GLOBAL_LIST_EMPTY(lifts) max_integrity = 50 layer = LATTICE_LAYER //under pipes plane = FLOOR_PLANE - smoothing_flags = SMOOTH_BLOB + smoothing_flags = SMOOTH_BITMASK smoothing_groups = list(SMOOTH_GROUP_INDUSTRIAL_LIFT) canSmoothWith = list(SMOOTH_GROUP_INDUSTRIAL_LIFT) obj_flags = CAN_BE_HIT | BLOCK_Z_OUT_DOWN diff --git a/code/game/objects/structures/lattice.dm b/code/game/objects/structures/lattice.dm index 3285b6169d5..eacfe6142e7 100644 --- a/code/game/objects/structures/lattice.dm +++ b/code/game/objects/structures/lattice.dm @@ -11,7 +11,7 @@ layer = LATTICE_LAYER //under pipes plane = FLOOR_PLANE obj_flags = CAN_BE_HIT | BLOCK_Z_OUT_DOWN - smoothing_flags = SMOOTH_BLOB + smoothing_flags = SMOOTH_BITMASK smoothing_groups = list(SMOOTH_GROUP_LATTICE) canSmoothWith = list(SMOOTH_GROUP_LATTICE, SMOOTH_GROUP_OPEN_FLOOR, SMOOTH_GROUP_WALLS) var/number_of_mats = 1 @@ -76,7 +76,7 @@ icon_state = "catwalk-0" base_icon_state = "catwalk" number_of_mats = 2 - smoothing_flags = SMOOTH_BLOB + smoothing_flags = SMOOTH_BITMASK smoothing_groups = list(SMOOTH_GROUP_LATTICE, SMOOTH_GROUP_OPEN_FLOOR) canSmoothWith = list(SMOOTH_GROUP_LATTICE) obj_flags = CAN_BE_HIT | BLOCK_Z_OUT_DOWN | BLOCK_Z_IN_UP @@ -104,7 +104,7 @@ base_icon_state = "catwalk" number_of_mats = 1 color = "#5286b9ff" - smoothing_flags = SMOOTH_BLOB + smoothing_flags = SMOOTH_BITMASK smoothing_groups = list(SMOOTH_GROUP_LATTICE, SMOOTH_GROUP_OPEN_FLOOR) canSmoothWith = list(SMOOTH_GROUP_LATTICE) obj_flags = CAN_BE_HIT | BLOCK_Z_OUT_DOWN | BLOCK_Z_IN_UP diff --git a/code/game/objects/structures/mineral_doors.dm b/code/game/objects/structures/mineral_doors.dm index 59b9411b04c..4d629b85d5e 100644 --- a/code/game/objects/structures/mineral_doors.dm +++ b/code/game/objects/structures/mineral_doors.dm @@ -311,7 +311,7 @@ /obj/structure/mineral_door/paperframe/Initialize() . = ..() - if(smoothing_flags & (SMOOTH_CORNERS|SMOOTH_BLOB)) + if(smoothing_flags & (SMOOTH_CORNERS|SMOOTH_BITMASK)) QUEUE_SMOOTH_NEIGHBORS(src) /obj/structure/mineral_door/paperframe/examine(mob/user) @@ -347,6 +347,6 @@ return /obj/structure/mineral_door/paperframe/Destroy() - if(smoothing_flags & (SMOOTH_CORNERS|SMOOTH_BLOB)) + if(smoothing_flags & (SMOOTH_CORNERS|SMOOTH_BITMASK)) QUEUE_SMOOTH_NEIGHBORS(src) return ..() diff --git a/code/game/objects/structures/tables_racks.dm b/code/game/objects/structures/tables_racks.dm index 839f6121968..e2aa6ad4242 100644 --- a/code/game/objects/structures/tables_racks.dm +++ b/code/game/objects/structures/tables_racks.dm @@ -33,7 +33,7 @@ custom_materials = list(/datum/material/iron = 2000) max_integrity = 100 integrity_failure = 0.33 - smoothing_flags = SMOOTH_BLOB + smoothing_flags = SMOOTH_BITMASK smoothing_groups = list(SMOOTH_GROUP_TABLES) canSmoothWith = list(SMOOTH_GROUP_TABLES) @@ -45,7 +45,7 @@ return "The top is screwed on, but the main bolts are also visible." /obj/structure/table/update_icon() - if(smoothing_flags & (SMOOTH_CORNERS|SMOOTH_BLOB)) + if(smoothing_flags & (SMOOTH_CORNERS|SMOOTH_BITMASK)) QUEUE_SMOOTH(src) QUEUE_SMOOTH_NEIGHBORS(src) diff --git a/code/game/objects/structures/window.dm b/code/game/objects/structures/window.dm index d7e3715cf74..d66f3b97c45 100644 --- a/code/game/objects/structures/window.dm +++ b/code/game/objects/structures/window.dm @@ -317,7 +317,7 @@ //This proc is used to update the icons of nearby windows. /obj/structure/window/proc/update_nearby_icons() update_icon() - if(smoothing_flags & (SMOOTH_CORNERS|SMOOTH_BLOB)) + if(smoothing_flags & (SMOOTH_CORNERS|SMOOTH_BITMASK)) QUEUE_SMOOTH_NEIGHBORS(src) //merges adjacent full-tile windows into one @@ -330,7 +330,7 @@ var/ratio = obj_integrity / max_integrity ratio = CEILING(ratio*4, 1) * 25 - if(smoothing_flags & (SMOOTH_CORNERS|SMOOTH_BLOB)) + if(smoothing_flags & (SMOOTH_CORNERS|SMOOTH_BITMASK)) QUEUE_SMOOTH(src) cut_overlay(crack_overlay) @@ -604,7 +604,7 @@ max_integrity = 50 fulltile = TRUE flags_1 = PREVENT_CLICK_UNDER_1 - smoothing_flags = SMOOTH_BLOB + smoothing_flags = SMOOTH_BITMASK smoothing_groups = list(SMOOTH_GROUP_WINDOW_FULLTILE) canSmoothWith = list(SMOOTH_GROUP_WINDOW_FULLTILE) glass_amount = 2 @@ -620,7 +620,7 @@ max_integrity = 300 fulltile = TRUE flags_1 = PREVENT_CLICK_UNDER_1 - smoothing_flags = SMOOTH_BLOB + smoothing_flags = SMOOTH_BITMASK smoothing_groups = list(SMOOTH_GROUP_WINDOW_FULLTILE) canSmoothWith = list(SMOOTH_GROUP_WINDOW_FULLTILE) glass_amount = 2 @@ -637,7 +637,7 @@ max_integrity = 1000 fulltile = TRUE flags_1 = PREVENT_CLICK_UNDER_1 - smoothing_flags = SMOOTH_BLOB + smoothing_flags = SMOOTH_BITMASK smoothing_groups = list(SMOOTH_GROUP_WINDOW_FULLTILE) canSmoothWith = list(SMOOTH_GROUP_WINDOW_FULLTILE) glass_amount = 2 @@ -655,7 +655,7 @@ fulltile = TRUE flags_1 = PREVENT_CLICK_UNDER_1 state = RWINDOW_SECURE - smoothing_flags = SMOOTH_BLOB + smoothing_flags = SMOOTH_BITMASK smoothing_groups = list(SMOOTH_GROUP_WINDOW_FULLTILE) canSmoothWith = list(SMOOTH_GROUP_WINDOW_FULLTILE) glass_amount = 2 @@ -671,7 +671,7 @@ dir = FULLTILE_WINDOW_DIR fulltile = TRUE flags_1 = PREVENT_CLICK_UNDER_1 - smoothing_flags = SMOOTH_BLOB + smoothing_flags = SMOOTH_BITMASK smoothing_groups = list(SMOOTH_GROUP_WINDOW_FULLTILE) canSmoothWith = list(SMOOTH_GROUP_WINDOW_FULLTILE) glass_amount = 2 @@ -697,7 +697,7 @@ reinf = TRUE heat_resistance = 1600 armor = list(MELEE = 90, BULLET = 0, LASER = 0, ENERGY = 0, BOMB = 50, BIO = 100, RAD = 100, FIRE = 80, ACID = 100) - smoothing_flags = SMOOTH_BLOB + smoothing_flags = SMOOTH_BITMASK smoothing_groups = list(SMOOTH_GROUP_SHUTTLE_PARTS, SMOOTH_GROUP_WINDOW_FULLTILE_SHUTTLE) canSmoothWith = list(SMOOTH_GROUP_WINDOW_FULLTILE_SHUTTLE) explosion_block = 3 @@ -727,7 +727,7 @@ flags_1 = PREVENT_CLICK_UNDER_1 heat_resistance = 1600 armor = list(MELEE = 95, BULLET = 0, LASER = 0, ENERGY = 0, BOMB = 50, BIO = 100, RAD = 100, FIRE = 80, ACID = 100) - smoothing_flags = SMOOTH_BLOB + smoothing_flags = SMOOTH_BITMASK smoothing_groups = list(SMOOTH_GROUP_SHUTTLE_PARTS, SMOOTH_GROUP_WINDOW_FULLTILE_PLASTITANIUM) canSmoothWith = list(SMOOTH_GROUP_WINDOW_FULLTILE_PLASTITANIUM) explosion_block = 3 @@ -751,7 +751,7 @@ max_integrity = 15 fulltile = TRUE flags_1 = PREVENT_CLICK_UNDER_1 - smoothing_flags = SMOOTH_BLOB + smoothing_flags = SMOOTH_BITMASK smoothing_groups = list(SMOOTH_GROUP_PAPERFRAME) canSmoothWith = list(SMOOTH_GROUP_PAPERFRAME) glass_amount = 2 @@ -800,7 +800,7 @@ cut_overlay(torn) add_overlay(paper) set_opacity(TRUE) - if(smoothing_flags & (SMOOTH_CORNERS|SMOOTH_BLOB)) + if(smoothing_flags & (SMOOTH_CORNERS|SMOOTH_BITMASK)) QUEUE_SMOOTH(src) @@ -835,7 +835,7 @@ /obj/structure/window/bronze/fulltile icon_state = "clockwork_window-0" base_icon_state = "clockwork_window" - smoothing_flags = SMOOTH_BLOB + smoothing_flags = SMOOTH_BITMASK smoothing_groups = list(SMOOTH_GROUP_WINDOW_FULLTILE, SMOOTH_GROUP_WINDOW_FULLTILE_BRONZE) canSmoothWith = list(SMOOTH_GROUP_WINDOW_FULLTILE_BRONZE) fulltile = TRUE diff --git a/code/game/turfs/change_turf.dm b/code/game/turfs/change_turf.dm index 86fd2fb340c..b7776acb47c 100644 --- a/code/game/turfs/change_turf.dm +++ b/code/game/turfs/change_turf.dm @@ -285,7 +285,7 @@ GLOBAL_LIST_INIT(blacklisted_automated_baseturfs, typecacheof(list( for(var/obj/machinery/door/firedoor/FD in T) FD.CalculateAffectingAreas() - if(smoothing_flags & (SMOOTH_CORNERS|SMOOTH_BLOB)) + if(smoothing_flags & (SMOOTH_CORNERS|SMOOTH_BITMASK)) QUEUE_SMOOTH_NEIGHBORS(src) HandleTurfChange(src) diff --git a/code/game/turfs/closed/_closed.dm b/code/game/turfs/closed/_closed.dm index 9a601419fbd..a6d2dda993a 100644 --- a/code/game/turfs/closed/_closed.dm +++ b/code/game/turfs/closed/_closed.dm @@ -51,7 +51,7 @@ icon_state = "sandstone_wall-0" base_icon_state = "sandstone_wall" baseturfs = /turf/closed/indestructible/sandstone - smoothing_flags = SMOOTH_BLOB + smoothing_flags = SMOOTH_BITMASK /turf/closed/indestructible/oldshuttle/corner icon_state = "corner" @@ -81,7 +81,7 @@ icon = 'icons/turf/walls/riveted.dmi' icon_state = "riveted-0" base_icon_state = "riveted" - smoothing_flags = SMOOTH_BLOB + smoothing_flags = SMOOTH_BITMASK smoothing_groups = list(SMOOTH_GROUP_CLOSED_TURFS) canSmoothWith = list(SMOOTH_GROUP_CLOSED_TURFS) @@ -89,7 +89,7 @@ icon = 'icons/turf/walls/plastitanium_wall.dmi' icon_state = "plastitanium_wall-0" base_icon_state = "plastitanium_wall" - smoothing_flags = SMOOTH_BLOB | SMOOTH_DIAGONAL_CORNERS + smoothing_flags = SMOOTH_BITMASK | SMOOTH_DIAGONAL_CORNERS smoothing_groups = list(SMOOTH_GROUP_CLOSED_TURFS, SMOOTH_GROUP_WALLS, SMOOTH_GROUP_SYNDICATE_WALLS) canSmoothWith = list(SMOOTH_GROUP_SYNDICATE_WALLS, SMOOTH_GROUP_PLASTITANIUM_WALLS, SMOOTH_GROUP_AIRLOCK, SMOOTH_GROUP_SHUTTLE_PARTS) @@ -97,7 +97,7 @@ icon = 'icons/turf/walls/uranium_wall.dmi' icon_state = "uranium_wall-0" base_icon_state = "uranium_wall" - smoothing_flags = SMOOTH_BLOB + smoothing_flags = SMOOTH_BITMASK /turf/closed/indestructible/riveted/plastinum name = "plastinum wall" @@ -105,13 +105,13 @@ icon = 'icons/turf/walls/plastinum_wall.dmi' icon_state = "plastinum_wall-0" base_icon_state = "plastinum_wall" - smoothing_flags = SMOOTH_BLOB | SMOOTH_DIAGONAL_CORNERS + smoothing_flags = SMOOTH_BITMASK | SMOOTH_DIAGONAL_CORNERS /turf/closed/indestructible/wood icon = 'icons/turf/walls/wood_wall.dmi' icon_state = "wood_wall-0" base_icon_state = "wood_wall" - smoothing_flags = SMOOTH_BLOB + smoothing_flags = SMOOTH_BITMASK smoothing_groups = list(SMOOTH_GROUP_CLOSED_TURFS, SMOOTH_GROUP_WALLS, SMOOTH_GROUP_WOOD_WALLS) canSmoothWith = list(SMOOTH_GROUP_WOOD_WALLS) @@ -128,7 +128,7 @@ icon_state = "fake_window" base_icon_state = "reinforced_window" opacity = FALSE - smoothing_flags = SMOOTH_BLOB + smoothing_flags = SMOOTH_BITMASK smoothing_groups = list(SMOOTH_GROUP_WINDOW_FULLTILE) canSmoothWith = list(SMOOTH_GROUP_WINDOW_FULLTILE) @@ -144,7 +144,7 @@ icon_state = "plastitanium_window-0" base_icon_state = "plastitanium_window" opacity = FALSE - smoothing_flags = SMOOTH_BLOB + smoothing_flags = SMOOTH_BITMASK smoothing_groups = list(SMOOTH_GROUP_SHUTTLE_PARTS, SMOOTH_GROUP_WINDOW_FULLTILE_PLASTITANIUM) canSmoothWith = list(SMOOTH_GROUP_WINDOW_FULLTILE_PLASTITANIUM) @@ -183,7 +183,7 @@ icon = 'icons/turf/walls/icerock_wall.dmi' icon_state = "icerock_wall-0" base_icon_state = "icerock_wall" - smoothing_flags = SMOOTH_BLOB | SMOOTH_BORDER + smoothing_flags = SMOOTH_BITMASK | SMOOTH_BORDER canSmoothWith = list(SMOOTH_GROUP_CLOSED_TURFS) pixel_x = -4 pixel_y = -4 @@ -214,7 +214,7 @@ icon = 'icons/turf/walls/boss_wall.dmi' icon_state = "boss_wall-0" base_icon_state = "boss_wall" - smoothing_flags = SMOOTH_BLOB + smoothing_flags = SMOOTH_BITMASK smoothing_groups = list(SMOOTH_GROUP_CLOSED_TURFS, SMOOTH_GROUP_BOSS_WALLS) canSmoothWith = list(SMOOTH_GROUP_BOSS_WALLS) explosion_block = 50 diff --git a/code/game/turfs/closed/minerals.dm b/code/game/turfs/closed/minerals.dm index 449f9b2e5ad..c36fbcbf4a3 100644 --- a/code/game/turfs/closed/minerals.dm +++ b/code/game/turfs/closed/minerals.dm @@ -4,7 +4,7 @@ name = "rock" icon = 'icons/turf/mining.dmi' icon_state = "rock" - smoothing_flags = SMOOTH_BLOB | SMOOTH_BORDER + smoothing_flags = SMOOTH_BITMASK | SMOOTH_BORDER smoothing_groups = list(SMOOTH_GROUP_CLOSED_TURFS, SMOOTH_GROUP_MINERAL_WALLS) canSmoothWith = list(SMOOTH_GROUP_MINERAL_WALLS) baseturfs = /turf/open/floor/plating/asteroid/airless @@ -256,7 +256,7 @@ smooth_icon = 'icons/turf/walls/mountain_wall.dmi' icon_state = "mountainrock" base_icon_state = "mountain_wall" - smoothing_flags = SMOOTH_BLOB | SMOOTH_BORDER + smoothing_flags = SMOOTH_BITMASK | SMOOTH_BORDER canSmoothWith = list(SMOOTH_GROUP_CLOSED_TURFS) defer_change = TRUE environment_type = "snow_cavern" @@ -277,7 +277,7 @@ icon = 'icons/turf/walls/icerock_wall.dmi' icon_state = "icerock_wall-0" base_icon_state = "icerock_wall" - smoothing_flags = SMOOTH_BLOB | SMOOTH_BORDER + smoothing_flags = SMOOTH_BITMASK | SMOOTH_BORDER /turf/closed/mineral/random/snow/more_caves mineralSpawnChanceList = list( @@ -330,7 +330,7 @@ smooth_icon = 'icons/turf/walls/mountain_wall.dmi' icon_state = "mountainrock" base_icon_state = "mountain_wall" - smoothing_flags = SMOOTH_BLOB | SMOOTH_BORDER + smoothing_flags = SMOOTH_BITMASK | SMOOTH_BORDER canSmoothWith = list(SMOOTH_GROUP_CLOSED_TURFS) defer_change = TRUE environment_type = "snow" @@ -360,7 +360,7 @@ icon_state = "icerock_iron" smooth_icon = 'icons/turf/walls/icerock_wall.dmi' base_icon_state = "icerock_wall" - smoothing_flags = SMOOTH_BLOB | SMOOTH_BORDER + smoothing_flags = SMOOTH_BITMASK | SMOOTH_BORDER turf_type = /turf/open/floor/plating/asteroid/snow/ice baseturfs = /turf/open/floor/plating/asteroid/snow/ice initial_gas_mix = FROZEN_ATMOS @@ -387,7 +387,7 @@ icon_state = "icerock_Uranium" smooth_icon = 'icons/turf/walls/icerock_wall.dmi' base_icon_state = "icerock_wall" - smoothing_flags = SMOOTH_BLOB | SMOOTH_BORDER + smoothing_flags = SMOOTH_BITMASK | SMOOTH_BORDER turf_type = /turf/open/floor/plating/asteroid/snow/ice baseturfs = /turf/open/floor/plating/asteroid/snow/ice initial_gas_mix = FROZEN_ATMOS @@ -414,7 +414,7 @@ icon_state = "icerock_diamond" smooth_icon = 'icons/turf/walls/icerock_wall.dmi' base_icon_state = "icerock_wall" - smoothing_flags = SMOOTH_BLOB | SMOOTH_BORDER + smoothing_flags = SMOOTH_BITMASK | SMOOTH_BORDER turf_type = /turf/open/floor/plating/asteroid/snow/ice baseturfs = /turf/open/floor/plating/asteroid/snow/ice initial_gas_mix = FROZEN_ATMOS @@ -441,7 +441,7 @@ icon_state = "icerock_gold" smooth_icon = 'icons/turf/walls/icerock_wall.dmi' base_icon_state = "icerock_wall" - smoothing_flags = SMOOTH_BLOB | SMOOTH_BORDER + smoothing_flags = SMOOTH_BITMASK | SMOOTH_BORDER turf_type = /turf/open/floor/plating/asteroid/snow/ice baseturfs = /turf/open/floor/plating/asteroid/snow/ice initial_gas_mix = FROZEN_ATMOS @@ -468,7 +468,7 @@ icon_state = "icerock_silver" smooth_icon = 'icons/turf/walls/icerock_wall.dmi' base_icon_state = "icerock_wall" - smoothing_flags = SMOOTH_BLOB | SMOOTH_BORDER + smoothing_flags = SMOOTH_BITMASK | SMOOTH_BORDER turf_type = /turf/open/floor/plating/asteroid/snow/ice baseturfs = /turf/open/floor/plating/asteroid/snow/ice initial_gas_mix = FROZEN_ATMOS @@ -495,7 +495,7 @@ icon_state = "icerock_titanium" smooth_icon = 'icons/turf/walls/icerock_wall.dmi' base_icon_state = "icerock_wall" - smoothing_flags = SMOOTH_BLOB | SMOOTH_BORDER + smoothing_flags = SMOOTH_BITMASK | SMOOTH_BORDER turf_type = /turf/open/floor/plating/asteroid/snow/ice baseturfs = /turf/open/floor/plating/asteroid/snow/ice initial_gas_mix = FROZEN_ATMOS @@ -522,7 +522,7 @@ icon_state = "icerock_plasma" smooth_icon = 'icons/turf/walls/icerock_wall.dmi' base_icon_state = "icerock_wall" - smoothing_flags = SMOOTH_BLOB | SMOOTH_BORDER + smoothing_flags = SMOOTH_BITMASK | SMOOTH_BORDER turf_type = /turf/open/floor/plating/asteroid/snow/ice baseturfs = /turf/open/floor/plating/asteroid/snow/ice initial_gas_mix = FROZEN_ATMOS @@ -543,7 +543,7 @@ icon_state = "icerock_Bananium" smooth_icon = 'icons/turf/walls/icerock_wall.dmi' base_icon_state = "icerock_wall" - smoothing_flags = SMOOTH_BLOB | SMOOTH_BORDER + smoothing_flags = SMOOTH_BITMASK | SMOOTH_BORDER turf_type = /turf/open/floor/plating/asteroid/snow/ice baseturfs = /turf/open/floor/plating/asteroid/snow/ice initial_gas_mix = FROZEN_ATMOS @@ -571,7 +571,7 @@ icon_state = "icerock_BScrystal" smooth_icon = 'icons/turf/walls/icerock_wall.dmi' base_icon_state = "icerock_wall" - smoothing_flags = SMOOTH_BLOB | SMOOTH_BORDER + smoothing_flags = SMOOTH_BITMASK | SMOOTH_BORDER turf_type = /turf/open/floor/plating/asteroid/snow/ice baseturfs = /turf/open/floor/plating/asteroid/snow/ice initial_gas_mix = FROZEN_ATMOS @@ -600,7 +600,7 @@ smooth_icon = 'icons/turf/walls/rock_wall.dmi' icon_state = "rock2" base_icon_state = "rock_wall" - smoothing_flags = SMOOTH_BLOB | SMOOTH_BORDER + smoothing_flags = SMOOTH_BITMASK | SMOOTH_BORDER canSmoothWith = list(SMOOTH_GROUP_CLOSED_TURFS) baseturfs = /turf/open/floor/plating/ashplanet/wateryrock initial_gas_mix = OPENTURF_LOW_PRESSURE @@ -614,7 +614,7 @@ smooth_icon = 'icons/turf/walls/mountain_wall.dmi' icon_state = "mountainrock" base_icon_state = "mountain_wall" - smoothing_flags = SMOOTH_BLOB | SMOOTH_BORDER + smoothing_flags = SMOOTH_BITMASK | SMOOTH_BORDER canSmoothWith = list(SMOOTH_GROUP_CLOSED_TURFS) baseturfs = /turf/open/floor/plating/asteroid/snow initial_gas_mix = FROZEN_ATMOS @@ -633,7 +633,7 @@ smooth_icon = 'icons/turf/walls/icerock_wall.dmi' icon_state = "icerock" base_icon_state = "icerock_wall" - smoothing_flags = SMOOTH_BLOB | SMOOTH_BORDER + smoothing_flags = SMOOTH_BITMASK | SMOOTH_BORDER baseturfs = /turf/open/floor/plating/asteroid/snow/ice environment_type = "snow_cavern" turf_type = /turf/open/floor/plating/asteroid/snow/ice @@ -744,7 +744,7 @@ icon_state = "icerock_Gibtonite" smooth_icon = 'icons/turf/walls/icerock_wall.dmi' base_icon_state = "icerock_wall" - smoothing_flags = SMOOTH_BLOB | SMOOTH_BORDER + smoothing_flags = SMOOTH_BITMASK | SMOOTH_BORDER turf_type = /turf/open/floor/plating/asteroid/snow/ice baseturfs = /turf/open/floor/plating/asteroid/snow/ice initial_gas_mix = FROZEN_ATMOS @@ -765,7 +765,7 @@ defer_change = 1 smooth_icon = 'icons/turf/walls/rock_wall.dmi' base_icon_state = "rock_wall" - smoothing_flags = SMOOTH_BLOB | SMOOTH_BORDER + smoothing_flags = SMOOTH_BITMASK | SMOOTH_BORDER /turf/closed/mineral/strong/attackby(obj/item/I, mob/user, params) if(!ishuman(user)) diff --git a/code/game/turfs/closed/wall/material_walls.dm b/code/game/turfs/closed/wall/material_walls.dm index 099fcd1c8e3..6dcfd6d221a 100644 --- a/code/game/turfs/closed/wall/material_walls.dm +++ b/code/game/turfs/closed/wall/material_walls.dm @@ -4,7 +4,7 @@ icon = 'icons/turf/walls/materialwall.dmi' icon_state = "materialwall-0" base_icon_state = "materialwall" - smoothing_flags = SMOOTH_BLOB + smoothing_flags = SMOOTH_BITMASK smoothing_groups = list(SMOOTH_GROUP_CLOSED_TURFS, SMOOTH_GROUP_WALLS, SMOOTH_GROUP_MATERIAL_WALLS) canSmoothWith = list(SMOOTH_GROUP_MATERIAL_WALLS) material_flags = MATERIAL_ADD_PREFIX | MATERIAL_COLOR | MATERIAL_AFFECT_STATISTICS diff --git a/code/game/turfs/closed/wall/mineral_walls.dm b/code/game/turfs/closed/wall/mineral_walls.dm index ee901fe0294..a668d48d0ac 100644 --- a/code/game/turfs/closed/wall/mineral_walls.dm +++ b/code/game/turfs/closed/wall/mineral_walls.dm @@ -2,7 +2,7 @@ name = "mineral wall" desc = "This shouldn't exist" icon_state = "" - smoothing_flags = SMOOTH_BLOB + smoothing_flags = SMOOTH_BITMASK canSmoothWith = null var/last_event = 0 var/active = null @@ -24,7 +24,7 @@ icon_state = "silver_wall-0" base_icon_state = "silver_wall" sheet_type = /obj/item/stack/sheet/mineral/silver - smoothing_flags = SMOOTH_BLOB + smoothing_flags = SMOOTH_BITMASK smoothing_groups = list(SMOOTH_GROUP_CLOSED_TURFS, SMOOTH_GROUP_WALLS, SMOOTH_GROUP_SILVER_WALLS) canSmoothWith = list(SMOOTH_GROUP_SILVER_WALLS) @@ -37,7 +37,7 @@ sheet_type = /obj/item/stack/sheet/mineral/diamond slicing_duration = 200 //diamond wall takes twice as much time to slice explosion_block = 3 - smoothing_flags = SMOOTH_BLOB + smoothing_flags = SMOOTH_BITMASK smoothing_groups = list(SMOOTH_GROUP_CLOSED_TURFS, SMOOTH_GROUP_WALLS, SMOOTH_GROUP_DIAMOND_WALLS) canSmoothWith = list(SMOOTH_GROUP_DIAMOND_WALLS) @@ -51,7 +51,7 @@ icon_state = "bananium_wall-0" base_icon_state = "bananium_wall" sheet_type = /obj/item/stack/sheet/mineral/bananium - smoothing_flags = SMOOTH_BLOB + smoothing_flags = SMOOTH_BITMASK smoothing_groups = list(SMOOTH_GROUP_CLOSED_TURFS, SMOOTH_GROUP_WALLS, SMOOTH_GROUP_BANANIUM_WALLS) canSmoothWith = list(SMOOTH_GROUP_BANANIUM_WALLS) @@ -63,7 +63,7 @@ base_icon_state = "sandstone_wall" sheet_type = /obj/item/stack/sheet/mineral/sandstone explosion_block = 0 - smoothing_flags = SMOOTH_BLOB + smoothing_flags = SMOOTH_BITMASK smoothing_groups = list(SMOOTH_GROUP_CLOSED_TURFS, SMOOTH_GROUP_WALLS, SMOOTH_GROUP_SANDSTONE_WALLS) canSmoothWith = list(SMOOTH_GROUP_SANDSTONE_WALLS) @@ -75,7 +75,7 @@ icon_state = "uranium_wall-0" base_icon_state = "uranium_wall" sheet_type = /obj/item/stack/sheet/mineral/uranium - smoothing_flags = SMOOTH_BLOB + smoothing_flags = SMOOTH_BITMASK smoothing_groups = list(SMOOTH_GROUP_CLOSED_TURFS, SMOOTH_GROUP_WALLS, SMOOTH_GROUP_URANIUM_WALLS) canSmoothWith = list(SMOOTH_GROUP_URANIUM_WALLS) @@ -114,7 +114,7 @@ base_icon_state = "plasma_wall" sheet_type = /obj/item/stack/sheet/mineral/plasma thermal_conductivity = 0.04 - smoothing_flags = SMOOTH_BLOB + smoothing_flags = SMOOTH_BITMASK smoothing_groups = list(SMOOTH_GROUP_CLOSED_TURFS, SMOOTH_GROUP_WALLS, SMOOTH_GROUP_PLASMA_WALLS) canSmoothWith = list(SMOOTH_GROUP_PLASMA_WALLS) @@ -156,7 +156,7 @@ sheet_type = /obj/item/stack/sheet/mineral/wood hardness = 70 explosion_block = 0 - smoothing_flags = SMOOTH_BLOB + smoothing_flags = SMOOTH_BITMASK smoothing_groups = list(SMOOTH_GROUP_CLOSED_TURFS, SMOOTH_GROUP_WALLS, SMOOTH_GROUP_WOOD_WALLS) canSmoothWith = list(SMOOTH_GROUP_WOOD_WALLS) @@ -185,7 +185,7 @@ icon_state = "iron_wall-0" base_icon_state = "iron_wall" sheet_type = /obj/item/stack/rods - smoothing_flags = SMOOTH_BLOB + smoothing_flags = SMOOTH_BITMASK smoothing_groups = list(SMOOTH_GROUP_CLOSED_TURFS, SMOOTH_GROUP_WALLS, SMOOTH_GROUP_IRON_WALLS) canSmoothWith = list(SMOOTH_GROUP_IRON_WALLS) @@ -195,7 +195,7 @@ icon = 'icons/turf/walls/snow_wall.dmi' icon_state = "snow_wall-0" base_icon_state = "snow_wall" - smoothing_flags = SMOOTH_BLOB + smoothing_flags = SMOOTH_BITMASK hardness = 80 explosion_block = 0 slicing_duration = 30 @@ -217,7 +217,7 @@ sheet_type = /obj/item/stack/sheet/mineral/abductor slicing_duration = 200 //alien wall takes twice as much time to slice explosion_block = 3 - smoothing_flags = SMOOTH_BLOB | SMOOTH_DIAGONAL_CORNERS + smoothing_flags = SMOOTH_BITMASK | SMOOTH_DIAGONAL_CORNERS smoothing_groups = list(SMOOTH_GROUP_CLOSED_TURFS, SMOOTH_GROUP_WALLS, SMOOTH_GROUP_ABDUCTOR_WALLS) canSmoothWith = list(SMOOTH_GROUP_ABDUCTOR_WALLS) @@ -233,7 +233,7 @@ flags_1 = CAN_BE_DIRTY_1 flags_ricochet = RICOCHET_SHINY | RICOCHET_HARD sheet_type = /obj/item/stack/sheet/mineral/titanium - smoothing_flags = SMOOTH_BLOB | SMOOTH_DIAGONAL_CORNERS + smoothing_flags = SMOOTH_BITMASK | SMOOTH_DIAGONAL_CORNERS smoothing_groups = list(SMOOTH_GROUP_CLOSED_TURFS, SMOOTH_GROUP_WALLS, SMOOTH_GROUP_TITANIUM_WALLS) canSmoothWith = list(SMOOTH_GROUP_TITANIUM_WALLS, SMOOTH_GROUP_AIRLOCK, SMOOTH_GROUP_SHUTTLE_PARTS) @@ -244,7 +244,7 @@ icon = 'icons/turf/walls/shuttle_wall.dmi' icon_state = "map-shuttle_nd" base_icon_state = "shuttle_wall" - smoothing_flags = SMOOTH_BLOB + smoothing_flags = SMOOTH_BITMASK /turf/closed/wall/mineral/titanium/nosmooth icon = 'icons/turf/shuttle.dmi' @@ -253,7 +253,7 @@ /turf/closed/wall/mineral/titanium/overspace icon_state = "map-overspace" - smoothing_flags = SMOOTH_BLOB | SMOOTH_DIAGONAL_CORNERS + smoothing_flags = SMOOTH_BITMASK | SMOOTH_DIAGONAL_CORNERS fixed_underlay = list("space" = TRUE) //sub-type to be used for interior shuttle walls @@ -285,14 +285,14 @@ icon = 'icons/turf/walls/survival_pod_walls.dmi' icon_state = "survival_pod_walls-0" base_icon_state = "survival_pod_walls" - smoothing_flags = SMOOTH_BLOB | SMOOTH_DIAGONAL_CORNERS + smoothing_flags = SMOOTH_BITMASK | SMOOTH_DIAGONAL_CORNERS canSmoothWith = list(SMOOTH_GROUP_TITANIUM_WALLS, SMOOTH_GROUP_AIRLOCK, SMOOTH_GROUP_WINDOW_FULLTILE, SMOOTH_GROUP_SHUTTLE_PARTS) /turf/closed/wall/mineral/titanium/survival/nodiagonal icon = 'icons/turf/walls/survival_pod_walls.dmi' icon_state = "survival_pod_walls-0" base_icon_state = "survival_pod_walls" - smoothing_flags = SMOOTH_BLOB + smoothing_flags = SMOOTH_BITMASK /turf/closed/wall/mineral/titanium/survival/pod smoothing_groups = list(SMOOTH_GROUP_CLOSED_TURFS, SMOOTH_GROUP_WALLS, SMOOTH_GROUP_TITANIUM_WALLS, SMOOTH_GROUP_SURVIVAL_TIANIUM_POD) @@ -308,7 +308,7 @@ base_icon_state = "plastitanium_wall" explosion_block = 4 sheet_type = /obj/item/stack/sheet/mineral/plastitanium - smoothing_flags = SMOOTH_BLOB | SMOOTH_DIAGONAL_CORNERS + smoothing_flags = SMOOTH_BITMASK | SMOOTH_DIAGONAL_CORNERS smoothing_groups = list(SMOOTH_GROUP_CLOSED_TURFS, SMOOTH_GROUP_WALLS, SMOOTH_GROUP_PLASTITANIUM_WALLS) canSmoothWith = list(SMOOTH_GROUP_PLASTITANIUM_WALLS, SMOOTH_GROUP_SYNDICATE_WALLS, SMOOTH_GROUP_AIRLOCK, SMOOTH_GROUP_SHUTTLE_PARTS) @@ -319,7 +319,7 @@ icon = 'icons/turf/walls/plastitanium_wall.dmi' icon_state = "map-shuttle_nd" base_icon_state = "plastitanium_wall" - smoothing_flags = SMOOTH_BLOB + smoothing_flags = SMOOTH_BITMASK /turf/closed/wall/mineral/plastitanium/nosmooth icon = 'icons/turf/shuttle.dmi' @@ -328,7 +328,7 @@ /turf/closed/wall/mineral/plastitanium/overspace icon_state = "map-overspace" - smoothing_flags = SMOOTH_BLOB | SMOOTH_DIAGONAL_CORNERS + smoothing_flags = SMOOTH_BITMASK | SMOOTH_DIAGONAL_CORNERS fixed_underlay = list("space" = TRUE) diff --git a/code/game/turfs/closed/wall/misc_walls.dm b/code/game/turfs/closed/wall/misc_walls.dm index dcf2b96e6a4..f1d78e1ed03 100644 --- a/code/game/turfs/closed/wall/misc_walls.dm +++ b/code/game/turfs/closed/wall/misc_walls.dm @@ -4,7 +4,7 @@ icon = 'icons/turf/walls/cult_wall.dmi' icon_state = "cult_wall-0" base_icon_state = "cult_wall" - smoothing_flags = SMOOTH_BLOB + smoothing_flags = SMOOTH_BITMASK canSmoothWith = null sheet_type = /obj/item/stack/sheet/runed_metal sheet_amount = 1 @@ -47,7 +47,7 @@ icon_state = "icedmetal_wall-0" base_icon_state = "icedmetal_wall" desc = "A wall covered in a thick sheet of ice." - smoothing_flags = SMOOTH_BLOB + smoothing_flags = SMOOTH_BITMASK canSmoothWith = null hardness = 35 slicing_duration = 150 //welding through the ice+metal @@ -59,7 +59,7 @@ icon = 'icons/turf/walls/rusty_wall.dmi' icon_state = "rusty_wall-0" base_icon_state = "rusty_wall" - smoothing_flags = SMOOTH_BLOB + smoothing_flags = SMOOTH_BITMASK hardness = 45 /turf/closed/wall/rust/rust_heretic_act() @@ -71,7 +71,7 @@ icon = 'icons/turf/walls/rusty_reinforced_wall.dmi' icon_state = "rusty_reinforced_wall-0" base_icon_state = "rusty_reinforced_wall" - smoothing_flags = SMOOTH_BLOB + smoothing_flags = SMOOTH_BITMASK hardness = 15 /turf/closed/wall/r_wall/rust/rust_heretic_act() @@ -85,7 +85,7 @@ icon = 'icons/turf/walls/clockwork_wall.dmi' icon_state = "clockwork_wall-0" base_icon_state = "clockwork_wall" - smoothing_flags = SMOOTH_BLOB + smoothing_flags = SMOOTH_BITMASK sheet_type = /obj/item/stack/tile/bronze sheet_amount = 2 girder_type = /obj/structure/girder/bronze diff --git a/code/game/turfs/closed/wall/reinf_walls.dm b/code/game/turfs/closed/wall/reinf_walls.dm index 10b2bfc4f66..f1567fb2912 100644 --- a/code/game/turfs/closed/wall/reinf_walls.dm +++ b/code/game/turfs/closed/wall/reinf_walls.dm @@ -6,7 +6,7 @@ base_icon_state = "reinforced_wall" opacity = TRUE density = TRUE - smoothing_flags = SMOOTH_BLOB + smoothing_flags = SMOOTH_BITMASK hardness = 10 sheet_type = /obj/item/stack/sheet/plasteel sheet_amount = 1 @@ -201,7 +201,7 @@ if(d_state != INTACT) smoothing_flags = NONE else - smoothing_flags = SMOOTH_BLOB + smoothing_flags = SMOOTH_BITMASK QUEUE_SMOOTH_NEIGHBORS(src) QUEUE_SMOOTH(src) @@ -240,7 +240,7 @@ base_icon_state = "plastitanium_wall" explosion_block = 20 sheet_type = /obj/item/stack/sheet/mineral/plastitanium - smoothing_flags = SMOOTH_BLOB | SMOOTH_DIAGONAL_CORNERS + smoothing_flags = SMOOTH_BITMASK | SMOOTH_DIAGONAL_CORNERS smoothing_groups = list(SMOOTH_GROUP_CLOSED_TURFS, SMOOTH_GROUP_WALLS, SMOOTH_GROUP_SYNDICATE_WALLS) canSmoothWith = list(SMOOTH_GROUP_SYNDICATE_WALLS, SMOOTH_GROUP_PLASTITANIUM_WALLS, SMOOTH_GROUP_AIRLOCK, SMOOTH_GROUP_SHUTTLE_PARTS) @@ -251,7 +251,7 @@ icon = 'icons/turf/walls/plastitanium_wall.dmi' icon_state = "map-shuttle_nd" base_icon_state = "plastitanium_wall" - smoothing_flags = SMOOTH_BLOB + smoothing_flags = SMOOTH_BITMASK /turf/closed/wall/r_wall/syndicate/nosmooth icon = 'icons/turf/shuttle.dmi' @@ -260,5 +260,5 @@ /turf/closed/wall/r_wall/syndicate/overspace icon_state = "map-overspace" - smoothing_flags = SMOOTH_BLOB | SMOOTH_DIAGONAL_CORNERS + smoothing_flags = SMOOTH_BITMASK | SMOOTH_DIAGONAL_CORNERS fixed_underlay = list("space" = TRUE) diff --git a/code/game/turfs/closed/walls.dm b/code/game/turfs/closed/walls.dm index 6104fd18248..12af8b80852 100644 --- a/code/game/turfs/closed/walls.dm +++ b/code/game/turfs/closed/walls.dm @@ -15,7 +15,7 @@ flags_ricochet = RICOCHET_HARD - smoothing_flags = SMOOTH_BLOB + smoothing_flags = SMOOTH_BITMASK smoothing_groups = list(SMOOTH_GROUP_CLOSED_TURFS, SMOOTH_GROUP_WALLS) canSmoothWith = list(SMOOTH_GROUP_WALLS) diff --git a/code/game/turfs/open/floor/fancy_floor.dm b/code/game/turfs/open/floor/fancy_floor.dm index ffca8873426..2e58702ddd0 100644 --- a/code/game/turfs/open/floor/fancy_floor.dm +++ b/code/game/turfs/open/floor/fancy_floor.dm @@ -206,11 +206,11 @@ if(!.) return if(!broken && !burnt) - if(smoothing_flags & (SMOOTH_CORNERS|SMOOTH_BLOB)) + if(smoothing_flags & (SMOOTH_CORNERS|SMOOTH_BITMASK)) QUEUE_SMOOTH(src) else make_plating() - if(smoothing_flags & (SMOOTH_CORNERS|SMOOTH_BLOB)) + if(smoothing_flags & (SMOOTH_CORNERS|SMOOTH_BITMASK)) QUEUE_SMOOTH_NEIGHBORS(src) /turf/open/floor/carpet/black diff --git a/code/game/turfs/turf.dm b/code/game/turfs/turf.dm index 239e1a8a32a..d72618d9522 100755 --- a/code/game/turfs/turf.dm +++ b/code/game/turfs/turf.dm @@ -89,7 +89,7 @@ GLOBAL_LIST_EMPTY(station_turfs) if(canSmoothWith[length(canSmoothWith)] > MAX_S_TURF) //If the last element is higher than the maximum turf-only value, then it must scan turf contents for smoothing targets. smoothing_flags |= SMOOTH_OBJ SET_BITFLAG_LIST(canSmoothWith) - if (smoothing_flags & (SMOOTH_CORNERS|SMOOTH_BLOB)) + if (smoothing_flags & (SMOOTH_CORNERS|SMOOTH_BITMASK)) QUEUE_SMOOTH(src) visibilityChanged() diff --git a/code/modules/holodeck/turfs.dm b/code/modules/holodeck/turfs.dm index 7be72084c32..0dbf1d66d8d 100644 --- a/code/modules/holodeck/turfs.dm +++ b/code/modules/holodeck/turfs.dm @@ -120,7 +120,7 @@ /turf/open/floor/holofloor/carpet/update_icon() . = ..() - if(intact && smoothing_flags & (SMOOTH_CORNERS|SMOOTH_BLOB)) + if(intact && smoothing_flags & (SMOOTH_CORNERS|SMOOTH_BITMASK)) QUEUE_SMOOTH(src) /turf/open/floor/holofloor/wood diff --git a/code/modules/mining/equipment/survival_pod.dm b/code/modules/mining/equipment/survival_pod.dm index f1f5399f408..740049b47f6 100644 --- a/code/modules/mining/equipment/survival_pod.dm +++ b/code/modules/mining/equipment/survival_pod.dm @@ -88,7 +88,7 @@ icon = 'icons/obj/smooth_structures/pod_window.dmi' icon_state = "pod_window-0" base_icon_state = "pod_window" - smoothing_flags = SMOOTH_BLOB + smoothing_flags = SMOOTH_BITMASK smoothing_groups = list(SMOOTH_GROUP_SHUTTLE_PARTS, SMOOTH_GROUP_SURVIVAL_TIANIUM_POD) canSmoothWith = list(SMOOTH_GROUP_SURVIVAL_TIANIUM_POD) diff --git a/code/modules/mob/living/simple_animal/hostile/megafauna/hierophant.dm b/code/modules/mob/living/simple_animal/hostile/megafauna/hierophant.dm index 893a11c02c1..d6d819edb2d 100644 --- a/code/modules/mob/living/simple_animal/hostile/megafauna/hierophant.dm +++ b/code/modules/mob/living/simple_animal/hostile/megafauna/hierophant.dm @@ -518,7 +518,7 @@ Difficulty: Hard icon = 'icons/turf/walls/hierophant_wall_temp.dmi' icon_state = "hierophant_wall_temp-0" base_icon_state = "hierophant_wall_temp" - smoothing_flags = SMOOTH_BLOB + smoothing_flags = SMOOTH_BITMASK smoothing_groups = list(SMOOTH_GROUP_HIERO_WALL) canSmoothWith = list(SMOOTH_GROUP_HIERO_WALL) light_range = MINIMUM_USEFUL_LIGHT_RANGE @@ -526,12 +526,12 @@ Difficulty: Hard /obj/effect/temp_visual/hierophant/wall/Initialize(mapload, new_caster) . = ..() - if(smoothing_flags & (SMOOTH_CORNERS|SMOOTH_BLOB)) + if(smoothing_flags & (SMOOTH_CORNERS|SMOOTH_BITMASK)) QUEUE_SMOOTH_NEIGHBORS(src) QUEUE_SMOOTH(src) /obj/effect/temp_visual/hierophant/wall/Destroy() - if(smoothing_flags & (SMOOTH_CORNERS|SMOOTH_BLOB)) + if(smoothing_flags & (SMOOTH_CORNERS|SMOOTH_BITMASK)) QUEUE_SMOOTH_NEIGHBORS(src) return ..() diff --git a/code/modules/mob/living/simple_animal/hostile/mining_mobs/elites/elite.dm b/code/modules/mob/living/simple_animal/hostile/mining_mobs/elites/elite.dm index da4e6ece78a..75eb7a945b8 100644 --- a/code/modules/mob/living/simple_animal/hostile/mining_mobs/elites/elite.dm +++ b/code/modules/mob/living/simple_animal/hostile/mining_mobs/elites/elite.dm @@ -304,7 +304,7 @@ While using this makes the system rely on OnFire, it still gives options for tim icon = 'icons/turf/walls/hierophant_wall_temp.dmi' icon_state = "hierophant_wall_temp-0" base_icon_state = "hierophant_wall_temp" - smoothing_flags = SMOOTH_BLOB + smoothing_flags = SMOOTH_BITMASK smoothing_groups = list(SMOOTH_GROUP_HIERO_WALL) canSmoothWith = list(SMOOTH_GROUP_HIERO_WALL) duration = 50 @@ -317,12 +317,12 @@ While using this makes the system rely on OnFire, it still gives options for tim /obj/effect/temp_visual/elite_tumor_wall/Initialize(mapload, new_caster) . = ..() - if(smoothing_flags & (SMOOTH_CORNERS|SMOOTH_BLOB)) + if(smoothing_flags & (SMOOTH_CORNERS|SMOOTH_BITMASK)) QUEUE_SMOOTH_NEIGHBORS(src) QUEUE_SMOOTH(src) /obj/effect/temp_visual/elite_tumor_wall/Destroy() - if(smoothing_flags & (SMOOTH_CORNERS|SMOOTH_BLOB)) + if(smoothing_flags & (SMOOTH_CORNERS|SMOOTH_BITMASK)) QUEUE_SMOOTH_NEIGHBORS(src) activator = null ourelite = null diff --git a/code/modules/ruins/lavalandruin_code/elephantgraveyard.dm b/code/modules/ruins/lavalandruin_code/elephantgraveyard.dm index 1fb85977a14..74080b3644f 100644 --- a/code/modules/ruins/lavalandruin_code/elephantgraveyard.dm +++ b/code/modules/ruins/lavalandruin_code/elephantgraveyard.dm @@ -53,7 +53,7 @@ baseturfs = /turf/open/floor/plating/asteroid/basalt/wasteland smooth_icon = 'icons/turf/walls/rock_wall.dmi' base_icon_state = "rock_wall" - smoothing_flags = SMOOTH_BLOB | SMOOTH_BORDER + smoothing_flags = SMOOTH_BITMASK | SMOOTH_BORDER /turf/closed/mineral/strong/wasteland/drop_ores() if(prob(10)) diff --git a/code/modules/shuttle/shuttle_rotate.dm b/code/modules/shuttle/shuttle_rotate.dm index 46c2a387049..2f50ba92d68 100644 --- a/code/modules/shuttle/shuttle_rotate.dm +++ b/code/modules/shuttle/shuttle_rotate.dm @@ -12,7 +12,7 @@ If ever any of these procs are useful for non-shuttles, rename it to proc/rotate setDir(angle2dir(rotation+dir2angle(dir))) //resmooth if need be. - if(params & ROTATE_SMOOTH && smoothing_flags & (SMOOTH_CORNERS|SMOOTH_BLOB)) + if(params & ROTATE_SMOOTH && smoothing_flags & (SMOOTH_CORNERS|SMOOTH_BITMASK)) QUEUE_SMOOTH(src) //rotate the pixel offsets too.