mirror of
https://github.com/PolarisSS13/Polaris.git
synced 2026-01-06 07:22:42 +00:00
Stool and table tweaks, adjusted tables on the map.
This commit is contained in:
@@ -14,7 +14,6 @@ var/global/list/stool_cache = list() //haha stool
|
||||
var/material/padding_material
|
||||
|
||||
/obj/item/weapon/stool/padded
|
||||
name = "padded stool"
|
||||
icon_state = "stool_padded_preview" //set for the map
|
||||
|
||||
/obj/item/weapon/stool/New(var/newloc, var/new_material, var/new_padding_material)
|
||||
@@ -56,10 +55,10 @@ var/global/list/stool_cache = list() //haha stool
|
||||
// Strings.
|
||||
if(padding_material)
|
||||
name = "[padding_material.display_name] [initial(name)]" //this is not perfect but it will do for now.
|
||||
desc = "A stool. Apply butt. It's made of [material.display_name] and covered with [padding_material.display_name]."
|
||||
desc = "A padded stool. Apply butt. It's made of [material.display_name] and covered with [padding_material.display_name]."
|
||||
else
|
||||
name = "[material.display_name] [initial(name)]"
|
||||
desc = "A stool. Apply butt. It's made of [material.display_name]."
|
||||
desc = "A stool. Apply butt with care. It's made of [material.display_name]."
|
||||
|
||||
/obj/item/weapon/stool/proc/add_padding(var/padding_type)
|
||||
padding_material = get_material_by_name(padding_type)
|
||||
@@ -73,11 +72,9 @@ var/global/list/stool_cache = list() //haha stool
|
||||
|
||||
/obj/item/weapon/stool/attack(mob/M as mob, mob/user as mob)
|
||||
if (prob(5) && istype(M,/mob/living))
|
||||
user.visible_message("\red [user] breaks [src] over [M]'s back!")
|
||||
user.visible_message("<span class='danger'>[user] breaks [src] over [M]'s back!</span>")
|
||||
user.remove_from_mob(src)
|
||||
material.place_sheet(get_turf(src))
|
||||
if(padding_material)
|
||||
padding_material.place_sheet(get_turf(src))
|
||||
dismantle()
|
||||
qdel(src)
|
||||
var/mob/living/T = M
|
||||
T.Weaken(10)
|
||||
@@ -140,13 +137,12 @@ var/global/list/stool_cache = list() //haha stool
|
||||
user.drop_from_inventory(src)
|
||||
src.loc = get_turf(src)
|
||||
user << "You add padding to \the [src]."
|
||||
add_padding()
|
||||
add_padding(padding_type)
|
||||
return
|
||||
else if (istype(W, /obj/item/weapon/wirecutters))
|
||||
if(!padding_material)
|
||||
user << "\The [src] has no padding to remove."
|
||||
return
|
||||
new /obj/item/stack/tile/carpet(get_turf(src),1)
|
||||
user << "You remove the padding from \the [src]."
|
||||
playsound(src, 'sound/items/Wirecutter.ogg', 100, 1)
|
||||
remove_padding()
|
||||
|
||||
@@ -159,7 +159,7 @@ var/list/name_to_material
|
||||
stack_origin_tech = "phorontech=2;materials=2"
|
||||
door_icon_base = "stone"
|
||||
|
||||
/material/sandstone
|
||||
/material/stone
|
||||
name = "sandstone"
|
||||
stack_type = /obj/item/stack/material/sandstone
|
||||
icon_base = "stone"
|
||||
@@ -170,6 +170,13 @@ var/list/name_to_material
|
||||
hardness = 55
|
||||
door_icon_base = "stone"
|
||||
|
||||
/material/stone/marble
|
||||
name = "marble"
|
||||
icon_colour = "#AAAAAA"
|
||||
weight = 26
|
||||
hardness = 100
|
||||
integrity = 201 //hack to stop kitchen benches being flippable, todo: refactor into weight system
|
||||
|
||||
/material/steel
|
||||
name = DEFAULT_WALL_MATERIAL
|
||||
stack_type = /obj/item/stack/material/steel
|
||||
|
||||
@@ -7,6 +7,20 @@
|
||||
material = get_material_by_name(DEFAULT_WALL_MATERIAL)
|
||||
..()
|
||||
|
||||
plastic
|
||||
icon_state = "plain_preview"
|
||||
color = "#EEEEEE"
|
||||
New()
|
||||
material = get_material_by_name("plastic")
|
||||
..()
|
||||
|
||||
marble
|
||||
icon_state = "stone_preview"
|
||||
color = "#CCCCCC"
|
||||
New()
|
||||
material = get_material_by_name("marble")
|
||||
..()
|
||||
|
||||
reinforced
|
||||
icon_state = "reinf_preview"
|
||||
color = "#666666"
|
||||
|
||||
Reference in New Issue
Block a user