Merge branch 'master' of https://github.com/PolarisSS13/Polaris into gravestone

# Conflicts:
#	icons/obj/structures.dmi
This commit is contained in:
Anewbe
2017-09-27 13:49:56 -05:00
35 changed files with 595 additions and 52 deletions
+28 -5
View File
@@ -1,10 +1,12 @@
/obj/structure/gravemarker
name = "grave marker"
desc = "An object used in marking graves."
icon_state = "gravestone"
icon_state = "gravemarker"
density = 1
anchored = 1
throwpass = 1
climbable = 1
//Maybe make these calculate based on material?
var/health = 100
@@ -34,6 +36,23 @@
if(epitaph)
to_chat(user, epitaph)
/obj/structure/gravemarker/CanPass(atom/movable/mover, turf/target, height=0, air_group=0)
if(!mover)
return 1
if(istype(mover) && mover.checkpass(PASSTABLE))
return 1
if(get_dir(loc, target) & dir)
return !density
else
return 1
/obj/structure/gravemarker/CheckExit(atom/movable/O as mob|obj, target as turf)
if(istype(O) && O.checkpass(PASSTABLE))
return 1
if(get_dir(O.loc, target) == dir)
return 0
return 1
/obj/structure/gravemarker/attackby(obj/item/weapon/W, mob/user as mob)
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)
@@ -53,7 +72,7 @@
return
if(istype(W, /obj/item/weapon/wrench))
user.visible_message("[user] starts taking down \the [src.name].", "You start taking down \the [src.name].")
if(do_after(user, 50 * W.toolspeed))
if(do_after(user, material.hardness * W.toolspeed))
user.visible_message("[user] takes down \the [src.name].", "You take down \the [src.name].")
dismantle()
..()
@@ -93,13 +112,13 @@
qdel(src)
return
/* //Need Directional Sprites
/obj/structure/gravemarker/verb/rotate()
set name = "Rotate Grave Marker"
set category = "Object"
set src in oview(1)
if(dir_locked)
if(anchored)
return
if(config.ghost_interaction)
src.set_dir(turn(src.dir, 90))
@@ -114,4 +133,8 @@
src.set_dir(turn(src.dir, 90))
return
*/
/obj/structure/gravemarker/gravestone
name = "gravestone"
desc = "A large stone used in marking graves."
icon_state = "gravestone"
+11
View File
@@ -239,3 +239,14 @@
if(air_group)
return 0 //Make sure air doesn't drain
..()
/obj/structure/grille/broken/cult
icon_state = "grillecult-b"
/obj/structure/grille/rustic
name = "rustic grille"
desc = "A lattice of metal, arranged in an old, rustic fashion."
icon_state = "grillerustic"
/obj/structure/grille/broken/rustic
icon_state = "grillerustic-b"
+4 -1
View File
@@ -42,7 +42,7 @@
/obj/structure/simple_door/Destroy()
processing_objects -= src
update_nearby_tiles()
..()
return ..()
/obj/structure/simple_door/get_material()
return material
@@ -194,5 +194,8 @@
/obj/structure/simple_door/wood/New(var/newloc,var/material_name)
..(newloc, "wood")
/obj/structure/simple_door/sifwood/New(var/newloc,var/material_name)
..(newloc, "alien wood")
/obj/structure/simple_door/resin/New(var/newloc,var/material_name)
..(newloc, "resin")