mirror of
https://github.com/ParadiseSS13/Paradise.git
synced 2025-12-28 11:11:52 +00:00
Xenobio Additions
This commit is contained in:
@@ -223,6 +223,49 @@
|
||||
being_used = 0
|
||||
..()
|
||||
|
||||
/obj/item/slimepotion/transference
|
||||
name = "consciousness transference potion"
|
||||
desc = "A strange slime-based chemical that, when used, allows the user to transfer their consciousness to a lesser being."
|
||||
icon = 'icons/obj/chemical.dmi'
|
||||
icon_state = "bottle6"
|
||||
origin_tech = "biotech=6"
|
||||
var/prompted = 0
|
||||
var/animal_type = SENTIENCE_ORGANIC
|
||||
|
||||
/obj/item/slimepotion/transference/afterattack(mob/living/M, mob/user)
|
||||
if(prompted || !ismob(M))
|
||||
return
|
||||
if(!isanimal(M) || M.ckey) //much like sentience, these will not work on something that is already player controlled
|
||||
user << "<span class='warning'>[M] already has a higher consciousness!</span>"
|
||||
return ..()
|
||||
if(M.stat)
|
||||
user << "<span class='warning'>[M] is dead!</span>"
|
||||
return ..()
|
||||
var/mob/living/simple_animal/SM = M
|
||||
if(SM.sentience_type != animal_type)
|
||||
user << "<span class='warning'>You cannot transfer your consciousness to [SM].</span>" //no controlling machines
|
||||
return ..()
|
||||
if(jobban_isbanned(user, ROLE_SENTIENT))
|
||||
user << "<span class='warning'>Your mind goes blank as you attempt to use the potion.</span>"
|
||||
return
|
||||
|
||||
prompted = 1
|
||||
if(alert("This will permanently transfer your consciousness to [SM]. Are you sure you want to do this?",,"Yes","No")=="No")
|
||||
prompted = 0
|
||||
return
|
||||
|
||||
user << "<span class='notice'>You drink the potion then place your hands on [SM]...</span>"
|
||||
|
||||
|
||||
user.mind.transfer_to(SM)
|
||||
SM.universal_speak = 1
|
||||
SM.faction = user.faction
|
||||
SM.sentience_act() //Same deal here as with sentience
|
||||
user.death()
|
||||
SM << "<span class='notice'>In a quick flash, you feel your consciousness flow into [SM]!</span>"
|
||||
SM << "<span class='warning'>You are now [SM]. Your allegiances, alliances, and roles are still the same as they were prior to consciousness transfer!</span>"
|
||||
SM.name = "[SM.name] as [user.real_name]"
|
||||
qdel(src)
|
||||
|
||||
/obj/item/slimepotion/steroid
|
||||
name = "slime steroid"
|
||||
|
||||
Reference in New Issue
Block a user