mirror of
https://github.com/VOREStation/VOREStation.git
synced 2026-07-21 03:56:47 +01:00
Add plant fiber material/stacks
This commit is contained in:
@@ -34,6 +34,7 @@
|
||||
#define MAT_CHITIN "chitin"
|
||||
#define MAT_CLOTH "cloth"
|
||||
#define MAT_SYNCLOTH "syncloth"
|
||||
#define MAT_FIBERS "fibers"
|
||||
#define MAT_COPPER "copper"
|
||||
#define MAT_QUARTZ "quartz"
|
||||
#define MAT_TIN "tin"
|
||||
|
||||
@@ -15,6 +15,7 @@
|
||||
|
||||
var/harvest_tool = null // The type of item used to harvest the plant.
|
||||
var/harvest_count = 0
|
||||
var/destroy_on_harvest = FALSE
|
||||
|
||||
var/randomize_harvest_count = TRUE
|
||||
var/max_harvests = 0
|
||||
@@ -53,6 +54,8 @@
|
||||
|
||||
else
|
||||
to_chat(user, "<span class='notice'>You harvest \the [AM] from \the [src].</span>")
|
||||
if(harvest_count >= max_harvests && destroy_on_harvest)
|
||||
qdel(src)
|
||||
return
|
||||
|
||||
..(W, user)
|
||||
@@ -66,11 +69,12 @@
|
||||
/obj/structure/flora/proc/spawn_harvest(var/path = null, var/mob/user = null)
|
||||
if(!ispath(path))
|
||||
return 0
|
||||
var/turf/Target = get_turf(src)
|
||||
|
||||
var/atom/movable/AM = new path()
|
||||
if(user)
|
||||
Target = get_turf(user)
|
||||
|
||||
var/atom/movable/AM = new path(Target)
|
||||
user.put_in_hands(AM)
|
||||
else
|
||||
AM.forceMove(drop_location())
|
||||
|
||||
harvest_count++
|
||||
return AM
|
||||
@@ -80,6 +84,12 @@
|
||||
name = "bush"
|
||||
icon = 'icons/obj/flora/snowflora.dmi'
|
||||
icon_state = "snowbush1"
|
||||
|
||||
destroy_on_harvest = TRUE
|
||||
harvest_tool = /obj/item/weapon/material/knife
|
||||
randomize_harvest_count = FALSE
|
||||
harvest_loot = list(/obj/item/stack/material/fiber = 1)
|
||||
max_harvests = 1
|
||||
|
||||
/obj/structure/flora/bush/New()
|
||||
..()
|
||||
@@ -99,6 +109,12 @@
|
||||
name = "bush"
|
||||
icon = 'icons/obj/flora/ausflora.dmi'
|
||||
icon_state = "firstbush_1"
|
||||
|
||||
destroy_on_harvest = TRUE
|
||||
harvest_tool = /obj/item/weapon/material/knife
|
||||
randomize_harvest_count = FALSE
|
||||
harvest_loot = list(/obj/item/stack/material/fiber = 1)
|
||||
max_harvests = 1
|
||||
|
||||
/obj/structure/flora/ausbushes/New()
|
||||
..()
|
||||
|
||||
@@ -104,6 +104,10 @@
|
||||
name = "stack of cloth"
|
||||
type_to_spawn = /obj/item/stack/material/cloth
|
||||
|
||||
/obj/fiftyspawner/fiber
|
||||
name = "stack of plant fibers"
|
||||
type_to_spawn = /obj/item/stack/material/fiber
|
||||
|
||||
/obj/fiftyspawner/cardboard
|
||||
name = "stack of cardboard"
|
||||
type_to_spawn = /obj/item/stack/material/cardboard
|
||||
|
||||
@@ -123,4 +123,17 @@
|
||||
ignition_point = T0C+232
|
||||
melting_point = T0C+300
|
||||
protectiveness = 1 // 4%
|
||||
conductive = 0
|
||||
conductive = 0
|
||||
|
||||
/datum/material/fibers
|
||||
name = MAT_FIBERS
|
||||
display_name = "plant"
|
||||
sheet_singular_name = "fiber"
|
||||
sheet_singular_name = "fibers"
|
||||
icon_colour = "#006b0e"
|
||||
flags = MATERIAL_PADDING
|
||||
ignition_point = T0C+232
|
||||
melting_point = T0C+300
|
||||
protectiveness = 1 // 4%
|
||||
conductive = 0
|
||||
pass_stack_colors = TRUE
|
||||
|
||||
@@ -11,6 +11,7 @@
|
||||
|
||||
/obj/item/stack/material/cloth
|
||||
name = "cloth"
|
||||
desc = "Individual fibers woven into a cloth."
|
||||
icon_state = "sheet-cloth"
|
||||
default_type = "cloth"
|
||||
no_variants = FALSE
|
||||
@@ -21,3 +22,13 @@
|
||||
|
||||
/obj/item/stack/material/cloth/diyaab
|
||||
color = "#c6ccf0"
|
||||
|
||||
/obj/item/stack/material/fiber
|
||||
name = "plant fiber"
|
||||
desc = "Some all-natural plant fibers."
|
||||
icon_state = "sheet-fiber"
|
||||
default_type = MAT_FIBERS
|
||||
pass_color = TRUE
|
||||
apply_colour = TRUE
|
||||
drop_sound = 'sound/items/drop/clothing.ogg'
|
||||
pickup_sound = 'sound/items/pickup/clothing.ogg'
|
||||
|
||||
Binary file not shown.
|
Before Width: | Height: | Size: 61 KiB After Width: | Height: | Size: 62 KiB |
Reference in New Issue
Block a user