diff --git a/code/defines/obj/weapon.dm b/code/defines/obj/weapon.dm
index 2d13a27ed0..858b824ffb 100644
--- a/code/defines/obj/weapon.dm
+++ b/code/defines/obj/weapon.dm
@@ -957,18 +957,6 @@
throw_range = 15
attack_verb = list("banned")
-/obj/item/weapon/pen/sleepypen
- desc = "It's a normal black ink pen with a sharp point and a carefully engraved \"Waffle Co.\""
- flags = FPRINT | TABLEPASS | OPENCONTAINER
- slot_flags = SLOT_BELT
- origin_tech = "materials=2;biotech=1;syndicate=7"
-
-/obj/item/weapon/pen/paralysis
- desc = "It's a normal black ink pen with a sharp point."
- flags = FPRINT | TABLEPASS | OPENCONTAINER
- slot_flags = SLOT_BELT
- origin_tech = "materials=2;biotech=1;syndicate=5"
-
/obj/item/weapon/rack_parts
name = "rack parts"
desc = "Parts of a rack."
diff --git a/code/game/objects/items/devices/flashlight.dm b/code/game/objects/items/devices/flashlight.dm
index db81d5233d..0600c2db91 100644
--- a/code/game/objects/items/devices/flashlight.dm
+++ b/code/game/objects/items/devices/flashlight.dm
@@ -1,9 +1,10 @@
/obj/item/device/flashlight
name = "flashlight"
desc = "A hand-held emergency light."
- icon_state = "flight0"
+ icon = 'icons/obj/lighting.dmi'
+ icon_state = "flashlight"
+ item_state = "flashlight"
w_class = 2
- item_state = "flight"
flags = FPRINT | TABLEPASS | CONDUCT
slot_flags = SLOT_BELT
m_amt = 50
@@ -11,35 +12,33 @@
icon_action_button = "action_flashlight"
var/on = 0
var/brightness_on = 4 //luminosity when on
- var/icon_on = "flight1"
- var/icon_off = "flight0"
/obj/item/device/flashlight/initialize()
..()
- if (on)
- icon_state = icon_on
- src.SetLuminosity(brightness_on)
+ if(on)
+ icon_state = "[initial(icon_state)]-on"
+ SetLuminosity(brightness_on)
else
- icon_state = icon_off
- src.SetLuminosity(0)
+ icon_state = initial(icon_state)
+ SetLuminosity(0)
/obj/item/device/flashlight/proc/update_brightness(var/mob/user = null)
if(on)
- icon_state = icon_on
- if(src.loc == user)
+ icon_state = "[initial(icon_state)]-on"
+ if(loc == user)
user.SetLuminosity(user.luminosity + brightness_on)
else if(isturf(loc))
SetLuminosity(brightness_on)
else
- icon_state = icon_off
- if(src.loc == user)
+ icon_state = initial(icon_state)
+ if(loc == user)
user.SetLuminosity(user.luminosity - brightness_on)
else if(isturf(loc))
SetLuminosity(0)
/obj/item/device/flashlight/attack_self(mob/user)
if(!isturf(user.loc))
- user << "You cannot turn the light on while in this [user.loc]" //To prevent some lighting anomalities.
+ user << "You cannot turn the light on while in this [user.loc]." //To prevent some lighting anomalities.
return
on = !on
update_brightness(user)
@@ -47,37 +46,43 @@
/obj/item/device/flashlight/attack(mob/living/M as mob, mob/living/user as mob)
- src.add_fingerprint(user)
- if(src.on && user.zone_sel.selecting == "eyes")
+ add_fingerprint(user)
+ if(on && user.zone_sel.selecting == "eyes")
- if (((CLUMSY in user.mutations) || user.getBrainLoss() >= 60) && prob(50))//too dumb to use flashlight properly
- return ..()//just hit them in the head
+ if(((CLUMSY in user.mutations) || user.getBrainLoss() >= 60) && prob(50)) //too dumb to use flashlight properly
+ return ..() //just hit them in the head
- if (!(istype(usr, /mob/living/carbon/human) || ticker) && ticker.mode.name != "monkey")//don't have dexterity
- usr.show_message("\red You don't have the dexterity to do this!",1)
+ if(!(istype(user, /mob/living/carbon/human) || ticker) && ticker.mode.name != "monkey") //don't have dexterity
+ user << "You don't have the dexterity to do this!"
return
- var/mob/living/carbon/human/H = M//mob has protective eyewear
+ var/mob/living/carbon/human/H = M //mob has protective eyewear
if(istype(M, /mob/living/carbon/human) && ((H.head && H.head.flags & HEADCOVERSEYES) || (H.wear_mask && H.wear_mask.flags & MASKCOVERSEYES) || (H.glasses && H.glasses.flags & GLASSESCOVERSEYES)))
- user << text("\blue You're going to need to remove that [] first.", ((H.head && H.head.flags & HEADCOVERSEYES) ? "helmet" : ((H.wear_mask && H.wear_mask.flags & MASKCOVERSEYES) ? "mask": "glasses")))
+ user << "You're going to need to remove that [(H.head && H.head.flags & HEADCOVERSEYES) ? "helmet" : (H.wear_mask && H.wear_mask.flags & MASKCOVERSEYES) ? "mask": "glasses"] first."
return
- for(var/mob/O in viewers(M, null))//echo message
- if ((O.client && !(O.blinded )))
- O.show_message("\blue [(O==user?"You direct":"[user] directs")] [src] to [(M==user? "your":"[M]")] eyes", 1)
+ if(M == user) //they're using it on themselves
+ if(!M.blinded)
+ flick("flash", M.flash)
+ M.visible_message("[M] directs [src] to \his eyes.", \
+ "You wave the light in front of your eyes! Trippy!")
+ else
+ M.visible_message("[M] directs [src] to \his eyes.", \
+ "You wave the light in front of your eyes.")
+ return
- if(istype(M, /mob/living/carbon/human) || istype(M, /mob/living/carbon/monkey))//robots and aliens are unaffected
- if(M.stat == DEAD || M.sdisabilities & BLIND)//mob is dead or fully blind
- if(M!=user)
- user.show_message("\red [M] pupils does not react to the light!",1)
- else if(XRAY in M.mutations)//mob has X-RAY vision
- if(M!=user)
- user.show_message("\red [M] pupils give an eerie glow!",1)
- else //nothing wrong
+ user.visible_message("[user] directs [src] to [M]'s eyes.", \
+ "You direct [src] to [M]'s eyes.")
+
+ if(istype(M, /mob/living/carbon/human) || istype(M, /mob/living/carbon/monkey)) //robots and aliens are unaffected
+ if(M.stat == DEAD || M.sdisabilities & BLIND) //mob is dead or fully blind
+ user << "[M] pupils does not react to the light!"
+ else if(XRAY in M.mutations) //mob has X-RAY vision
+ user << "[M] pupils give an eerie glow!"
+ else //they're okay!
if(!M.blinded)
- flick("flash", M.flash)//flash the affected mob
- if(M!=user)
- user.show_message("\blue [M] pupils narrow",1)
+ flick("flash", M.flash) //flash the affected mob
+ user << "[M]'s pupils narrow."
else
return ..()
@@ -96,67 +101,34 @@
/obj/item/device/flashlight/pen
name = "penlight"
- desc = "A pen-sized light. It shines as well as a flashlight."
- icon_state = "plight0"
- flags = FPRINT | TABLEPASS | CONDUCT
+ desc = "A pen-sized light, used by medical staff."
+ icon_state = "penlight"
item_state = ""
- icon_on = "plight1"
- icon_off = "plight0"
- brightness_on = 3
+ flags = FPRINT | TABLEPASS | CONDUCT
+ brightness_on = 2
-
-/obj/item/device/flashlight/pen/paralysis/attack(mob/M as mob, mob/user as mob)
- if(!ismob(M))
- return
- user << "\red You stab [M] with the pen."
- M << "\red You feel a tiny prick!"
- M.attack_log += text("\[[time_stamp()]\] Has been stabbed with [src.name] by [user.name] ([user.ckey])")
- user.attack_log += text("\[[time_stamp()]\] Used the [src.name] to stab [M.name] ([M.ckey])")
-
- log_attack("[user.name] ([user.ckey]) Used the [src.name] to stab [M.name] ([M.ckey])")
-
-
- ..()
- return
-
-/obj/item/device/flashlight/pen/paralysis/New()
- var/datum/reagents/R = new/datum/reagents(15)
- reagents = R
- R.my_atom = src
- R.add_reagent("zombiepowder", 15)
- ..()
- return
-
-/obj/item/device/flashlight/pen/paralysis/attack(mob/M as mob, mob/user as mob)
- if (!( istype(M, /mob) ))
- return
- ..()
- if (reagents.total_volume)
- if(M.reagents) reagents.trans_to(M, 15)
- return
-
// the desk lamps are a bit special
/obj/item/device/flashlight/lamp
name = "desk lamp"
- desc = "A desk lamp"
- icon = 'icons/obj/lighting.dmi'
- icon_state = "lamp0"
+ desc = "A desk lamp with an adjustable mount."
+ icon_state = "lamp"
+ item_state = "lamp"
brightness_on = 5
- icon_on = "lamp1"
- icon_off = "lamp0"
w_class = 4
flags = FPRINT | TABLEPASS | CONDUCT
m_amt = 0
g_amt = 0
on = 1
+
// green-shaded desk lamp
/obj/item/device/flashlight/lamp/green
- icon_state = "green0"
- icon_on = "green1"
- icon_off = "green0"
- desc = "A green-shaded desk lamp"
+ desc = "A classic green-shaded desk lamp."
+ icon_state = "lampgreen"
+ item_state = "lampgreen"
+ brightness_on = 5
+
/obj/item/device/flashlight/lamp/verb/toggle_light()
set name = "Toggle light"
diff --git a/code/modules/awaymissions/pamphlet.dm b/code/modules/awaymissions/pamphlet.dm
index 2dd2e95984..d3d2f3a07b 100644
--- a/code/modules/awaymissions/pamphlet.dm
+++ b/code/modules/awaymissions/pamphlet.dm
@@ -31,4 +31,8 @@
A New World
\
As a participant in the Nanotrasen Gateway Project, you will be on the frontiers of space. \
Though complete safety is assured, participants are advised to prepare for inhospitable \
- environs."
\ No newline at end of file
+ environs."
+
+//we don't want the silly text overlay!
+/obj/item/weapon/paper/pamphlet/update_icon()
+ return
\ No newline at end of file
diff --git a/code/modules/mining/mine_items.dm b/code/modules/mining/mine_items.dm
index 4d59f34a49..a476d1e7c9 100644
--- a/code/modules/mining/mine_items.dm
+++ b/code/modules/mining/mine_items.dm
@@ -10,7 +10,7 @@
/**********************Miner Lockers**************************/
/obj/structure/closet/secure_closet/miner
- name = "Miner's Equipment"
+ name = "miner's equipment"
icon_state = "miningsec1"
icon_closed = "miningsec"
icon_locked = "miningsec1"
@@ -95,7 +95,7 @@ proc/move_mining_shuttle()
return
/obj/machinery/computer/mining_shuttle
- name = "Mining Shuttle Console"
+ name = "mining shuttle console"
icon = 'icons/obj/computer.dmi'
icon_state = "shuttle"
req_access = list(access_mining)
@@ -158,29 +158,15 @@ proc/move_mining_shuttle()
/******************************Lantern*******************************/
/obj/item/device/flashlight/lantern
- name = "Mining Lantern"
- icon_state = "lantern-off"
- desc = "A miner's lantern"
- anchored = 0
- icon_on = "lantern-on"
- icon_off = "lantern-off"
- var/brightness = 12 // luminosity when on
-
-/obj/item/device/flashlight/lantern/New()
- luminosity = 0
- on = 0
- return
-
-/obj/item/device/flashlight/lantern/attack_self(mob/user)
- src.add_fingerprint(user)
- on = !on
- update_brightness(user)
- return
+ name = "lantern"
+ icon_state = "lantern"
+ desc = "A mining lantern."
+ brightness_on = 6 // luminosity when on
/*****************************Pickaxe********************************/
/obj/item/weapon/pickaxe
- name = "Miner's pickaxe"
+ name = "pickaxe"
icon = 'icons/obj/items.dmi'
icon_state = "pickaxe"
flags = FPRINT | TABLEPASS| CONDUCT
@@ -195,12 +181,12 @@ proc/move_mining_shuttle()
attack_verb = list("hit", "pierced", "sliced", "attacked")
hammer
- name = "Mining Sledge Hammer"
+ name = "sledgehammer"
//icon_state = "sledgehammer" Waiting on sprite
desc = "A mining hammer made of reinforced metal. You feel like smashing your boss in the face with this."
silver
- name = "Silver Pickaxe"
+ name = "silver pickaxe"
icon_state = "spickaxe"
item_state = "spickaxe"
digspeed = 30
@@ -208,7 +194,7 @@ proc/move_mining_shuttle()
desc = "This makes no metallurgic sense."
drill
- name = "Mining Drill" // Can dig sand as well!
+ name = "mining drill" // Can dig sand as well!
icon_state = "handdrill"
item_state = "jackhammer"
digspeed = 30
@@ -216,7 +202,7 @@ proc/move_mining_shuttle()
desc = "Yours is the drill that will pierce through the rock walls."
jackhammer
- name = "Sonic Jackhammer"
+ name = "sonic jackhammer"
icon_state = "jackhammer"
item_state = "jackhammer"
digspeed = 20 //faster than drill, but cannot dig
@@ -224,7 +210,7 @@ proc/move_mining_shuttle()
desc = "Cracks rocks with sonic blasts, perfect for killing cave lizards."
gold
- name = "Golden Pickaxe"
+ name = "golden pickaxe"
icon_state = "gpickaxe"
item_state = "gpickaxe"
digspeed = 20
@@ -232,7 +218,7 @@ proc/move_mining_shuttle()
desc = "This makes no metallurgic sense."
plasmacutter
- name = "Plasma Cutter"
+ name = "plasma cutter"
icon_state = "plasmacutter"
item_state = "gun"
w_class = 3.0 //it is smaller than the pickaxe
@@ -242,7 +228,7 @@ proc/move_mining_shuttle()
desc = "A rock cutter that uses bursts of hot plasma. You could use it to cut limbs off of xenos! Or, you know, mine stuff."
diamond
- name = "Diamond Pickaxe"
+ name = "diamond pickaxe"
icon_state = "dpickaxe"
item_state = "dpickaxe"
digspeed = 10
@@ -250,7 +236,7 @@ proc/move_mining_shuttle()
desc = "A pickaxe with a diamond pick head, this is just like minecraft."
diamonddrill //When people ask about the badass leader of the mining tools, they are talking about ME!
- name = "Diamond Mining Drill"
+ name = "diamond mining drill"
icon_state = "diamonddrill"
item_state = "jackhammer"
digspeed = 5 //Digs through walls, girders, and can dig up sand
@@ -258,7 +244,7 @@ proc/move_mining_shuttle()
desc = "Yours is the drill that will pierce the heavens!"
borgdrill
- name = "Cyborg Mining Drill"
+ name = "cyborg mining drill"
icon_state = "diamonddrill"
item_state = "jackhammer"
digspeed = 15
diff --git a/code/modules/mob/living/carbon/human/update_icons.dm b/code/modules/mob/living/carbon/human/update_icons.dm
index 455e7fc293..09bdf7d44c 100644
--- a/code/modules/mob/living/carbon/human/update_icons.dm
+++ b/code/modules/mob/living/carbon/human/update_icons.dm
@@ -183,18 +183,21 @@ Please contact me on #coderbus IRC. ~Carn x
if(stand_icon) del(stand_icon)
if(lying_icon) del(lying_icon)
if(dna && dna.mutantrace) return
- //var/husk = (HUSK in src.mutations) //100% unnecessary -Agouri
- //var/fat = (FAT in src.mutations)
+
+ var/husk = (HUSK in src.mutations) //100% unnecessary -Agouri //nope, do you really want to iterate through src.mutations repeatedly? -Pete
+ var/fat = (FAT in src.mutations)
+ var/skeleton = (SKELETON in src.mutations)
var/g = "m"
+
if(gender == FEMALE) g = "f"
//Base mob icon
- if(HUSK in src.mutations)
+ if(husk)
stand_icon = new /icon('icons/mob/human.dmi', "husk_s")
lying_icon = new /icon('icons/mob/human.dmi', "husk_l")
- else if(FAT in src.mutations)
+ else if(fat)
stand_icon = new /icon('icons/mob/human.dmi', "fatbody_s")
lying_icon = new /icon('icons/mob/human.dmi', "fatbody_l")
- else if(SKELETON in src.mutations)
+ else if(skeleton)
stand_icon = new /icon('icons/mob/human.dmi', "skeleton_s")
lying_icon = new /icon('icons/mob/human.dmi', "skeleton_l")
else
@@ -202,7 +205,7 @@ Please contact me on #coderbus IRC. ~Carn x
lying_icon = new /icon('icons/mob/human.dmi', "body_[g]_l")
//Skin tone
- if((SKELETON in src.mutations) == 0)
+ if(!skeleton)
if(s_tone >= 0)
stand_icon.Blend(rgb(s_tone, s_tone, s_tone), ICON_ADD)
lying_icon.Blend(rgb(s_tone, s_tone, s_tone), ICON_ADD)
@@ -211,7 +214,7 @@ Please contact me on #coderbus IRC. ~Carn x
lying_icon.Blend(rgb(-s_tone, -s_tone, -s_tone), ICON_SUBTRACT)
//Eyes
- if((SKELETON in src.mutations) == 0)
+ if(!skeleton)
var/icon/eyes_s = new/icon('icons/mob/human_face.dmi', "eyes_s")
var/icon/eyes_l = new/icon('icons/mob/human_face.dmi', "eyes_l")
eyes_s.Blend(rgb(r_eyes, g_eyes, b_eyes), ICON_ADD)
@@ -220,13 +223,13 @@ Please contact me on #coderbus IRC. ~Carn x
lying_icon.Blend(eyes_l, ICON_OVERLAY)
//Mouth (lipstick!)
- if(lip_style && (SKELETON in src.mutations) == 0)
+ if(lip_style) //skeletons are allowed to wear lipstick no matter what you think, agouri.
stand_icon.Blend(new/icon('icons/mob/human_face.dmi', "lips_[lip_style]_s"), ICON_OVERLAY)
lying_icon.Blend(new/icon('icons/mob/human_face.dmi', "lips_[lip_style]_l"), ICON_OVERLAY)
//Underwear
if(underwear >0 && underwear < 12)
- if((FAT in src.mutations) == 0 && (SKELETON in src.mutations) == 0)
+ if(!fat && !skeleton)
stand_icon.Blend(new /icon('icons/mob/human.dmi', "underwear[underwear]_[g]_s"), ICON_OVERLAY)
lying_icon.Blend(new /icon('icons/mob/human.dmi', "underwear[underwear]_[g]_l"), ICON_OVERLAY)
if(update_icons) update_icons()
@@ -274,7 +277,7 @@ Please contact me on #coderbus IRC. ~Carn x
/mob/living/carbon/human/update_mutations(var/update_icons=1)
var/fat
- if( FAT in mutations )
+ if(FAT in mutations)
fat = "fat"
var/image/lying = image("icon" = 'icons/effects/genetics.dmi')
diff --git a/code/modules/paperwork/clipboard.dm b/code/modules/paperwork/clipboard.dm
index 17442b800a..f2f2dd0530 100644
--- a/code/modules/paperwork/clipboard.dm
+++ b/code/modules/paperwork/clipboard.dm
@@ -17,9 +17,9 @@
update_icon()
/obj/item/weapon/clipboard/MouseDrop(obj/over_object as obj) //Quick clipboard fix. -Agouri
- if(ishuman(usr) || ismonkey(usr)) //Can monkeys even place items in the pocket slots? Leaving this in just in case~
+ if(ishuman(usr))
var/mob/M = usr
- if (!(istype(over_object, /obj/screen) ))
+ if(!(istype(over_object, /obj/screen) ))
return ..()
if(!M.restrained() && !M.stat)
@@ -31,7 +31,7 @@
M.u_equip(src)
M.put_in_l_hand(src)
- src.add_fingerprint(usr)
+ add_fingerprint(usr)
return
/obj/item/weapon/clipboard/update_icon()
@@ -58,7 +58,7 @@
/obj/item/weapon/clipboard/attack_self(mob/user as mob)
var/dat = "