mirror of
https://github.com/CHOMPStation2/CHOMPStation2.git
synced 2025-12-11 18:53:06 +00:00
Finishing touches on gravemarkers
This commit is contained in:
@@ -7,7 +7,7 @@
|
|||||||
force_divisor = 0.65
|
force_divisor = 0.65
|
||||||
thrown_force_divisor = 0.25
|
thrown_force_divisor = 0.25
|
||||||
|
|
||||||
var/icon_changes = 0 //Does the sprite change when you put words on it?
|
var/icon_changes = 1 //Does the sprite change when you put words on it?
|
||||||
var/grave_name = "" //Name of the intended occupant
|
var/grave_name = "" //Name of the intended occupant
|
||||||
var/epitaph = "" //A quick little blurb
|
var/epitaph = "" //A quick little blurb
|
||||||
|
|
||||||
@@ -15,19 +15,24 @@
|
|||||||
if(istype(W, /obj/item/weapon/screwdriver))
|
if(istype(W, /obj/item/weapon/screwdriver))
|
||||||
var/carving_1 = sanitizeSafe(input(user, "Who is \the [src.name] for?", "Gravestone Naming", null) as text, MAX_NAME_LEN)
|
var/carving_1 = sanitizeSafe(input(user, "Who is \the [src.name] for?", "Gravestone Naming", null) as text, MAX_NAME_LEN)
|
||||||
if(carving_1)
|
if(carving_1)
|
||||||
user.visible_message()
|
user.visible_message("[user] starts carving \the [src.name].", "You start carving \the [src.name].")
|
||||||
if(do_after(user, material.hardness * W.toolspeed))
|
if(do_after(user, material.hardness * W.toolspeed))
|
||||||
user.visible_message("[user] carves something into \the [src.name].", "You carve your message into \the [src.name].")
|
user.visible_message("[user] carves something into \the [src.name].", "You carve your message into \the [src.name].")
|
||||||
grave_name += carving_1
|
grave_name += carving_1
|
||||||
update_icon()
|
update_icon()
|
||||||
var/carving_2 = sanitizeSafe(input(user, "What message should \the [src.name] have?", "Epitaph Carving", null) as text, MAX_NAME_LEN)
|
var/carving_2 = sanitizeSafe(input(user, "What message should \the [src.name] have?", "Epitaph Carving", null) as text, MAX_NAME_LEN)
|
||||||
if(carving_2)
|
if(carving_2)
|
||||||
user.visible_message()
|
user.visible_message("[user] starts carving \the [src.name].", "You start carving \the [src.name].")
|
||||||
if(do_after(user, material.hardness * W.toolspeed))
|
if(do_after(user, material.hardness * W.toolspeed))
|
||||||
user.visible_message("[user] carves something into \the [src.name].", "You carve your message into \the [src.name].")
|
user.visible_message("[user] carves something into \the [src.name].", "You carve your message into \the [src.name].")
|
||||||
epitaph += carving_2
|
epitaph += carving_2
|
||||||
update_icon()
|
update_icon()
|
||||||
|
if(istype(W, /obj/item/weapon/wrench))
|
||||||
|
user.visible_message("[user] starts carving \the [src.name].", "You start carving \the [src.name].")
|
||||||
|
if(do_after(user, material.hardness * W.toolspeed))
|
||||||
|
material.place_dismantled_product(get_turf(src))
|
||||||
|
user.visible_message("[user] dismantles down \the [src.name].", "You dismantle \the [src.name].")
|
||||||
|
qdel(src)
|
||||||
..()
|
..()
|
||||||
|
|
||||||
/obj/item/weapon/material/gravemarker/examine(mob/user)
|
/obj/item/weapon/material/gravemarker/examine(mob/user)
|
||||||
|
|||||||
@@ -8,6 +8,8 @@
|
|||||||
throwpass = 1
|
throwpass = 1
|
||||||
climbable = 1
|
climbable = 1
|
||||||
|
|
||||||
|
layer = 3.1 //Above dirt piles
|
||||||
|
|
||||||
//Maybe make these calculate based on material?
|
//Maybe make these calculate based on material?
|
||||||
var/health = 100
|
var/health = 100
|
||||||
|
|
||||||
@@ -132,9 +134,4 @@
|
|||||||
return
|
return
|
||||||
|
|
||||||
src.set_dir(turn(src.dir, 90))
|
src.set_dir(turn(src.dir, 90))
|
||||||
return
|
return
|
||||||
|
|
||||||
/obj/structure/gravemarker/gravestone
|
|
||||||
name = "gravestone"
|
|
||||||
desc = "A large stone used in marking graves."
|
|
||||||
icon_state = "gravestone"
|
|
||||||
Binary file not shown.
|
Before Width: | Height: | Size: 89 KiB After Width: | Height: | Size: 89 KiB |
Binary file not shown.
|
Before Width: | Height: | Size: 35 KiB After Width: | Height: | Size: 35 KiB |
Reference in New Issue
Block a user