mirror of
https://github.com/CHOMPStation2/CHOMPStation2.git
synced 2025-12-09 16:12:17 +00:00
Co-authored-by: Kashargul <144968721+Kashargul@users.noreply.github.com> Co-authored-by: Kashargul <KashL@t-online.de>
46 lines
1.9 KiB
Plaintext
46 lines
1.9 KiB
Plaintext
/obj/item/slime_scanner
|
|
name = "slime scanner"
|
|
icon = 'icons/obj/device.dmi'
|
|
icon_state = "xenobio"
|
|
item_state = "xenobio"
|
|
origin_tech = list(TECH_BIO = 1)
|
|
w_class = ITEMSIZE_SMALL
|
|
throwforce = 0
|
|
throw_speed = 3
|
|
throw_range = 7
|
|
matter = list(MAT_STEEL = 30,MAT_GLASS = 20)
|
|
pickup_sound = 'sound/items/pickup/device.ogg'
|
|
drop_sound = 'sound/items/drop/device.ogg'
|
|
|
|
/obj/item/slime_scanner/attack(mob/living/M as mob, mob/living/user as mob)
|
|
if(!istype(M, /mob/living/simple_mob/slime/xenobio))
|
|
to_chat(user, span_infoplain(span_bold("This device can only scan lab-grown slimes!")))
|
|
return
|
|
var/mob/living/simple_mob/slime/xenobio/S = M
|
|
user.show_message("Slime scan results:<br>[S.slime_color] [S.is_adult ? "adult" : "baby"] slime<br>Health: [S.health]<br>Mutation Probability: [S.mutation_chance]")
|
|
|
|
var/list/mutations = list()
|
|
for(var/potential_color in S.slime_mutation)
|
|
var/mob/living/simple_mob/slime/xenobio/slime = potential_color
|
|
mutations.Add(initial(slime.slime_color))
|
|
user.show_message("Potental to mutate into [english_list(mutations)] colors.<br>Extract potential: [S.cores]<br>Nutrition: [S.nutrition]/[S.max_nutrition]")
|
|
|
|
if (S.nutrition < S.get_starve_nutrition())
|
|
user.show_message(span_warning("Warning: Subject is starving!"))
|
|
else if (S.nutrition < S.get_hunger_nutrition())
|
|
user.show_message(span_warning("Warning: Subject is hungry."))
|
|
user.show_message("Electric change strength: [S.power_charge]")
|
|
|
|
if(S.has_AI())
|
|
var/datum/ai_holder/simple_mob/xenobio_slime/AI = S.ai_holder
|
|
if(AI.resentment)
|
|
user.show_message(span_warning("Warning: Subject is harboring resentment."))
|
|
if(AI.rabid)
|
|
user.show_message(span_danger("Subject is enraged and extremely dangerous!"))
|
|
if(S.harmless)
|
|
user.show_message("Subject has been pacified.")
|
|
if(S.unity)
|
|
user.show_message("Subject is friendly to other slime colors.")
|
|
|
|
user.show_message("Growth progress: [S.amount_grown]/10")
|