Skip to content

Commit

Permalink
freedom ?
Browse files Browse the repository at this point in the history
  • Loading branch information
MortoSasye committed Sep 20, 2024
1 parent 46482e1 commit fa4bcbb
Show file tree
Hide file tree
Showing 4 changed files with 67 additions and 18 deletions.
Original file line number Diff line number Diff line change
@@ -1,3 +1,12 @@
//generic primitive recipe
/datum/crafting_recipe/primitive_recipe
reqs = list(
/obj/item/stack/sheet/bone = 1,
/obj/item/stack/sheet/sinew = 1,
)
time = 4 SECONDS
category = CAT_TOOLS

//ASH TOOL
/obj/item/screwdriver/primitive
name = "primitive screwdriver"
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -8,14 +8,26 @@
resistance_flags = FLAMMABLE
max_integrity = 100
integrity_failure = 0.35
var/build_stack_type = /obj/item/stack/sheet/bronze
/// How many mats to drop when deconstructed
var/build_stack_amount = 10
/// If this horn can be deconstructed using a wrench
var/can_deconstruct = TRUE

//Crafting code.
//Deconstruct code
/obj/structure/calling_horn/hearthkin/wrench_act(mob/living/user, obj/item/tool)
. = ..()
balloon_alert_to_viewers("disassembling...")
if(!do_after(user, 2 SECONDS, src))
return
deconstruct(TRUE)

/obj/structure/calling_horn/hearthkin/atom_deconstruct(disassembled)
var/obj/item/stack/sheet/bronze/bronze = new(drop_location(), 10)
transfer_fingerprints_to(bronze)
return ..()

//Anchor code
/obj/structure/calling_horn/hearthkin/click_ctrl(mob/user)
set_anchored(!anchored)
balloon_alert(user, "[anchored ? "secured" : "unsecured"]")

//Crafting code.
/datum/crafting_recipe/bronze_calling_horn
name = "Bronze Calling Horn"
category = CAT_FURNITURE
Expand Down
28 changes: 22 additions & 6 deletions modular_doppler/hearthkin/primitive_structures/code/furniture.dm
Original file line number Diff line number Diff line change
Expand Up @@ -82,12 +82,28 @@
max_integrity = 100
integrity_failure = 0.35
bound_height = 64
/// What material this rug is made of
var/build_stack_type = /obj/item/stack/sheet/animalhide/goliath_hide/polar_bear_hide
/// How many mats to drop when deconstructed
var/build_stack_amount = 4
/// If this rug can be deconstructed using a wrench
var/can_deconstruct = TRUE

//Deconstruct code
/obj/structure/rugs/pelt/attackby(obj/item/attacking_item, mob/user, params)
if(!istype(attacking_item, /obj/item/knife/))
return ..()
balloon_alert_to_viewers("cutting...")
if(!do_after(user, 5 SECONDS, target = src))
balloon_alert_to_viewers("stopped cutting")
return FALSE
deconstruct(TRUE)

/obj/structure/rugs/pelt/atom_deconstruct(disassembled)
var/obj/item/stack/sheet/animalhide/goliath_hide/polar_bear_hide/polar_bear_hide = new(drop_location(), 4)
transfer_fingerprints_to(polar_bear_hide)
return ..()

//Anchor code
/obj/structure/rugs/pelt/click_ctrl(mob/user)
set_anchored(!anchored)
balloon_alert(user, "[anchored ? "secured" : "unsecured"]")

//Crafting code

/datum/crafting_recipe/white_pelts_rug
name = "White Pelts Rug"
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -8,14 +8,26 @@
resistance_flags = FLAMMABLE
max_integrity = 100
integrity_failure = 0.35
var/build_stack_type = /obj/item/stack/sheet/mineral/stone/
/// How many mats to drop when deconstructed
var/build_stack_amount = 10
/// If this rune stone can be deconstructed using a wrench
var/can_deconstruct = TRUE

//Crafting code.
//Deconstruct code
/obj/structure/hearthkin_rune_stone/crowbar_act(mob/living/user, obj/item/tool)
. = ..()
balloon_alert_to_viewers("disassembling...")
if(!do_after(user, 2 SECONDS, src))
return
deconstruct(TRUE)

/obj/structure/hearthkin_rune_stone/atom_deconstruct(disassembled)
var/obj/item/stack/sheet/mineral/stone/stone = new(drop_location(), 10)
transfer_fingerprints_to(stone)
return ..()

//Anchor code
/obj/structure/hearthkin_rune_stone/click_ctrl(mob/user)
set_anchored(!anchored)
balloon_alert(user, "[anchored ? "secured" : "unsecured"]")

//Crafting code.
/datum/crafting_recipe/hearthkin_rune_stone
name = "Rune Stone"
category = CAT_FURNITURE
Expand Down

0 comments on commit fa4bcbb

Please sign in to comment.