From 086eb03c1aa7f0a5c650b91a11b14119b03ec5ba Mon Sep 17 00:00:00 2001 From: Jack Edge Date: Mon, 2 May 2016 11:37:39 +0100 Subject: [PATCH 1/2] Adds collectable HoP hat - Switches reskinned HoS hat in museum in MetaStation to use HoP hat - Adds HoP hat to cargo - Collectable HoP hat able to be worn by corgis --- _maps/map_files/MetaStation/MetaStation.v41I.dmm | 4 +--- code/modules/cargo/packs.dm | 1 + code/modules/clothing/head/collectable.dm | 6 ++++++ 3 files changed, 8 insertions(+), 3 deletions(-) diff --git a/_maps/map_files/MetaStation/MetaStation.v41I.dmm b/_maps/map_files/MetaStation/MetaStation.v41I.dmm index dd60f599a3f..fe15b19a5ec 100644 --- a/_maps/map_files/MetaStation/MetaStation.v41I.dmm +++ b/_maps/map_files/MetaStation/MetaStation.v41I.dmm @@ -60283,9 +60283,7 @@ pixel_y = 0 }, /obj/item/weapon/folder/blue, -/obj/item/clothing/head/collectable/HoS{ - desc = "It's your turn to demand excessive paperwork, signatures, stamps, and hire more clowns! Papers, please!"; - icon_state = "hopcap"; +/obj/item/clothing/head/collectable/HoP{ name = "novelty HoP hat" }, /obj/machinery/light/small{ diff --git a/code/modules/cargo/packs.dm b/code/modules/cargo/packs.dm index 97d8066f690..f3c3b71dd3b 100644 --- a/code/modules/cargo/packs.dm +++ b/code/modules/cargo/packs.dm @@ -1317,6 +1317,7 @@ /obj/item/clothing/head/collectable/wizard, /obj/item/clothing/head/collectable/hardhat, /obj/item/clothing/head/collectable/HoS, + /obj/item/clothing/head/collectable/HoP, /obj/item/clothing/head/collectable/thunderdome, /obj/item/clothing/head/collectable/swat, /obj/item/clothing/head/collectable/slime, diff --git a/code/modules/clothing/head/collectable.dm b/code/modules/clothing/head/collectable.dm index 54b704195e2..c969147f9a3 100644 --- a/code/modules/clothing/head/collectable.dm +++ b/code/modules/clothing/head/collectable.dm @@ -126,6 +126,12 @@ desc = "Now you too can beat prisoners, set silly sentences, and arrest for no reason!" icon_state = "hoscap" +/obj/item/clothing/head/collectable/HoP + name = "collectable HoP hat" + desc = "It's your turn to demand excessive paperwork, signatures, stamps, and hire more clowns! Papers, please!" + icon_state = "hopcap" + dog_fashion = /datum/dog_fashion/head/hop + /obj/item/clothing/head/collectable/thunderdome name = "collectable Thunderdome helmet" desc = "Go Red! I mean Green! I mean Red! No Green!" From 8a3776cc6161973fd08fbccbce0a5195ce492001 Mon Sep 17 00:00:00 2001 From: Jack Edge Date: Mon, 2 May 2016 12:47:35 +0100 Subject: [PATCH 2/2] Glass tables shatter more often - Glass tables do not break if they have the NODECONSTRUCT flag - Glass tables break if any living mob crosses them above small size and under the effects of gravity. --- code/game/objects/structures/tables_racks.dm | 34 +++++++++++--------- 1 file changed, 19 insertions(+), 15 deletions(-) diff --git a/code/game/objects/structures/tables_racks.dm b/code/game/objects/structures/tables_racks.dm index 1a1ece0837b..199c3ddae49 100644 --- a/code/game/objects/structures/tables_racks.dm +++ b/code/game/objects/structures/tables_racks.dm @@ -264,23 +264,27 @@ canSmoothWith = null health = 50 -/obj/structure/table/glass/tablepush(obj/item/I, mob/user) - if(..()) - visible_message("[src] breaks!") - playsound(src.loc, "shatter", 50, 1) - new frame(src.loc) - new /obj/item/weapon/shard(src.loc) - qdel(src) +/obj/structure/table/glass/Crossed(atom/movable/AM) + . = ..() + if(flags & NODECONSTRUCT) + return + // Don't break if they're just flying past + if(AM.throwing) + return + if(istype(AM, /mob/living)) + var/mob/living/M = AM + if(has_gravity(M) && M.mob_size > MOB_SIZE_SMALL) + table_shatter(M) -/obj/structure/table/glass/climb_structure(mob/user) - if(..()) - visible_message("[src] breaks!") - playsound(src.loc, "shatter", 50, 1) - new frame(src.loc) - new /obj/item/weapon/shard(src.loc) - qdel(src) - user.Weaken(5) +/obj/structure/table/glass/proc/table_shatter(mob/M) + visible_message("[src] breaks!") + playsound(src.loc, "shatter", 50, 1) + new frame(src.loc) + var/obj/item/weapon/shard/S = new(src.loc) + S.throw_impact(M) + M.Weaken(5) + qdel(src) /* * Wooden tables