mirror of
https://github.com/Aurorastation/Aurora.3.git
synced 2025-12-27 10:32:08 +00:00
Various small tweaks for the flooring update.
This commit is contained in:
@@ -4,6 +4,7 @@
|
||||
icon = 'icons/mecha/mech_bay.dmi'
|
||||
icon_state = "recharge_floor"
|
||||
density = 0
|
||||
layer = TURF_LAYER + 0.1
|
||||
|
||||
var/obj/mecha/charging = null
|
||||
var/charge = 45
|
||||
|
||||
@@ -1,6 +1,6 @@
|
||||
var/list/flooring_types
|
||||
|
||||
/proc/get_flooring_by_name(var/flooring_path)
|
||||
/proc/get_flooring_data(var/flooring_path)
|
||||
if(!flooring_types)
|
||||
flooring_types = list()
|
||||
if(!flooring_types["[flooring_path]"])
|
||||
@@ -92,7 +92,7 @@ var/list/flooring_types
|
||||
has_damage_range = null
|
||||
flags = TURF_REMOVE_CROWBAR
|
||||
build_type = /obj/item/stack/tile/floor_red
|
||||
|
||||
|
||||
/decl/flooring/tiling/steel
|
||||
name = "steel floor"
|
||||
icon_base = "steel"
|
||||
@@ -155,14 +155,13 @@ var/list/flooring_types
|
||||
apply_heat_capacity = 325000
|
||||
|
||||
/decl/flooring/reinforced/circuit
|
||||
name = "blue processing strata"
|
||||
name = "processing strata"
|
||||
icon = 'icons/turf/flooring/circuit.dmi'
|
||||
icon_base = "bcircuit"
|
||||
build_type = null
|
||||
flags = TURF_ACID_IMMUNE | TURF_CAN_BREAK
|
||||
|
||||
/decl/flooring/reinforced/circuit/green
|
||||
name = "green processing strata"
|
||||
icon_base = "gcircuit"
|
||||
|
||||
/decl/flooring/reinforced/cult
|
||||
|
||||
@@ -38,10 +38,10 @@
|
||||
if(!flooring && icon_state != "plating")
|
||||
name = "OLDCODE FLOORING WOOP WOOP"
|
||||
|
||||
/turf/simulated/floor/proc/set_flooring(var/flooring_id)
|
||||
/turf/simulated/floor/proc/set_flooring(var/flooring_type)
|
||||
make_plating(defer_icon_update = 1)
|
||||
if(flooring_id)
|
||||
flooring = get_flooring_by_name(flooring_id)
|
||||
if(flooring_type)
|
||||
flooring = get_flooring_data(flooring_type)
|
||||
intact = 1
|
||||
update_icon(1)
|
||||
levelupdate()
|
||||
|
||||
@@ -72,7 +72,7 @@
|
||||
if(flooring || !S || !user || !use_flooring)
|
||||
return
|
||||
if(S.use(use_flooring.build_cost))
|
||||
set_flooring(use_flooring.name)
|
||||
set_flooring(use_flooring.type)
|
||||
playsound(src, 'sound/items/Deconstruct.ogg', 80, 1)
|
||||
return
|
||||
// Repairs.
|
||||
|
||||
Reference in New Issue
Block a user