mirror of
https://github.com/CHOMPStation2/CHOMPStation2.git
synced 2025-12-11 10:43:20 +00:00
Hardwood Material Port
This commit is contained in:
@@ -18,6 +18,8 @@
|
|||||||
#define MAT_LOG "log"
|
#define MAT_LOG "log"
|
||||||
#define MAT_SIFWOOD "alien wood"
|
#define MAT_SIFWOOD "alien wood"
|
||||||
#define MAT_SIFLOG "alien log"
|
#define MAT_SIFLOG "alien log"
|
||||||
|
#define MAT_HARDWOOD "hardwood"
|
||||||
|
#define MAT_HARDLOG "hardwood log"
|
||||||
#define MAT_STEELHULL "steel hull"
|
#define MAT_STEELHULL "steel hull"
|
||||||
#define MAT_PLASTEEL "plasteel"
|
#define MAT_PLASTEEL "plasteel"
|
||||||
#define MAT_PLASTEELHULL "plasteel hull"
|
#define MAT_PLASTEELHULL "plasteel hull"
|
||||||
|
|||||||
@@ -28,6 +28,13 @@
|
|||||||
containertype = /obj/structure/closet/crate/grayson
|
containertype = /obj/structure/closet/crate/grayson
|
||||||
containername = "Wooden planks crate"
|
containername = "Wooden planks crate"
|
||||||
|
|
||||||
|
/datum/supply_pack/materials/hardwood50
|
||||||
|
name = "50 hardwood planks"
|
||||||
|
contains = list(/obj/fiftyspawner/hardwood)
|
||||||
|
cost = 50
|
||||||
|
containertype = /obj/structure/closet/crate/gilthari
|
||||||
|
containername = "Hardwood planks crate"
|
||||||
|
|
||||||
/datum/supply_pack/materials/plastic50
|
/datum/supply_pack/materials/plastic50
|
||||||
name = "50 plastic sheets"
|
name = "50 plastic sheets"
|
||||||
contains = list(/obj/fiftyspawner/plastic)
|
contains = list(/obj/fiftyspawner/plastic)
|
||||||
|
|||||||
@@ -158,7 +158,7 @@
|
|||||||
visible_message("<span class='danger'>[user] hits [src] with [W]!</span>")
|
visible_message("<span class='danger'>[user] hits [src] with [W]!</span>")
|
||||||
if(material == get_material_by_name("resin"))
|
if(material == get_material_by_name("resin"))
|
||||||
playsound(src, 'sound/effects/attackblob.ogg', 100, 1)
|
playsound(src, 'sound/effects/attackblob.ogg', 100, 1)
|
||||||
else if(material == (get_material_by_name(MAT_WOOD) || get_material_by_name(MAT_SIFWOOD)))
|
else if(material == (get_material_by_name(MAT_WOOD) || get_material_by_name(MAT_SIFWOOD) || get_material_by_name(MAT_HARDWOOD)))
|
||||||
playsound(src, 'sound/effects/woodcutting.ogg', 100, 1)
|
playsound(src, 'sound/effects/woodcutting.ogg', 100, 1)
|
||||||
else
|
else
|
||||||
playsound(src, 'sound/weapons/smash.ogg', 50, 1)
|
playsound(src, 'sound/weapons/smash.ogg', 50, 1)
|
||||||
@@ -183,7 +183,7 @@
|
|||||||
visible_message("<span class='danger'>[user] [attack_verb] the [src]!</span>")
|
visible_message("<span class='danger'>[user] [attack_verb] the [src]!</span>")
|
||||||
if(material == get_material_by_name("resin"))
|
if(material == get_material_by_name("resin"))
|
||||||
playsound(src, 'sound/effects/attackblob.ogg', 100, 1)
|
playsound(src, 'sound/effects/attackblob.ogg', 100, 1)
|
||||||
else if(material == (get_material_by_name(MAT_WOOD) || get_material_by_name(MAT_SIFWOOD)))
|
else if(material == (get_material_by_name(MAT_WOOD) || get_material_by_name(MAT_SIFWOOD) || get_material_by_name(MAT_HARDWOOD)))
|
||||||
playsound(src, 'sound/effects/woodcutting.ogg', 100, 1)
|
playsound(src, 'sound/effects/woodcutting.ogg', 100, 1)
|
||||||
else
|
else
|
||||||
playsound(src, 'sound/weapons/smash.ogg', 50, 1)
|
playsound(src, 'sound/weapons/smash.ogg', 50, 1)
|
||||||
@@ -245,6 +245,9 @@
|
|||||||
..(mapload, material_name || MAT_WOOD)
|
..(mapload, material_name || MAT_WOOD)
|
||||||
knock_sound = 'sound/machines/door/knock_wood.wav'
|
knock_sound = 'sound/machines/door/knock_wood.wav'
|
||||||
|
|
||||||
|
/obj/structure/simple_door/hardwood/Initialize(mapload,var/material_name)
|
||||||
|
..(mapload, material_name || MAT_HARDWOOD)
|
||||||
|
|
||||||
/obj/structure/simple_door/sifwood/Initialize(mapload,var/material_name)
|
/obj/structure/simple_door/sifwood/Initialize(mapload,var/material_name)
|
||||||
..(mapload, material_name || MAT_SIFWOOD)
|
..(mapload, material_name || MAT_SIFWOOD)
|
||||||
|
|
||||||
|
|||||||
@@ -95,6 +95,9 @@
|
|||||||
/turf/simulated/wall/wood/Initialize(mapload)
|
/turf/simulated/wall/wood/Initialize(mapload)
|
||||||
. = ..(mapload, MAT_WOOD)
|
. = ..(mapload, MAT_WOOD)
|
||||||
|
|
||||||
|
/turf/simulated/wall/hardwood/Initialize(mapload)
|
||||||
|
. = ..(mapload, MAT_HARDWOOD)
|
||||||
|
|
||||||
/turf/simulated/wall/sifwood/Initialize(mapload)
|
/turf/simulated/wall/sifwood/Initialize(mapload)
|
||||||
. = ..(mapload, MAT_SIFWOOD)
|
. = ..(mapload, MAT_SIFWOOD)
|
||||||
|
|
||||||
|
|||||||
@@ -92,6 +92,10 @@
|
|||||||
name = "stack of alien wood"
|
name = "stack of alien wood"
|
||||||
type_to_spawn = /obj/item/stack/material/wood/sif
|
type_to_spawn = /obj/item/stack/material/wood/sif
|
||||||
|
|
||||||
|
/obj/fiftyspawner/hardwood
|
||||||
|
name = "stack of hardwood"
|
||||||
|
type_to_spawn = /obj/item/stack/material/wood/hard
|
||||||
|
|
||||||
/obj/fiftyspawner/log
|
/obj/fiftyspawner/log
|
||||||
name = "stack of logs"
|
name = "stack of logs"
|
||||||
type_to_spawn = /obj/item/stack/material/log
|
type_to_spawn = /obj/item/stack/material/log
|
||||||
@@ -100,6 +104,10 @@
|
|||||||
name = "stack of alien logs"
|
name = "stack of alien logs"
|
||||||
type_to_spawn = /obj/item/stack/material/log/sif
|
type_to_spawn = /obj/item/stack/material/log/sif
|
||||||
|
|
||||||
|
/obj/fiftyspawner/log/hard
|
||||||
|
name = "stack of hardwood logs"
|
||||||
|
type_to_spawn = /obj/item/stack/material/log/hard
|
||||||
|
|
||||||
/obj/fiftyspawner/cloth
|
/obj/fiftyspawner/cloth
|
||||||
name = "stack of cloth"
|
name = "stack of cloth"
|
||||||
type_to_spawn = /obj/item/stack/material/cloth
|
type_to_spawn = /obj/item/stack/material/cloth
|
||||||
|
|||||||
@@ -65,6 +65,29 @@
|
|||||||
recipes -= r_recipe
|
recipes -= r_recipe
|
||||||
continue
|
continue
|
||||||
|
|
||||||
|
/datum/material/wood/hardwood
|
||||||
|
name = MAT_HARDWOOD
|
||||||
|
stack_type = /obj/item/stack/material/wood/hard
|
||||||
|
icon_colour = "#42291a"
|
||||||
|
icon_base = "stone"
|
||||||
|
icon_reinf = "reinf_stone"
|
||||||
|
integrity = 65 //a bit stronger than regular wood
|
||||||
|
hardness = 20
|
||||||
|
weight = 20 //likewise, heavier
|
||||||
|
|
||||||
|
/datum/material/wood/hardwood/generate_recipes()
|
||||||
|
..()
|
||||||
|
for(var/datum/stack_recipe/r_recipe in recipes)
|
||||||
|
if(r_recipe.title == "wood floor tile")
|
||||||
|
recipes -= r_recipe
|
||||||
|
continue
|
||||||
|
if(r_recipe.title == "wooden chair")
|
||||||
|
recipes -= r_recipe
|
||||||
|
continue
|
||||||
|
if(r_recipe.title == "wooden standup figure")
|
||||||
|
recipes -= r_recipe
|
||||||
|
continue
|
||||||
|
|
||||||
/datum/material/wood/log
|
/datum/material/wood/log
|
||||||
name = MAT_LOG
|
name = MAT_LOG
|
||||||
display_name = "wood" // will lead to "wood log"
|
display_name = "wood" // will lead to "wood log"
|
||||||
@@ -87,7 +110,18 @@
|
|||||||
icon_colour = "#0099cc" // Cyan-ish
|
icon_colour = "#0099cc" // Cyan-ish
|
||||||
stack_origin_tech = list(TECH_MATERIAL = 2, TECH_BIO = 2)
|
stack_origin_tech = list(TECH_MATERIAL = 2, TECH_BIO = 2)
|
||||||
stack_type = /obj/item/stack/material/log/sif
|
stack_type = /obj/item/stack/material/log/sif
|
||||||
|
<<<<<<< HEAD
|
||||||
|
|
||||||
|
||||||| parent of b4ce0442cd... Merge pull request #11722 from KillianKirilenko/kk-misc
|
||||||
|
|
||||||
|
=======
|
||||||
|
|
||||||
|
/datum/material/wood/log/hard
|
||||||
|
name = MAT_HARDLOG
|
||||||
|
icon_colour = "#6f432a"
|
||||||
|
stack_type = /obj/item/stack/material/log/hard
|
||||||
|
|
||||||
|
>>>>>>> b4ce0442cd... Merge pull request #11722 from KillianKirilenko/kk-misc
|
||||||
//VOREStation Addition Start
|
//VOREStation Addition Start
|
||||||
/datum/material/wood/stick
|
/datum/material/wood/stick
|
||||||
name = "wooden stick"
|
name = "wooden stick"
|
||||||
|
|||||||
@@ -13,6 +13,12 @@
|
|||||||
color = "#0099cc"
|
color = "#0099cc"
|
||||||
default_type = MAT_SIFWOOD
|
default_type = MAT_SIFWOOD
|
||||||
|
|
||||||
|
/obj/item/stack/material/wood/hard
|
||||||
|
name = "hardwood plank"
|
||||||
|
color = "#42291a"
|
||||||
|
default_type = MAT_HARDWOOD
|
||||||
|
description_info = "Rich, lustrous hardwood, imported from offworld at moderate expense. Mostly used for luxurious furniture, and not very good for weapons or other structures."
|
||||||
|
|
||||||
/obj/item/stack/material/log
|
/obj/item/stack/material/log
|
||||||
name = "log"
|
name = "log"
|
||||||
icon_state = "sheet-log"
|
icon_state = "sheet-log"
|
||||||
@@ -32,6 +38,12 @@
|
|||||||
color = "#0099cc"
|
color = "#0099cc"
|
||||||
plank_type = /obj/item/stack/material/wood/sif
|
plank_type = /obj/item/stack/material/wood/sif
|
||||||
|
|
||||||
|
/obj/item/stack/material/log/hard
|
||||||
|
name = "hardwood log"
|
||||||
|
default_type = MAT_HARDLOG
|
||||||
|
color = "#6f432a"
|
||||||
|
plank_type = /obj/item/stack/material/wood/hard
|
||||||
|
|
||||||
/obj/item/stack/material/log/attackby(var/obj/item/W, var/mob/user)
|
/obj/item/stack/material/log/attackby(var/obj/item/W, var/mob/user)
|
||||||
if(!istype(W) || W.force <= 0)
|
if(!istype(W) || W.force <= 0)
|
||||||
return ..()
|
return ..()
|
||||||
|
|||||||
@@ -75,6 +75,14 @@
|
|||||||
reinforced = get_material_by_name(MAT_STEEL)
|
reinforced = get_material_by_name(MAT_STEEL)
|
||||||
..()
|
..()
|
||||||
|
|
||||||
|
/obj/structure/table/hardwoodtable
|
||||||
|
icon_state = "stone_preview"
|
||||||
|
color = "#42291a"
|
||||||
|
|
||||||
|
/obj/structure/table/hardwoodtable/Initialize(mapload)
|
||||||
|
material = get_material_by_name("hardwood")
|
||||||
|
return ..()
|
||||||
|
|
||||||
/obj/structure/table/gamblingtable
|
/obj/structure/table/gamblingtable
|
||||||
icon_state = "gamble_preview"
|
icon_state = "gamble_preview"
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user