diff --git a/code/game/atoms.dm b/code/game/atoms.dm index 2455aefad5e..7e5c26b52e5 100644 --- a/code/game/atoms.dm +++ b/code/game/atoms.dm @@ -91,7 +91,7 @@ if(istype(M.loc, /mob/living)) var/mob/living/L = M.loc L.unEquip(M) - M.loc = src + M.forceMove(src) /atom/proc/assume_air(datum/gas_mixture/giver) qdel(giver) diff --git a/code/game/objects/items/weapons/clown_items.dm b/code/game/objects/items/weapons/clown_items.dm index 7cad42a216c..aea1ebd3e1b 100644 --- a/code/game/objects/items/weapons/clown_items.dm +++ b/code/game/objects/items/weapons/clown_items.dm @@ -122,7 +122,7 @@ ..() /obj/item/weapon/bikehorn/golden/proc/flip_mobs(mob/living/carbon/M, mob/user) - if (!spam_flag) + if(!spam_flag) var/turf/T = get_turf(src) for(M in ohearers(7, T)) if(istype(M, /mob/living/carbon/human)) diff --git a/code/game/objects/items/weapons/storage/boxes.dm b/code/game/objects/items/weapons/storage/boxes.dm index 9c27c8cc5ec..76cbc9ab102 100644 --- a/code/game/objects/items/weapons/storage/boxes.dm +++ b/code/game/objects/items/weapons/storage/boxes.dm @@ -721,7 +721,7 @@ var/design = NODESIGN /obj/item/weapon/storage/box/papersack/update_icon() - if(contents.len == 0) + if(!contents.len) icon_state = "[item_state]" else icon_state = "[item_state]_closed" @@ -729,21 +729,22 @@ if(istype(W, /obj/item/weapon/pen)) //if a pen is used on the sack, dialogue to change its design appears if(contents.len) - to_chat(user, "You can't modify this [src] with items still inside!") + to_chat(user, "You can't modify [src] with items still inside!") return - var/list/designs = list(NODESIGN, NANOTRASEN, SYNDI, HEART, SMILE, "Cancel") - var/switchDesign = input("Select a Design:", "Paper Sack Design", designs[1]) in designs - if(get_dist(usr, src) > 1) + var/list/designs = list(NODESIGN, NANOTRASEN, SYNDI, HEART, SMILE) + var/switchDesign = input("Select a Design:", "Paper Sack Design", designs[1]) as null|anything in designs + if(!switchDesign) + return + if(get_dist(usr, src) > 1 && !usr.incapacitated()) to_chat(usr, "You have moved too far away!") return - var/choice = designs.Find(switchDesign) - if(design == designs[choice] || designs[choice] == "Cancel") - return 0 - to_chat(usr, "You make some modifications to the [src] using your pen.") - design = designs[choice] + if(design == switchDesign) + return + to_chat(usr, "You make some modifications to [src] using your pen.") + design = switchDesign icon_state = "paperbag_[design]" item_state = "paperbag_[design]" - switch(designs[choice]) + switch(design) if(NODESIGN) desc = "A sack neatly crafted out of paper." if(NANOTRASEN) @@ -754,19 +755,19 @@ desc = "A paper sack with a heart etched onto the side." if(SMILE) desc = "A paper sack with a crude smile etched onto the side." - return 0 + return else if(is_sharp(W)) if(!contents.len) if(item_state == "paperbag_None") - to_chat(user, "You cut eyeholes into the [src].") + to_chat(user, "You cut eyeholes into [src].") new /obj/item/clothing/head/papersack(user.loc) qdel(src) - return 0 + return else if(item_state == "paperbag_SmileyFace") - to_chat(user, "You cut eyeholes into the [src] and modify the design.") + to_chat(user, "You cut eyeholes into [src] and modify the design.") new /obj/item/clothing/head/papersack/smiley(user.loc) qdel(src) - return 0 + return return ..() #undef NODESIGN diff --git a/code/game/objects/items/weapons/teleprod.dm b/code/game/objects/items/weapons/teleprod.dm index db6c4e0b2a0..bccb4a3014c 100644 --- a/code/game/objects/items/weapons/teleprod.dm +++ b/code/game/objects/items/weapons/teleprod.dm @@ -30,6 +30,6 @@ qdel(I) qdel(src) else - user.visible_message("You can't put the crystal onto the stunprod while it has a power cell installed!") + to_chat(user, "You can't put the crystal onto the stunprod while it has a power cell installed!") else return ..() diff --git a/code/game/objects/items/weapons/twohanded.dm b/code/game/objects/items/weapons/twohanded.dm index 8283c979df7..88138657270 100644 --- a/code/game/objects/items/weapons/twohanded.dm +++ b/code/game/objects/items/weapons/twohanded.dm @@ -309,7 +309,7 @@ return if(explosive && wielded) user.say("[war_cry]") - explosive.loc = AM + explosive.forceMove(AM) explosive.prime() qdel(src) @@ -319,7 +319,7 @@ explosive.prime() qdel(src) -/obj/item/weapon/twohanded/spear/AltClick() +/obj/item/weapon/twohanded/spear/AltClick(mob/user) ..() if(!explosive) return