diff --git a/code/datums/soullink.dm b/code/datums/soullink.dm index de73a8e74c6..b5520b50db5 100644 --- a/code/datums/soullink.dm +++ b/code/datums/soullink.dm @@ -152,7 +152,7 @@ var/mob/living/L = l if(L.stat != DEAD && L.mind) L.mind.transfer_to(soulowner) - soulowner.revive(TRUE, TRUE) + soulowner.revive(full_heal = TRUE, admin_revive = TRUE) L.death(FALSE) //Lose your claim to the throne! diff --git a/code/game/machinery/computer/aifixer.dm b/code/game/machinery/computer/aifixer.dm index 21e2a4c55dd..74e4b5f81c0 100644 --- a/code/game/machinery/computer/aifixer.dm +++ b/code/game/machinery/computer/aifixer.dm @@ -81,7 +81,7 @@ occupier.adjustBruteLoss(-1, 0) occupier.updatehealth() if(occupier.health >= 0 && occupier.stat == DEAD) - occupier.revive() + occupier.revive(full_heal = FALSE, admin_revive = FALSE) return occupier.health < 100 /obj/machinery/computer/aifixer/process() diff --git a/code/game/objects/effects/mines.dm b/code/game/objects/effects/mines.dm index 0f93cf16280..32998fbfd9e 100644 --- a/code/game/objects/effects/mines.dm +++ b/code/game/objects/effects/mines.dm @@ -160,7 +160,7 @@ if(!victim.client || !istype(victim)) return to_chat(victim, "You feel great!") - victim.revive(full_heal = 1, admin_revive = 1) + victim.revive(full_heal = TRUE, admin_revive = TRUE) /obj/effect/mine/pickup/speed name = "Yellow Orb" diff --git a/code/game/objects/items/defib.dm b/code/game/objects/items/defib.dm index cd6196e75a6..6cdc4ff5c01 100644 --- a/code/game/objects/items/defib.dm +++ b/code/game/objects/items/defib.dm @@ -627,7 +627,7 @@ user.visible_message("[req_defib ? "[defib]" : "[src]"] pings: Resuscitation successful.") playsound(src, 'sound/machines/defib_success.ogg', 50, FALSE) H.set_heartattack(FALSE) - H.revive() + H.revive(full_heal = FALSE, admin_revive = FALSE) H.emote("gasp") H.Jitter(100) SEND_SIGNAL(H, COMSIG_LIVING_MINOR_SHOCK) diff --git a/code/game/objects/items/robot/robot_upgrades.dm b/code/game/objects/items/robot/robot_upgrades.dm index 558853340ce..bbe8acd6e92 100644 --- a/code/game/objects/items/robot/robot_upgrades.dm +++ b/code/game/objects/items/robot/robot_upgrades.dm @@ -63,7 +63,7 @@ R.mind.grab_ghost() playsound(loc, 'sound/voice/liveagain.ogg', 75, TRUE) - R.revive() + R.revive(full_heal = FALSE, admin_revive = FALSE) /obj/item/borg/upgrade/disablercooler name = "cyborg rapid disabler cooling module" diff --git a/code/game/objects/items/weaponry.dm b/code/game/objects/items/weaponry.dm index 565c768f900..9b1e07ac2c2 100644 --- a/code/game/objects/items/weaponry.dm +++ b/code/game/objects/items/weaponry.dm @@ -131,7 +131,7 @@ for further reading, please see: https://github.com/tgstation/tgstation/pull/301 /obj/item/claymore/highlander/attack(mob/living/target, mob/living/user) . = ..() if(!QDELETED(target) && iscarbon(target) && target.stat == DEAD && target.mind && target.mind.special_role == "highlander") - user.fully_heal() //STEAL THE LIFE OF OUR FALLEN FOES + user.fully_heal(admin_revive = FALSE) //STEAL THE LIFE OF OUR FALLEN FOES add_notch(user) target.visible_message("[target] crumbles to dust beneath [user]'s blows!", "As you fall, your body crumbles to dust!") target.dust() diff --git a/code/game/objects/structures/life_candle.dm b/code/game/objects/structures/life_candle.dm index 247e03f7f02..999d1d78394 100644 --- a/code/game/objects/structures/life_candle.dm +++ b/code/game/objects/structures/life_candle.dm @@ -85,7 +85,7 @@ mind.transfer_to(body) else body.forceMove(T) - body.revive(1,1) + body.revive(full_heal = TRUE, admin_revive = TRUE) mind.grab_ghost(TRUE) body.flash_act() diff --git a/code/modules/admin/topic.dm b/code/modules/admin/topic.dm index 31d8e0755e3..c43e464bb41 100644 --- a/code/modules/admin/topic.dm +++ b/code/modules/admin/topic.dm @@ -1130,7 +1130,7 @@ to_chat(usr, "This can only be used on instances of type /mob/living.") return - L.revive(full_heal = 1, admin_revive = 1) + L.revive(full_heal = TRUE, admin_revive = TRUE) message_admins("Admin [key_name_admin(usr)] healed / revived [key_name_admin(L)]!") log_admin("[key_name(usr)] healed / Revived [key_name(L)].") diff --git a/code/modules/admin/verbs/randomverbs.dm b/code/modules/admin/verbs/randomverbs.dm index b4d02d7ccf1..b1830ba3873 100644 --- a/code/modules/admin/verbs/randomverbs.dm +++ b/code/modules/admin/verbs/randomverbs.dm @@ -537,7 +537,7 @@ Traitors and the like can also be revived with the previous role mostly intact. if(!istype(M)) alert("Cannot revive a ghost") return - M.revive(full_heal = 1, admin_revive = 1) + M.revive(full_heal = TRUE, admin_revive = TRUE) log_admin("[key_name(usr)] healed / revived [key_name(M)]") var/msg = "Admin [key_name_admin(usr)] healed / revived [ADMIN_LOOKUPFLW(M)]!" diff --git a/code/modules/antagonists/blob/overmind.dm b/code/modules/antagonists/blob/overmind.dm index d573672af4d..9f25e7649a7 100644 --- a/code/modules/antagonists/blob/overmind.dm +++ b/code/modules/antagonists/blob/overmind.dm @@ -140,7 +140,7 @@ GLOBAL_LIST_EMPTY(blob_nodes) L.death() new/mob/living/simple_animal/hostile/blob/blobspore(T) else - L.fully_heal() + L.fully_heal(admin_revive = FALSE) for(var/area/A in GLOB.sortedAreas) if(!(A.type in GLOB.the_station_areas)) diff --git a/code/modules/antagonists/changeling/powers/fakedeath.dm b/code/modules/antagonists/changeling/powers/fakedeath.dm index 9b7d387a5d6..f4c1a1f23f2 100644 --- a/code/modules/antagonists/changeling/powers/fakedeath.dm +++ b/code/modules/antagonists/changeling/powers/fakedeath.dm @@ -33,7 +33,7 @@ if(!user || !istype(user)) return user.cure_fakedeath("changeling") - user.revive(full_heal = TRUE) + user.revive(full_heal = TRUE, admin_revive = FALSE) var/list/missing = user.get_missing_limbs() missing -= BODY_ZONE_HEAD // headless changelings are funny if(missing.len) diff --git a/code/modules/antagonists/cult/runes.dm b/code/modules/antagonists/cult/runes.dm index a211bf2033b..98bcc527535 100644 --- a/code/modules/antagonists/cult/runes.dm +++ b/code/modules/antagonists/cult/runes.dm @@ -562,7 +562,7 @@ structure_check() searches for nearby cultist structures required for the invoca fail_invoke() return revives_used += SOULS_TO_REVIVE - mob_to_revive.revive(1, 1) //This does remove traits and such, but the rune might actually see some use because of it! + mob_to_revive.revive(full_heal = TRUE, admin_revive = TRUE) //This does remove traits and such, but the rune might actually see some use because of it! mob_to_revive.grab_ghost() if(!mob_to_revive.client || mob_to_revive.client.is_afk()) set waitfor = FALSE diff --git a/code/modules/antagonists/devil/devil.dm b/code/modules/antagonists/devil/devil.dm index 89593fb4b43..ac6991829e9 100644 --- a/code/modules/antagonists/devil/devil.dm +++ b/code/modules/antagonists/devil/devil.dm @@ -427,13 +427,13 @@ GLOBAL_LIST_INIT(devil_suffix, list(" the Red", " the Soulless", " the Master", reviveNumber += LOSS_PER_DEATH update_hud() if(body) - body.revive(TRUE, TRUE) //Adminrevive also recovers organs, preventing someone from resurrecting without a heart. + body.revive(full_heal = TRUE, admin_revive = TRUE) //Adminrevive also recovers organs, preventing someone from resurrecting without a heart. if(istype(body.loc, /obj/effect/dummy/phased_mob/slaughter/)) body.forceMove(get_turf(body))//Fixes dying while jaunted leaving you permajaunted. if(istype(body, /mob/living/carbon/true_devil)) var/mob/living/carbon/true_devil/D = body if(D.oldform) - D.oldform.revive(1,0) // Heal the old body too, so the devil doesn't resurrect, then immediately regress into a dead body. + D.oldform.revive(full_heal = TRUE, admin_revive = FALSE) // Heal the old body too, so the devil doesn't resurrect, then immediately regress into a dead body. if(body.stat == DEAD) create_new_body() else diff --git a/code/modules/antagonists/wizard/equipment/artefact.dm b/code/modules/antagonists/wizard/equipment/artefact.dm index cae362e7cf5..f541d185460 100644 --- a/code/modules/antagonists/wizard/equipment/artefact.dm +++ b/code/modules/antagonists/wizard/equipment/artefact.dm @@ -233,7 +233,7 @@ return M.set_species(/datum/species/skeleton, icon_update=0) - M.revive(full_heal = 1, admin_revive = 1) + M.revive(full_heal = TRUE, admin_revive = TRUE) spooky_scaries |= M to_chat(M, "You have been revived by [user.real_name]!") to_chat(M, "[user.p_theyre(TRUE)] your master now, assist [user.p_them()] even if it costs you your new life!") diff --git a/code/modules/awaymissions/mission_code/Academy.dm b/code/modules/awaymissions/mission_code/Academy.dm index 31b094fa8ed..9a3b832b77c 100644 --- a/code/modules/awaymissions/mission_code/Academy.dm +++ b/code/modules/awaymissions/mission_code/Academy.dm @@ -273,7 +273,7 @@ if(12) //Healing T.visible_message("[user] looks very healthy!") - user.revive(full_heal = 1, admin_revive = 1) + user.revive(full_heal = TRUE, admin_revive = TRUE) if(13) //Mad Dosh T.visible_message("Mad dosh shoots out of [src]!") diff --git a/code/modules/mining/equipment/lazarus_injector.dm b/code/modules/mining/equipment/lazarus_injector.dm index 4b77f85d3d5..b9c37e9b2d3 100644 --- a/code/modules/mining/equipment/lazarus_injector.dm +++ b/code/modules/mining/equipment/lazarus_injector.dm @@ -27,7 +27,7 @@ return if(M.stat == DEAD) M.faction = list("neutral") - M.revive(full_heal = 1, admin_revive = 1) + M.revive(full_heal = TRUE, admin_revive = TRUE) if(ishostile(target)) var/mob/living/simple_animal/hostile/H = M if(malfunctioning) diff --git a/code/modules/mining/equipment/regenerative_core.dm b/code/modules/mining/equipment/regenerative_core.dm index 496bd87ecc2..e069bfff8c3 100644 --- a/code/modules/mining/equipment/regenerative_core.dm +++ b/code/modules/mining/equipment/regenerative_core.dm @@ -60,7 +60,7 @@ if(inert) to_chat(owner, "[src] breaks down as it tries to activate.") else - owner.revive(full_heal = 1) + owner.revive(full_heal = TRUE, admin_revive = FALSE) qdel(src) /obj/item/organ/regenerative_core/on_life() diff --git a/code/modules/mob/living/bloodcrawl.dm b/code/modules/mob/living/bloodcrawl.dm index 78648f6a2aa..7df2586ec45 100644 --- a/code/modules/mob/living/bloodcrawl.dm +++ b/code/modules/mob/living/bloodcrawl.dm @@ -126,7 +126,7 @@ return TRUE to_chat(src, "You devour [victim]. Your health is fully restored.") - revive(full_heal = TRUE) + revive(full_heal = TRUE, admin_revive = FALSE) // No defib possible after laughter victim.adjustBruteLoss(1000) diff --git a/code/modules/mob/living/carbon/human/species_types/golems.dm b/code/modules/mob/living/carbon/human/species_types/golems.dm index d76641c9742..7da34d1fafa 100644 --- a/code/modules/mob/living/carbon/human/species_types/golems.dm +++ b/code/modules/mob/living/carbon/human/species_types/golems.dm @@ -717,7 +717,7 @@ new /obj/effect/decal/cleanable/ash(get_turf(src)) ..() -/obj/structure/cloth_pile/proc/revive() +/obj/structure/cloth_pile/proc/revive(full_heal = FALSE, admin_revive = FALSE) if(QDELETED(src) || QDELETED(cloth_golem)) //QDELETED also checks for null, so if no cloth golem is set this won't runtime return if(cloth_golem.suiciding || cloth_golem.hellbound) @@ -1074,7 +1074,7 @@ . = ..() C.equip_to_slot_or_del(new /obj/item/clothing/head/that (), SLOT_HEAD) C.equip_to_slot_or_del(new /obj/item/clothing/glasses/monocle (), SLOT_GLASSES) - C.revive(full_heal = TRUE) + C.revive(full_heal = TRUE, admin_revive = FALSE) SEND_SOUND(C, sound('sound/misc/capitialism.ogg')) C.AddSpell(new /obj/effect/proc_holder/spell/aoe_turf/knock ()) @@ -1116,7 +1116,7 @@ /datum/species/golem/soviet/on_species_gain(mob/living/carbon/C, datum/species/old_species) . = ..() C.equip_to_slot_or_del(new /obj/item/clothing/head/ushanka (), SLOT_HEAD) - C.revive(full_heal = TRUE) + C.revive(full_heal = TRUE, admin_revive = FALSE) SEND_SOUND(C, sound('sound/misc/Russian_Anthem_chorus.ogg')) C.AddSpell(new /obj/effect/proc_holder/spell/aoe_turf/knock ()) diff --git a/code/modules/mob/living/carbon/human/species_types/shadowpeople.dm b/code/modules/mob/living/carbon/human/species_types/shadowpeople.dm index 1d0e80b6ed8..41eedbf388d 100644 --- a/code/modules/mob/living/carbon/human/species_types/shadowpeople.dm +++ b/code/modules/mob/living/carbon/human/species_types/shadowpeople.dm @@ -140,7 +140,7 @@ respawn_progress++ playsound(owner,'sound/effects/singlebeat.ogg',40,TRUE) if(respawn_progress >= HEART_RESPAWN_THRESHHOLD) - owner.revive(full_heal = TRUE) + owner.revive(full_heal = TRUE, admin_revive = FALSE) if(!(owner.dna.species.id == "shadow" || owner.dna.species.id == "nightmare")) var/mob/living/carbon/old_owner = owner Remove(owner, HEART_SPECIAL_SHADOWIFY) diff --git a/code/modules/mob/living/living.dm b/code/modules/mob/living/living.dm index 1c0048a87a6..7faa6904d60 100644 --- a/code/modules/mob/living/living.dm +++ b/code/modules/mob/living/living.dm @@ -502,11 +502,11 @@ med_hud_set_health() med_hud_set_status() -//proc used to ressuscitate a mob +//Proc used to resuscitate a mob, for full_heal see fully_heal() /mob/living/proc/revive(full_heal = FALSE, admin_revive = FALSE) SEND_SIGNAL(src, COMSIG_LIVING_REVIVE, full_heal, admin_revive) if(full_heal) - fully_heal(admin_revive) + fully_heal(admin_revive = TRUE) if(stat == DEAD && can_be_revived()) //in some cases you can't revive (e.g. no brain) GLOB.dead_mob_list -= src GLOB.alive_mob_list += src @@ -517,7 +517,7 @@ update_sight() clear_alert("not_enough_oxy") reload_fullscreen() - . = 1 + . = TRUE if(mind) for(var/S in mind.spell_list) var/obj/effect/proc_holder/spell/spell = S @@ -543,7 +543,8 @@ //proc used to completely heal a mob. -/mob/living/proc/fully_heal(admin_revive = 0) +//admin_revive = TRUE is used in other procs, for example mob/living/carbon/fully_heal() +/mob/living/proc/fully_heal(admin_revive = FALSE) restore_blood() setToxLoss(0, 0) //zero as second argument not automatically call updatehealth(). setOxyLoss(0, 0) @@ -574,9 +575,9 @@ //proc called by revive(), to check if we can actually ressuscitate the mob (we don't want to revive him and have him instantly die again) /mob/living/proc/can_be_revived() - . = 1 + . = TRUE if(health <= HEALTH_THRESHOLD_DEAD) - return 0 + return FALSE /mob/living/proc/update_damage_overlays() return @@ -593,7 +594,7 @@ if (!buckled.anchored) return buckled.Move(newloc, direct) else - return 0 + return FALSE var/old_direction = dir var/turf/T = loc diff --git a/code/modules/mob/living/silicon/ai/ai.dm b/code/modules/mob/living/silicon/ai/ai.dm index 46f8e8b875e..c5c3f135f7c 100644 --- a/code/modules/mob/living/silicon/ai/ai.dm +++ b/code/modules/mob/living/silicon/ai/ai.dm @@ -922,7 +922,7 @@ else clear_fullscreen("remote_view", 0) -/mob/living/silicon/ai/revive(full_heal = 0, admin_revive = 0) +/mob/living/silicon/ai/revive(full_heal = FALSE, admin_revive = FALSE) . = ..() if(.) //successfully ressuscitated from death set_core_display_icon(display_icon_override) diff --git a/code/modules/mob/living/silicon/robot/robot.dm b/code/modules/mob/living/silicon/robot/robot.dm index 45e39cab415..aad977793b5 100644 --- a/code/modules/mob/living/silicon/robot/robot.dm +++ b/code/modules/mob/living/silicon/robot/robot.dm @@ -960,7 +960,7 @@ diag_hud_set_aishell() update_health_hud() -/mob/living/silicon/robot/revive(full_heal = 0, admin_revive = 0) +/mob/living/silicon/robot/revive(full_heal = FALSE, admin_revive = FALSE) if(..()) //successfully ressuscitated from death if(!QDELETED(builtInCamera) && !wires.is_cut(WIRE_CAMERA)) builtInCamera.toggle_cam(src,0) @@ -968,7 +968,7 @@ if(admin_revive) locked = TRUE notify_ai(NEW_BORG) - . = 1 + . = TRUE /mob/living/silicon/robot/fully_replace_character_name(oldname, newname) ..() diff --git a/code/modules/mob/living/simple_animal/bot/bot.dm b/code/modules/mob/living/simple_animal/bot/bot.dm index c71c920d076..eaa35c5a438 100644 --- a/code/modules/mob/living/simple_animal/bot/bot.dm +++ b/code/modules/mob/living/simple_animal/bot/bot.dm @@ -945,10 +945,10 @@ Pass a positive integer as an argument to override a bot's default speed. . = ..() bot_reset() -/mob/living/simple_animal/bot/revive(full_heal = 0, admin_revive = 0) +/mob/living/simple_animal/bot/revive(full_heal = FALSE, admin_revive = FALSE) if(..()) update_icon() - . = 1 + . = TRUE /mob/living/simple_animal/bot/ghost() if(stat != DEAD) // Only ghost if we're doing this while alive, the pAI probably isn't dead yet. diff --git a/code/modules/mob/living/simple_animal/friendly/drone/interaction.dm b/code/modules/mob/living/simple_animal/friendly/drone/interaction.dm index b30e7f199f3..2f9ee0f80ed 100644 --- a/code/modules/mob/living/simple_animal/friendly/drone/interaction.dm +++ b/code/modules/mob/living/simple_animal/friendly/drone/interaction.dm @@ -68,7 +68,7 @@ return user.visible_message("[user] begins to reactivate [src].", "You begin to reactivate [src]...") if(do_after(user, 30, 1, target = src)) - revive(full_heal = 1) + revive(full_heal = TRUE, admin_revive = FALSE) user.visible_message("[user] reactivates [src]!", "You reactivate [src].") alert_drones(DRONE_NET_CONNECT) if(G) diff --git a/code/modules/mob/living/simple_animal/friendly/pet.dm b/code/modules/mob/living/simple_animal/friendly/pet.dm index ff80b7c534f..a595aa5e675 100644 --- a/code/modules/mob/living/simple_animal/friendly/pet.dm +++ b/code/modules/mob/living/simple_animal/friendly/pet.dm @@ -48,7 +48,7 @@ QDEL_NULL(pcollar) return ..() -/mob/living/simple_animal/pet/revive(full_heal = 0, admin_revive = 0) +/mob/living/simple_animal/pet/revive(full_heal = FALSE, admin_revive = FALSE) . = ..() if(.) if(collar_type) diff --git a/code/modules/mob/living/simple_animal/hostile/carp.dm b/code/modules/mob/living/simple_animal/hostile/carp.dm index d1e028b7966..f168cd372c1 100644 --- a/code/modules/mob/living/simple_animal/hostile/carp.dm +++ b/code/modules/mob/living/simple_animal/hostile/carp.dm @@ -103,7 +103,7 @@ return add_dead_carp_overlay() -/mob/living/simple_animal/hostile/carp/revive(full_heal = 0, admin_revive = 0) +/mob/living/simple_animal/hostile/carp/revive(full_heal = FALSE, admin_revive = FALSE) . = ..() if(.) regenerate_icons() diff --git a/code/modules/mob/living/simple_animal/hostile/megafauna/colossus.dm b/code/modules/mob/living/simple_animal/hostile/megafauna/colossus.dm index e51da845960..8dbba253840 100644 --- a/code/modules/mob/living/simple_animal/hostile/megafauna/colossus.dm +++ b/code/modules/mob/living/simple_animal/hostile/megafauna/colossus.dm @@ -588,7 +588,7 @@ Difficulty: Very Hard H.set_species(/datum/species/shadow, 1) H.regenerate_limbs() H.regenerate_organs() - H.revive(1,0) + H.revive(full_heal = TRUE, admin_revive = FALSE) ADD_TRAIT(H, TRAIT_BADDNA, MAGIC_TRAIT) //Free revives, but significantly limits your options for reviving except via the crystal H.grab_ghost(force = TRUE) diff --git a/code/modules/mob/living/simple_animal/hostile/mining_mobs/goliath.dm b/code/modules/mob/living/simple_animal/hostile/mining_mobs/goliath.dm index 86e5c7bf9c1..4cecdf37dee 100644 --- a/code/modules/mob/living/simple_animal/hostile/mining_mobs/goliath.dm +++ b/code/modules/mob/living/simple_animal/hostile/mining_mobs/goliath.dm @@ -49,7 +49,7 @@ return icon_state = pre_attack_icon -/mob/living/simple_animal/hostile/asteroid/goliath/revive(full_heal = 0, admin_revive = 0) +/mob/living/simple_animal/hostile/asteroid/goliath/revive(full_heal = FALSE, admin_revive = FALSE) if(..()) anchored = TRUE . = 1 diff --git a/code/modules/mob/living/simple_animal/hostile/mushroom.dm b/code/modules/mob/living/simple_animal/hostile/mushroom.dm index a038aae9570..387351d30e8 100644 --- a/code/modules/mob/living/simple_animal/hostile/mushroom.dm +++ b/code/modules/mob/living/simple_animal/hostile/mushroom.dm @@ -112,7 +112,7 @@ return TRUE return ..() -/mob/living/simple_animal/hostile/mushroom/revive(full_heal = 0, admin_revive = 0) +/mob/living/simple_animal/hostile/mushroom/revive(full_heal = FALSE, admin_revive = FALSE) if(..()) icon_state = "mushroom_color" UpdateMushroomCap() @@ -134,7 +134,7 @@ /mob/living/simple_animal/hostile/mushroom/proc/Recover() visible_message("[src] slowly begins to recover.") faint_ticker = 0 - revive(full_heal = 1) + revive(full_heal = TRUE, admin_revive = FALSE) UpdateMushroomCap() recovery_cooldown = 1 addtimer(CALLBACK(src, .proc/recovery_recharge), 300) diff --git a/code/modules/mob/living/simple_animal/simple_animal.dm b/code/modules/mob/living/simple_animal/simple_animal.dm index 2bfc50f2b58..75184e382ba 100644 --- a/code/modules/mob/living/simple_animal/simple_animal.dm +++ b/code/modules/mob/living/simple_animal/simple_animal.dm @@ -402,21 +402,21 @@ /mob/living/simple_animal/ExtinguishMob() return -/mob/living/simple_animal/revive(full_heal = 0, admin_revive = 0) +/mob/living/simple_animal/revive(full_heal = FALSE, admin_revive = FALSE) if(..()) //successfully ressuscitated from death icon = initial(icon) icon_state = icon_living density = initial(density) mobility_flags = MOBILITY_FLAGS_DEFAULT update_mobility() - . = 1 + . = TRUE setMovetype(initial(movement_type)) /mob/living/simple_animal/proc/make_babies() // <3 <3 <3 if(gender != FEMALE || stat || next_scan_time > world.time || !childtype || !animal_species || !SSticker.IsRoundInProgress()) return next_scan_time = world.time + 400 - var/alone = 1 + var/alone = TRUE var/mob/living/simple_animal/partner var/children = 0 for(var/mob/M in view(7, src)) diff --git a/code/modules/mob/living/simple_animal/slime/death.dm b/code/modules/mob/living/simple_animal/slime/death.dm index 74d68719b2c..66a71cced72 100644 --- a/code/modules/mob/living/simple_animal/slime/death.dm +++ b/code/modules/mob/living/simple_animal/slime/death.dm @@ -13,7 +13,7 @@ R.Remove(src) var/datum/action/innate/slime/evolve/E = new E.Grant(src) - revive(full_heal = 1) + revive(full_heal = TRUE, admin_revive = FALSE) regenerate_icons() update_name() return diff --git a/code/modules/modular_computers/file_system/programs/airestorer.dm b/code/modules/modular_computers/file_system/programs/airestorer.dm index 0575d7b635a..521bca05417 100644 --- a/code/modules/modular_computers/file_system/programs/airestorer.dm +++ b/code/modules/modular_computers/file_system/programs/airestorer.dm @@ -80,7 +80,7 @@ A.adjustBruteLoss(-1, 0) A.updatehealth() if(A.health >= 0 && A.stat == DEAD) - A.revive() + A.revive(full_heal = FALSE, admin_revive = FALSE) // Finished restoring if(A.health >= 100) ai_slot.locked = FALSE @@ -119,4 +119,4 @@ /datum/computer_file/program/aidiag/kill_program(forced) restoring = FALSE - return ..(forced) \ No newline at end of file + return ..(forced) diff --git a/code/modules/paperwork/contract.dm b/code/modules/paperwork/contract.dm index 69de51665f8..05dbdb64099 100644 --- a/code/modules/paperwork/contract.dm +++ b/code/modules/paperwork/contract.dm @@ -234,7 +234,7 @@ else response = tgalert(target.current, "A devil is offering you another chance at life, at the price of your soul, do you accept?", "Infernal Resurrection", "Yes", "No", "Never for this round", 0, 200) if(response == "Yes") - H.revive(1,0) + H.revive(full_heal = TRUE, admin_revive = FALSE) log_combat(user, H, "infernally revived via contract") user.visible_message("With a sudden blaze, [H] stands back up.") H.fakefire() diff --git a/code/modules/projectiles/guns/magic/wand.dm b/code/modules/projectiles/guns/magic/wand.dm index f20caee2232..ded80e060c7 100644 --- a/code/modules/projectiles/guns/magic/wand.dm +++ b/code/modules/projectiles/guns/magic/wand.dm @@ -74,13 +74,13 @@ if(isliving(user)) var/mob/living/L = user if(L.mob_biotypes & MOB_UNDEAD) //negative energy heals the undead - user.revive(full_heal = TRUE) + user.revive(full_heal = TRUE, admin_revive = FALSE) to_chat(user, "You feel great!") return to_chat(user, "You irradiate yourself with pure negative energy! \ [pick("Do not pass go. Do not collect 200 zorkmids.","You feel more confident in your spell casting skills.","You Die...","Do you want your possessions identified?")]\ ") - user.death(0) + user.death(FALSE) /obj/item/gun/magic/wand/death/debug desc = "In some obscure circles, this is known as the 'cloning tester's friend'." @@ -116,7 +116,7 @@ ") user.death(0) return - user.revive(full_heal = TRUE) + user.revive(full_heal = TRUE, admin_revive = FALSE) to_chat(user, "You feel great!") /obj/item/gun/magic/wand/resurrection/debug //for testing diff --git a/code/modules/projectiles/projectile/magic.dm b/code/modules/projectiles/projectile/magic.dm index a376b857e48..6ab6bfbf510 100644 --- a/code/modules/projectiles/projectile/magic.dm +++ b/code/modules/projectiles/projectile/magic.dm @@ -23,7 +23,7 @@ if(L.mob_biotypes & MOB_UNDEAD) //negative energy heals the undead if(L.hellbound && L.stat == DEAD) return BULLET_ACT_BLOCK - if(L.revive(full_heal = TRUE)) + if(L.revive(full_heal = TRUE, admin_revive = FALSE)) L.grab_ghost(force = TRUE) // even suicides to_chat(L, "You rise with a start, you're undead!!!") else if(L.stat != DEAD) @@ -51,7 +51,7 @@ else if(target.hellbound && target.stat == DEAD) return BULLET_ACT_BLOCK - if(target.revive(full_heal = TRUE)) + if(target.revive(full_heal = TRUE, admin_revive = FALSE)) target.grab_ghost(force = TRUE) // even suicides to_chat(target, "You rise with a start, you're alive!!!") else if(target.stat != DEAD) diff --git a/code/modules/reagents/chemistry/reagents/cat2_medicine_reagents.dm b/code/modules/reagents/chemistry/reagents/cat2_medicine_reagents.dm index 8f9517ab52f..360caa9cc6d 100644 --- a/code/modules/reagents/chemistry/reagents/cat2_medicine_reagents.dm +++ b/code/modules/reagents/chemistry/reagents/cat2_medicine_reagents.dm @@ -57,7 +57,7 @@ else //VICTORY ROYALE to_chat(M, "You win, and the malevolent spirits fade away as well as your wounds.") SSmedals.UnlockMedal(MEDAL_HELBITALJANKEN,M.client) - M.revive(TRUE) + M.revive(full_heal = TRUE, admin_revive = FALSE) M.reagents.del_reagent(type) return diff --git a/code/modules/reagents/chemistry/reagents/medicine_reagents.dm b/code/modules/reagents/chemistry/reagents/medicine_reagents.dm index 70a8fe5784c..6760fa84359 100644 --- a/code/modules/reagents/chemistry/reagents/medicine_reagents.dm +++ b/code/modules/reagents/chemistry/reagents/medicine_reagents.dm @@ -731,7 +731,7 @@ M.adjustOxyLoss(-20, 0) M.adjustToxLoss(-20, 0) M.updatehealth() - if(M.revive()) + if(M.revive(full_heal = FALSE, admin_revive = FALSE)) M.emote("gasp") log_combat(M, M, "revived", src) ..() diff --git a/code/modules/research/nanites/nanite_programs/healing.dm b/code/modules/research/nanites/nanite_programs/healing.dm index 812048cf2e6..2b3edc067e8 100644 --- a/code/modules/research/nanites/nanite_programs/healing.dm +++ b/code/modules/research/nanites/nanite_programs/healing.dm @@ -248,7 +248,7 @@ if(check_revivable()) playsound(C, 'sound/machines/defib_success.ogg', 50, FALSE) C.set_heartattack(FALSE) - C.revive() + C.revive(full_heal = FALSE, admin_revive = FALSE) C.emote("gasp") C.Jitter(100) SEND_SIGNAL(C, COMSIG_LIVING_MINOR_SHOCK) diff --git a/code/modules/research/xenobiology/crossbreeding/_potions.dm b/code/modules/research/xenobiology/crossbreeding/_potions.dm index a696d24bde5..20e74d4fa13 100644 --- a/code/modules/research/xenobiology/crossbreeding/_potions.dm +++ b/code/modules/research/xenobiology/crossbreeding/_potions.dm @@ -186,7 +186,7 @@ Slimecrossing Potions return if(M.maxHealth <= 0) to_chat(user, "The slime is too unstable to return!") - M.revive(full_heal = 1) + M.revive(full_heal = TRUE, admin_revive = FALSE) M.stat = CONSCIOUS M.visible_message("[M] is filled with renewed vigor and blinks awake!") M.maxHealth -= 10 //Revival isn't healthy. diff --git a/code/modules/research/xenobiology/crossbreeding/regenerative.dm b/code/modules/research/xenobiology/crossbreeding/regenerative.dm index 09e6014c5b3..921ca5adf33 100644 --- a/code/modules/research/xenobiology/crossbreeding/regenerative.dm +++ b/code/modules/research/xenobiology/crossbreeding/regenerative.dm @@ -29,7 +29,7 @@ Regenerative extracts: user.visible_message("[user] crushes the [src] over [user.p_them()]self, the milky goo quickly regenerating all of [user.p_their()] injuries!", "You squeeze the [src], and it bursts in your hand, splashing you with milky goo which quickly regenerates your injuries!") core_effect_before(H, user) - H.revive(full_heal = 1) + H.revive(full_heal = TRUE, admin_revive = FALSE) core_effect(H, user) playsound(target, 'sound/effects/splat.ogg', 40, TRUE) qdel(src) @@ -258,7 +258,7 @@ Regenerative extracts: if(target == user) return var/mob/living/U = user - U.revive(full_heal = 1) + U.revive(full_heal = TRUE, admin_revive = FALSE) to_chat(U, "Some of the milky goo sprays onto you, as well!") /obj/item/slimecross/regenerative/adamantine diff --git a/code/modules/spells/spell_types/shapeshift.dm b/code/modules/spells/spell_types/shapeshift.dm index c548d38fc9f..81d396580e5 100644 --- a/code/modules/spells/spell_types/shapeshift.dm +++ b/code/modules/spells/spell_types/shapeshift.dm @@ -157,7 +157,7 @@ if(death) stored.death() else if(source.convert_damage) - stored.revive(full_heal = TRUE) + stored.revive(full_heal = TRUE, admin_revive = FALSE) var/damage_percent = (shape.maxHealth - shape.health)/shape.maxHealth; var/damapply = stored.maxHealth * damage_percent diff --git a/code/modules/surgery/advanced/revival.dm b/code/modules/surgery/advanced/revival.dm index 8c10f1f15bb..c9258d216d3 100644 --- a/code/modules/surgery/advanced/revival.dm +++ b/code/modules/surgery/advanced/revival.dm @@ -64,7 +64,7 @@ playsound(get_turf(target), 'sound/magic/lightningbolt.ogg', 50, TRUE) target.adjustOxyLoss(-50, 0) target.updatehealth() - if(target.revive()) + if(target.revive(full_heal = FALSE, admin_revive = FALSE)) target.visible_message("...[target] wakes up, alive and aware!") target.emote("gasp") target.adjustOrganLoss(ORGAN_SLOT_BRAIN, 50, 199) //MAD SCIENCE diff --git a/code/modules/zombie/organs.dm b/code/modules/zombie/organs.dm index 58e511bf104..5047c641613 100644 --- a/code/modules/zombie/organs.dm +++ b/code/modules/zombie/organs.dm @@ -84,7 +84,7 @@ owner.setOxyLoss(0, 0) owner.heal_overall_damage(INFINITY, INFINITY, INFINITY, null, TRUE) - if(!owner.revive()) + if(!owner.revive(full_heal = FALSE, admin_revive = FALSE)) return owner.grab_ghost()