From a89c066905a8a13f2e3406dd39be9b57db3691d2 Mon Sep 17 00:00:00 2001 From: Hubblenaut Date: Thu, 10 Dec 2015 19:06:45 +0100 Subject: [PATCH] Fixes onmob icons for holders Conflicts: code/game/objects/items.dm --- code/game/atoms_movable.dm | 1 + code/game/objects/items.dm | 5 ++--- code/modules/mob/holder.dm | 1 + code/modules/mob/living/carbon/alien/diona/diona.dm | 1 + code/modules/mob/living/simple_animal/borer/borer.dm | 1 + code/modules/mob/living/simple_animal/friendly/cat.dm | 4 ++++ code/modules/mob/living/simple_animal/friendly/mouse.dm | 2 ++ 7 files changed, 12 insertions(+), 3 deletions(-) diff --git a/code/game/atoms_movable.dm b/code/game/atoms_movable.dm index f8d2f3493f8..e45be4bb6a6 100644 --- a/code/game/atoms_movable.dm +++ b/code/game/atoms_movable.dm @@ -13,6 +13,7 @@ var/throw_range = 7 var/moved_recently = 0 var/mob/pulledby = null + var/item_state = null // Used to specify the item state for the on-mob overlays. var/auto_init = 1 diff --git a/code/game/objects/items.dm b/code/game/objects/items.dm index 35ad6db8677..e3d3bf80b5a 100644 --- a/code/game/objects/items.dm +++ b/code/game/objects/items.dm @@ -47,7 +47,6 @@ var/zoom = 0 //1 if item is actively being used to zoom. For scoped guns and binoculars. var/icon_override = null //Used to override hardcoded clothing dmis in human clothing proc. - var/item_state = null // Used to specify the item state for the on-mob overlays. //** These specify item/icon overrides for _slots_ @@ -615,6 +614,6 @@ modules/mob/living/carbon/human/life.dm if you die, you will be zoomed out. usr.visible_message("[zoomdevicename ? "[usr] looks up from the [src.name]" : "[usr] lowers the [src.name]"].") return - + /obj/item/proc/pwr_drain() - return 0 // Process Kill + return 0 // Process Kill diff --git a/code/modules/mob/holder.dm b/code/modules/mob/holder.dm index c878425be49..59974bda063 100644 --- a/code/modules/mob/holder.dm +++ b/code/modules/mob/holder.dm @@ -60,6 +60,7 @@ var/list/holder_mob_icon_cache = list() overlays.Cut() icon = M.icon icon_state = M.icon_state + item_state = M.item_state color = M.color name = M.name desc = M.desc diff --git a/code/modules/mob/living/carbon/alien/diona/diona.dm b/code/modules/mob/living/carbon/alien/diona/diona.dm index bd2d5dc78e1..eeebde6d269 100644 --- a/code/modules/mob/living/carbon/alien/diona/diona.dm +++ b/code/modules/mob/living/carbon/alien/diona/diona.dm @@ -4,6 +4,7 @@ adult_form = /mob/living/carbon/human speak_emote = list("chirrups") icon_state = "nymph" + item_state = "nymph" language = "Rootspeak" death_msg = "expires with a pitiful chirrup..." universal_understand = 1 diff --git a/code/modules/mob/living/simple_animal/borer/borer.dm b/code/modules/mob/living/simple_animal/borer/borer.dm index 73410552fb9..d8606524e21 100644 --- a/code/modules/mob/living/simple_animal/borer/borer.dm +++ b/code/modules/mob/living/simple_animal/borer/borer.dm @@ -8,6 +8,7 @@ response_disarm = "prods" response_harm = "stomps on" icon_state = "brainslug" + item_state = "brainslug" icon_living = "brainslug" icon_dead = "brainslug_dead" speed = 5 diff --git a/code/modules/mob/living/simple_animal/friendly/cat.dm b/code/modules/mob/living/simple_animal/friendly/cat.dm index d429140d10e..1cc8894f4fb 100644 --- a/code/modules/mob/living/simple_animal/friendly/cat.dm +++ b/code/modules/mob/living/simple_animal/friendly/cat.dm @@ -3,6 +3,7 @@ name = "cat" desc = "A domesticated, feline pet. Has a tendency to adopt crewmembers." icon_state = "cat2" + item_state = "cat2" icon_living = "cat2" icon_dead = "cat2_dead" speak = list("Meow!","Esp!","Purr!","HSSSSS") @@ -217,6 +218,7 @@ desc = "Her fur has the look and feel of velvet, and her tail quivers occasionally." gender = FEMALE icon_state = "cat" + item_state = "cat" icon_living = "cat" icon_dead = "cat_dead" befriend_job = "Chief Medical Officer" @@ -225,6 +227,7 @@ name = "kitten" desc = "D'aaawwww" icon_state = "kitten" + item_state = "kitten" icon_living = "kitten" icon_dead = "kitten_dead" gender = NEUTER @@ -241,6 +244,7 @@ desc = "That's Bones the cat. He's a laid back, black cat. Meow." gender = MALE icon_state = "cat3" + item_state = "cat3" icon_living = "cat3" icon_dead = "cat3_dead" holder_type = /obj/item/weapon/holder/cat/fluff/bones diff --git a/code/modules/mob/living/simple_animal/friendly/mouse.dm b/code/modules/mob/living/simple_animal/friendly/mouse.dm index ceacccfdb72..1dfb5ed6f04 100644 --- a/code/modules/mob/living/simple_animal/friendly/mouse.dm +++ b/code/modules/mob/living/simple_animal/friendly/mouse.dm @@ -3,6 +3,7 @@ real_name = "mouse" desc = "It's a small rodent." icon_state = "mouse_gray" + item_state = "mouse_gray" icon_living = "mouse_gray" icon_dead = "mouse_gray_dead" speak = list("Squeek!","SQUEEK!","Squeek?") @@ -67,6 +68,7 @@ if(!body_color) body_color = pick( list("brown","gray","white") ) icon_state = "mouse_[body_color]" + item_state = "mouse_[body_color]" icon_living = "mouse_[body_color]" icon_dead = "mouse_[body_color]_dead" desc = "It's a small [body_color] rodent, often seen hiding in maintenance areas and making a nuisance of itself."