mirror of
https://github.com/ParadiseSS13/Paradise.git
synced 2026-08-22 03:27:05 +01:00
General Bugfixes + Closing Issues (#15936)
* Prevents Species Action Icons from Duplicating * Spelling Correction for Igniter * Guardian Fixes * Photocopier bugfix * another spelling fix Co-authored-by: Sean Williams <12197162+S34NW@users.noreply.github.com> * removes redundant item_state declaration Co-authored-by: Sean Williams <12197162+S34NW@users.noreply.github.com>
This commit is contained in:
co-authored by
Sean Williams
parent
64a0b9e83d
commit
a598acf159
@@ -1,6 +1,6 @@
|
||||
/obj/item/assembly/igniter
|
||||
name = "igniter"
|
||||
desc = "A small electronic device able to ignite combustable substances."
|
||||
desc = "A small electronic device able to ignite combustible substances."
|
||||
icon_state = "igniter"
|
||||
materials = list(MAT_METAL=500, MAT_GLASS=50)
|
||||
origin_tech = "magnets=1"
|
||||
|
||||
@@ -1163,6 +1163,10 @@
|
||||
set src in view(1)
|
||||
var/self = 0
|
||||
|
||||
if (!ishuman(src))
|
||||
to_chat(usr, "<span class='notice'>You do not know how to check someone's pulse!</span>")
|
||||
return
|
||||
|
||||
if(usr.stat == 1 || usr.restrained() || !isliving(usr) || usr.is_dead()) return
|
||||
|
||||
if(usr == src)
|
||||
@@ -1192,8 +1196,10 @@
|
||||
|
||||
/mob/living/carbon/human/proc/change_dna(datum/dna/new_dna, include_species_change = FALSE, keep_flavor_text = FALSE)
|
||||
if(include_species_change)
|
||||
set_species(new_dna.species.type, retain_damage = TRUE)
|
||||
set_species(new_dna.species.type, retain_damage = TRUE, transformation = TRUE)
|
||||
dna = new_dna.Clone()
|
||||
if (include_species_change) //We have to call this after new_dna.Clone() so that species actions don't get overwritten
|
||||
dna.species.on_species_gain(src)
|
||||
real_name = new_dna.real_name
|
||||
domutcheck(src, MUTCHK_FORCED) //Ensures species that get powers by the species proc handle_dna keep them
|
||||
if(!keep_flavor_text)
|
||||
@@ -1205,7 +1211,7 @@
|
||||
sec_hud_set_ID()
|
||||
|
||||
|
||||
/mob/living/carbon/human/proc/set_species(datum/species/new_species, default_colour, delay_icon_update = FALSE, skip_same_check = FALSE, retain_damage = FALSE)
|
||||
/mob/living/carbon/human/proc/set_species(datum/species/new_species, default_colour, delay_icon_update = FALSE, skip_same_check = FALSE, retain_damage = FALSE, transformation = FALSE)
|
||||
if(!skip_same_check)
|
||||
if(dna.species.name == initial(new_species.name))
|
||||
return
|
||||
@@ -1362,7 +1368,8 @@
|
||||
|
||||
dna.real_name = real_name
|
||||
|
||||
dna.species.on_species_gain(src)
|
||||
if (!transformation) //Distinguish between creating a mob and switching species
|
||||
dna.species.on_species_gain(src)
|
||||
|
||||
update_sight()
|
||||
|
||||
|
||||
@@ -113,6 +113,7 @@
|
||||
updateUsrDialog()
|
||||
else if(check_ass())
|
||||
to_chat(ass, "<span class='notice'>You feel a slight pressure on your ass.</span>")
|
||||
atom_say("Attention: Unable to remove large object!")
|
||||
updateUsrDialog()
|
||||
else if(href_list["min"])
|
||||
if(copies > 1)
|
||||
@@ -240,6 +241,7 @@
|
||||
var/icon/temp_img
|
||||
if(!check_ass()) //You have to be sitting on the copier and either be a xeno or a human without clothes on.
|
||||
return
|
||||
atom_say("Attention: Posterior Placed on Printing Plaque!")
|
||||
if(emagged)
|
||||
if(ishuman(ass))
|
||||
var/mob/living/carbon/human/H = ass
|
||||
@@ -314,7 +316,6 @@
|
||||
toner = 0
|
||||
|
||||
/obj/machinery/photocopier/MouseDrop_T(mob/target, mob/user)
|
||||
check_ass() //Just to make sure that you can re-drag somebody onto it after they moved off.
|
||||
if(!istype(target) || target.buckled || get_dist(user, src) > 1 || get_dist(user, target) > 1 || user.stat || istype(user, /mob/living/silicon/ai) || target == ass)
|
||||
return
|
||||
src.add_fingerprint(user)
|
||||
@@ -332,7 +333,7 @@
|
||||
copyitem = null
|
||||
updateUsrDialog()
|
||||
|
||||
/obj/machinery/photocopier/proc/check_ass() //I'm not sure wether I made this proc because it's good form or because of the name.
|
||||
/obj/machinery/photocopier/proc/check_ass() //I'm not sure whether I made this proc because it's good form or because of the name.
|
||||
if(!ass)
|
||||
return 0
|
||||
if(ass.loc != src.loc)
|
||||
@@ -341,7 +342,6 @@
|
||||
return 0
|
||||
else
|
||||
playsound(loc, 'sound/machines/ping.ogg', 50, 0)
|
||||
atom_say("Attention: Posterior Placed on Printing Plaque!")
|
||||
return 1
|
||||
|
||||
/obj/machinery/photocopier/emag_act(user as mob)
|
||||
|
||||
Reference in New Issue
Block a user