mirror of
https://github.com/CHOMPStation2/CHOMPStation2.git
synced 2025-12-11 10:43:20 +00:00
2020 Civilian Wing Overhaul
This commit is contained in:
@@ -13,6 +13,7 @@
|
||||
var/id = null
|
||||
var/on_icon = "sign_on"
|
||||
var/off_icon = "sign_off"
|
||||
var/signlight = "#E9E4AF"
|
||||
|
||||
/obj/machinery/holosign/proc/toggle()
|
||||
if(stat & (BROKEN|NOPOWER))
|
||||
@@ -24,13 +25,17 @@
|
||||
/obj/machinery/holosign/update_icon()
|
||||
if(!lit)
|
||||
icon_state = off_icon
|
||||
set_light(0)
|
||||
else
|
||||
icon_state = on_icon
|
||||
set_light(2, 0.25, signlight)
|
||||
|
||||
/obj/machinery/holosign/power_change()
|
||||
..()
|
||||
if(stat & NOPOWER)
|
||||
lit = 0
|
||||
use_power = 0
|
||||
|
||||
update_icon()
|
||||
|
||||
/obj/machinery/holosign/surgery
|
||||
@@ -49,7 +54,7 @@
|
||||
icon_state = "barclosed"
|
||||
on_icon = "baropen"
|
||||
off_icon = "barclosed"
|
||||
|
||||
signlight = "#b1edf9"
|
||||
|
||||
////////////////////SWITCH///////////////////////////////////////
|
||||
|
||||
|
||||
73
code/game/machinery/neonsign.dm
Normal file
73
code/game/machinery/neonsign.dm
Normal file
@@ -0,0 +1,73 @@
|
||||
////////////////////NOTHOLOSIGN///////////////////////////////////////
|
||||
/obj/machinery/neonsign
|
||||
name = "neon sign"
|
||||
desc = "Small wall-mounted electronic sign"
|
||||
icon = 'icons/obj/neonsigns.dmi'
|
||||
icon_state = "sign_off"
|
||||
plane = MOB_PLANE
|
||||
use_power = 1
|
||||
idle_power_usage = 2
|
||||
active_power_usage = 4
|
||||
anchored = 1
|
||||
var/lit = 0
|
||||
var/id = null
|
||||
var/on_icon = "sign_on"
|
||||
var/off_icon = "sign_off"
|
||||
var/signlight = "#E9E4AF"
|
||||
|
||||
/obj/machinery/neonsign/proc/toggle()
|
||||
if(stat & (BROKEN|NOPOWER))
|
||||
return
|
||||
lit = !lit
|
||||
use_power = lit ? 2 : 1
|
||||
update_icon()
|
||||
|
||||
/obj/machinery/neonsign/update_icon()
|
||||
if(!lit)
|
||||
icon_state = off_icon
|
||||
set_light(0)
|
||||
else
|
||||
icon_state = on_icon
|
||||
set_light(2, 0.25, signlight)
|
||||
|
||||
/obj/machinery/neonsign/power_change()
|
||||
..()
|
||||
if(stat & NOPOWER)
|
||||
lit = 0
|
||||
use_power = 0
|
||||
|
||||
update_icon()
|
||||
|
||||
/obj/machinery/neonsign/cafe
|
||||
name = "cafe neon sign"
|
||||
desc = "Small wall-mounted electronic sign. This one reads CAFE."
|
||||
icon_state = "cafesign_off"
|
||||
on_icon = "cafesign_on"
|
||||
off_icon = "cafesign_off"
|
||||
signlight = "#DFA571"
|
||||
|
||||
////////////////////SWITCH///////////////////////////////////////
|
||||
|
||||
/obj/machinery/button/neonsign
|
||||
name = "sign switch"
|
||||
desc = "A remote control switch for neon sign."
|
||||
icon = 'icons/obj/power.dmi'
|
||||
icon_state = "crema_switch"
|
||||
|
||||
/obj/machinery/button/neonsign/attack_hand(mob/user as mob)
|
||||
if(..())
|
||||
return
|
||||
add_fingerprint(user)
|
||||
|
||||
use_power(5)
|
||||
|
||||
active = !active
|
||||
icon_state = "light[active]"
|
||||
|
||||
for(var/obj/machinery/neonsign/M in machines)
|
||||
if(M.id == id)
|
||||
spawn(0)
|
||||
M.toggle()
|
||||
return
|
||||
|
||||
return
|
||||
@@ -46,8 +46,12 @@
|
||||
// Base icon.
|
||||
var/cache_key = "[base_icon]-[material.name]"
|
||||
if(isnull(stool_cache[cache_key]))
|
||||
<<<<<<< HEAD
|
||||
var/image/I = image(icon, base_icon) //VOREStation Edit
|
||||
//var/image/I = image('icons/obj/furniture.dmi', base_icon) //From Polaris Sync. Not sure if this is a better way of doing it or not. Uncomment if so.
|
||||
=======
|
||||
var/image/I = image(icon, base_icon)
|
||||
>>>>>>> 792245a... Merge pull request #6665 from Woodratt/02022020_civilianmaptweak
|
||||
if(applies_material_colour) //VOREStation Add - Goes with added var
|
||||
I.color = material.icon_colour
|
||||
stool_cache[cache_key] = I
|
||||
|
||||
@@ -43,16 +43,18 @@
|
||||
|
||||
/obj/structure/bed/chair/update_icon()
|
||||
..()
|
||||
if(has_buckled_mobs() && padding_material)
|
||||
var/cache_key = "[base_icon]-armrest-[padding_material.name]"
|
||||
if(has_buckled_mobs())
|
||||
var/cache_key = "[base_icon]-armrest-[padding_material ? padding_material.name : "no_material"]"
|
||||
if(isnull(stool_cache[cache_key]))
|
||||
var/image/I = image(icon, "[base_icon]_armrest")
|
||||
I.layer = MOB_LAYER + 0.1
|
||||
I.plane = MOB_PLANE
|
||||
I.color = padding_material.icon_colour
|
||||
stool_cache[cache_key] = I
|
||||
if(padding_material)
|
||||
I.color = padding_material.icon_colour
|
||||
stool_cache[cache_key] = I
|
||||
overlays |= stool_cache[cache_key]
|
||||
|
||||
|
||||
/obj/structure/bed/chair/proc/update_layer()
|
||||
if(src.dir == NORTH)
|
||||
plane = MOB_PLANE
|
||||
@@ -85,15 +87,16 @@
|
||||
/obj/structure/bed/chair/shuttle
|
||||
name = "chair"
|
||||
desc = "You sit in this. Either by will or force."
|
||||
icon_state = "shuttle_chair"
|
||||
icon_state = "shuttlechair"
|
||||
color = null
|
||||
base_icon = "shuttle_chair"
|
||||
base_icon = "shuttlechair"
|
||||
applies_material_colour = 0
|
||||
|
||||
// Leaving this in for the sake of compilation.
|
||||
/obj/structure/bed/chair/comfy
|
||||
desc = "It's a chair. It looks comfy."
|
||||
icon_state = "comfychair_preview"
|
||||
icon_state = "comfychair"
|
||||
base_icon = "comfychair"
|
||||
|
||||
/obj/structure/bed/chair/comfy/brown/New(var/newloc,var/newmaterial)
|
||||
..(newloc,"steel","leather")
|
||||
@@ -203,3 +206,160 @@
|
||||
|
||||
/obj/structure/bed/chair/wood/wings
|
||||
icon_state = "wooden_chair_wings"
|
||||
|
||||
//sofa
|
||||
|
||||
/obj/structure/bed/chair/sofa
|
||||
name = "sofa"
|
||||
desc = "It's a sofa. You sit on it. Possibly with someone else."
|
||||
icon = 'icons/obj/sofas.dmi'
|
||||
base_icon = "sofamiddle"
|
||||
icon_state = "sofamiddle"
|
||||
applies_material_colour = 1
|
||||
var/sofa_material = "carpet"
|
||||
|
||||
/obj/structure/bed/chair/sofa/update_icon()
|
||||
if(applies_material_colour && sofa_material)
|
||||
material = get_material_by_name(sofa_material)
|
||||
color = material.icon_colour
|
||||
|
||||
if(sofa_material == "carpet")
|
||||
name = "red [initial(name)]"
|
||||
else
|
||||
name = "[sofa_material] [initial(name)]"
|
||||
|
||||
/obj/structure/bed/chair/sofa/left
|
||||
icon_state = "sofaend_left"
|
||||
base_icon = "sofaend_left"
|
||||
|
||||
/obj/structure/bed/chair/sofa/right
|
||||
icon_state = "sofaend_right"
|
||||
base_icon = "sofaend_right"
|
||||
|
||||
/obj/structure/bed/chair/sofa/corner
|
||||
icon_state = "sofacorner"
|
||||
base_icon = "sofacorner"
|
||||
|
||||
//color variations
|
||||
|
||||
/obj/structure/bed/chair/sofa
|
||||
sofa_material = "carpet"
|
||||
|
||||
/obj/structure/bed/chair/sofa/brown
|
||||
sofa_material = "leather"
|
||||
|
||||
/obj/structure/bed/chair/sofa/teal
|
||||
sofa_material = "teal"
|
||||
|
||||
/obj/structure/bed/chair/sofa/black
|
||||
sofa_material = "black"
|
||||
|
||||
/obj/structure/bed/chair/sofa/green
|
||||
sofa_material = "green"
|
||||
|
||||
/obj/structure/bed/chair/sofa/purp
|
||||
sofa_material = "purple"
|
||||
|
||||
/obj/structure/bed/chair/sofa/blue
|
||||
sofa_material = "blue"
|
||||
|
||||
/obj/structure/bed/chair/sofa/beige
|
||||
sofa_material = "beige"
|
||||
|
||||
/obj/structure/bed/chair/sofa/lime
|
||||
sofa_material = "lime"
|
||||
|
||||
/obj/structure/bed/chair/sofa/yellow
|
||||
sofa_material = "yellow"
|
||||
|
||||
//sofa directions
|
||||
|
||||
/obj/structure/bed/chair/sofa/left
|
||||
icon_state = "sofaend_left"
|
||||
|
||||
/obj/structure/bed/chair/sofa/right
|
||||
icon_state = "sofaend_right"
|
||||
|
||||
/obj/structure/bed/chair/sofa/corner
|
||||
icon_state = "sofacorner"
|
||||
|
||||
/obj/structure/bed/chair/sofa/brown/left
|
||||
icon_state = "sofaend_left"
|
||||
|
||||
/obj/structure/bed/chair/sofa/brown/right
|
||||
icon_state = "sofaend_right"
|
||||
|
||||
/obj/structure/bed/chair/sofa/brown/corner
|
||||
icon_state = "sofacorner"
|
||||
|
||||
/obj/structure/bed/chair/sofa/teal/left
|
||||
icon_state = "sofaend_left"
|
||||
|
||||
/obj/structure/bed/chair/sofa/teal/right
|
||||
icon_state = "sofaend_right"
|
||||
|
||||
/obj/structure/bed/chair/sofa/teal/corner
|
||||
icon_state = "sofacorner"
|
||||
|
||||
/obj/structure/bed/chair/sofa/black/left
|
||||
icon_state = "sofaend_left"
|
||||
|
||||
/obj/structure/bed/chair/sofa/black/right
|
||||
icon_state = "sofaend_right"
|
||||
|
||||
/obj/structure/bed/chair/sofa/black/corner
|
||||
icon_state = "sofacorner"
|
||||
|
||||
/obj/structure/bed/chair/sofa/green/left
|
||||
icon_state = "sofaend_left"
|
||||
|
||||
/obj/structure/bed/chair/sofa/green/right
|
||||
icon_state = "sofaend_right"
|
||||
|
||||
/obj/structure/bed/chair/sofa/green/corner
|
||||
icon_state = "sofacorner"
|
||||
|
||||
/obj/structure/bed/chair/sofa/purp/left
|
||||
icon_state = "sofaend_left"
|
||||
|
||||
/obj/structure/bed/chair/sofa/purp/right
|
||||
icon_state = "sofaend_right"
|
||||
|
||||
/obj/structure/bed/chair/sofa/purp/corner
|
||||
icon_state = "sofacorner"
|
||||
|
||||
/obj/structure/bed/chair/sofa/blue/left
|
||||
icon_state = "sofaend_left"
|
||||
|
||||
/obj/structure/bed/chair/sofa/blue/right
|
||||
icon_state = "sofaend_right"
|
||||
|
||||
/obj/structure/bed/chair/sofa/blue/corner
|
||||
icon_state = "sofacorner"
|
||||
|
||||
/obj/structure/bed/chair/sofa/beige/left
|
||||
icon_state = "sofaend_left"
|
||||
|
||||
/obj/structure/bed/chair/sofa/beige/right
|
||||
icon_state = "sofaend_right"
|
||||
|
||||
/obj/structure/bed/chair/sofa/beige/corner
|
||||
icon_state = "sofacorner"
|
||||
|
||||
/obj/structure/bed/chair/sofa/lime/left
|
||||
icon_state = "sofaend_left"
|
||||
|
||||
/obj/structure/bed/chair/sofa/lime/right
|
||||
icon_state = "sofaend_right"
|
||||
|
||||
/obj/structure/bed/chair/sofa/lime/corner
|
||||
icon_state = "sofacorner"
|
||||
|
||||
/obj/structure/bed/chair/sofa/yellow/left
|
||||
icon_state = "sofaend_left"
|
||||
|
||||
/obj/structure/bed/chair/sofa/yellow/right
|
||||
icon_state = "sofaend_right"
|
||||
|
||||
/obj/structure/bed/chair/sofa/yellow/corner
|
||||
icon_state = "sofacorner"
|
||||
|
||||
Reference in New Issue
Block a user