Revert "Stamp People (#14628)" (#15125)

This reverts commit ad891d8e98.
This commit is contained in:
AffectedArc07
2020-12-16 21:01:04 +00:00
committed by GitHub
parent 2bad70717c
commit 8cb3571a9c
7 changed files with 4 additions and 118 deletions
-6
View File
@@ -168,12 +168,6 @@
target.icon = initial(picked_item.icon)
if(istype(target, /obj/item/stamp))
var/obj/item/stamp/S = target
var/obj/item/stamp/P = picked_item
S.stamp_color = initial(P.stamp_color)
S.stamp_description = initial(P.stamp_description)
/datum/action/item_action/chameleon/change/Trigger()
if(!IsAvailable())
return
@@ -166,19 +166,6 @@
if(wear_id)
msg += "[p_they(TRUE)] [p_are()] wearing [bicon(wear_id)] \a [wear_id].\n"
//Stamp Marks
var/stamps_len = length(stamp_marks_desc)
if(stamps_len)
msg += "[p_they(TRUE)] [p_have()] been stamped: "
if(stamps_len > 2)
msg += stamp_marks_desc.Join(", ", 1, stamps_len - 1)
msg += ", and [stamp_marks_desc[stamps_len]]"
else if(stamps_len == 2)
msg += "[stamp_marks_desc[1]], and [stamp_marks_desc[2]]"
else
msg += stamp_marks_desc[1]
msg += ".\n"
//Jitters
switch(jitteriness)
if(300 to INFINITY)
@@ -5,13 +5,8 @@
icon = 'icons/mob/human.dmi'
icon_state = "body_m_s"
deathgasp_on_death = TRUE
/// descriptions of stamps applied to this human that will be visible on examine
var/list/stamp_marks_desc = list()
/// combined image of all the stamp marks
var/image/stamp_marks
/mob/living/carbon/human/New(loc)
stamp_marks = new /image()
icon = null // This is now handled by overlays -- we just keep an icon for the sake of the map editor.
if(length(args) > 1)
log_runtime(EXCEPTION("human/New called with more than 1 argument (REPORT THIS ENTIRE RUNTIME TO A CODER)"))
@@ -522,7 +522,6 @@ GLOBAL_LIST_EMPTY(damage_icon_parts)
update_inv_legcuffed()
update_inv_pockets()
update_inv_wear_pda()
update_misc_effects()
UpdateDamageIcon()
force_update_limbs()
update_tail_layer()
@@ -1259,13 +1258,11 @@ GLOBAL_LIST_EMPTY(damage_icon_parts)
/mob/living/carbon/human/proc/update_misc_effects()
remove_overlay(MISC_LAYER)
var/mutable_appearance/standing = mutable_appearance(layer = -MISC_LAYER)
if(length(stamp_marks.overlays))
standing.overlays += stamp_marks
//Begin appending miscellaneous effects.
if(eyes_shine())
standing.overlays += get_eye_shine() //Image layer is specified in get_eye_shine() proc as LIGHTING_LAYER + 1.
overlays_standing[MISC_LAYER] = standing
overlays_standing[MISC_LAYER] = get_eye_shine() //Image layer is specified in get_eye_shine() proc as LIGHTING_LAYER + 1.
apply_overlay(MISC_LAYER)
/mob/living/carbon/human/proc/update_halo_layer()
+1 -85
View File
@@ -12,61 +12,6 @@
item_color = "cargo"
pressure_resistance = 2
attack_verb = list("stamped")
/// used for on human stamp marks, each mark will be colored this before adding to image in human stamp_marks
var/stamp_color = "#6ca151"
/// this is defined uniquely for each subtype, used in examine.dm for when humans are stamped.
var/stamp_description = "..."
/obj/item/stamp/afterattack(atom/target, mob/user, proximity, params)
. = ..()
if(!ishuman(target) || !ishuman(user) || !proximity)
return
var/mob/living/carbon/human/H = target
var/attackedSide //the stamp mark will appear on this side, NORTH = forwards, SOUTH = back, EAST = right, WEST = left
var/list/paramslist = params2list(params)
var/xOffset = text2num(paramslist["icon-x"]) - 16
var/yOffset = text2num(paramslist["icon-y"]) - 16
switch(H.dir) //This makes the attackSide be the side that currently faces the 'camera'
if(NORTH)
attackedSide = SOUTH
if(SOUTH)
attackedSide = NORTH
if(EAST)
attackedSide = EAST
if(WEST)
attackedSide = WEST
//Here the base stamp sprite is loaded, in the dmi there are 3 different types of possible marks
//and for each type there is one state for each direction, although bizzare it going to have to be this way
var/icon/new_stamp_mark = icon('icons/effects/stamp_marks.dmi', "stamp[rand(1,3)]_[attackedSide]")
new_stamp_mark.Shift(EAST, xOffset)
new_stamp_mark.Shift(NORTH, yOffset)
//targetBaseIcon will be a picture of the human's base body underwear and uniform
//we will use it so stamp marks cannot be put on backpack or inhand items
var/mutable_appearance/targetBaseIcon = mutable_appearance()
targetBaseIcon.dir = H.dir
targetBaseIcon.overlays += H.overlays_standing[BODY_LAYER]
targetBaseIcon.overlays += H.overlays_standing[LIMBS_LAYER]
targetBaseIcon.overlays += H.overlays_standing[TAIL_LAYER]
targetBaseIcon.overlays += H.overlays_standing[UNDERWEAR_LAYER]
targetBaseIcon.overlays += H.overlays_standing[HAIR_LAYER]
targetBaseIcon.overlays += H.overlays_standing[UNIFORM_LAYER]
new_stamp_mark.Blend(getFlatIcon(targetBaseIcon), BLEND_MULTIPLY) // cut out any parts of the new mark that arent on target sprite
var/image/new_stamp_mark_image = image(new_stamp_mark)
new_stamp_mark_image.color = stamp_color // it needs to be an image because it's easiest way to color sprites
H.stamp_marks.overlays += new_stamp_mark_image // add new mark to existing image of marks
if(!(stamp_description in H.stamp_marks_desc)) // if its a new stamp type add its desc to list of descs
H.stamp_marks_desc += stamp_description
H.update_misc_effects()
/obj/item/stamp/suicide_act(mob/user)
user.visible_message("<span class='suicide'>[user] stamps 'VOID' on [user.p_their()] forehead, then promptly falls over, dead.</span>")
@@ -76,103 +21,74 @@
name = "Quartermaster's rubber stamp"
icon_state = "stamp-qm"
item_color = "qm"
stamp_color = "#B88F3D"
stamp_description = "Quartermaster approved"
/obj/item/stamp/law
name = "Law office's rubber stamp"
icon_state = "stamp-law"
item_color = "cargo"
stamp_color = "#CC0000"
stamp_description = "Justice Department approved"
/obj/item/stamp/captain
name = "captain's rubber stamp"
icon_state = "stamp-cap"
item_color = "captain"
stamp_color = "#1F66A0"
stamp_description = "Captain approved"
/obj/item/stamp/hop
name = "head of personnel's rubber stamp"
icon_state = "stamp-hop"
item_color = "hop"
stamp_color = "#2A79AD"
stamp_description = "Head of Personnel approved"
/obj/item/stamp/hos
name = "head of security's rubber stamp"
icon_state = "stamp-hos"
item_color = "hosred"
stamp_color = "#BA0505"
stamp_description = "Head of Security approved"
/obj/item/stamp/ce
name = "chief engineer's rubber stamp"
icon_state = "stamp-ce"
item_color = "chief"
stamp_color = "#CC9900"
stamp_description = "Chief Engineer approved"
/obj/item/stamp/rd
name = "research director's rubber stamp"
icon_state = "stamp-rd"
item_color = "director"
stamp_color = "#D9D9D9"
stamp_description = "Research Director approved"
/obj/item/stamp/cmo
name = "chief medical officer's rubber stamp"
icon_state = "stamp-cmo"
item_color = "medical"
stamp_color = "#48FEFE"
stamp_description = "Chief Medical Officer approved"
/obj/item/stamp/granted
name = "\improper GRANTED rubber stamp"
icon_state = "stamp-ok"
item_color = "qm"
stamp_color = "#339900"
stamp_description = "GRANTED"
/obj/item/stamp/denied
name = "\improper DENIED rubber stamp"
icon_state = "stamp-deny"
item_color = "redcoat"
stamp_color = "#990000"
stamp_description = "DENIED"
/obj/item/stamp/clown
name = "clown's rubber stamp"
icon_state = "stamp-clown"
item_color = "clown"
stamp_color = "#FF66CC"
stamp_description = "HONK"
/obj/item/stamp/rep
name = "Nanotrasen Representative's rubber stamp"
icon_state = "stamp-rep"
item_color = "rep"
stamp_color = "#C1B640"
stamp_description = "Nanotrasen Representative approved"
/obj/item/stamp/magistrate
name = "Magistrate's rubber stamp"
icon_state = "stamp-magistrate"
item_color = "rep"
stamp_color = "#C1B640"
stamp_description = "Magistrate approved"
/obj/item/stamp/centcom
name = "Central Command rubber stamp"
icon_state = "stamp-cent"
item_color = "centcom"
stamp_color = "#009900"
stamp_description = "Central Command approved"
/obj/item/stamp/syndicate
name = "suspicious rubber stamp"
icon_state = "stamp-syndicate"
item_color = "syndicate"
stamp_color = "#7B0101"
stamp_description = "Syndicate approved"