/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:
[S.slime_color] [S.is_adult ? "adult" : "baby"] slime
Health: [S.health]
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.
Extract potential: [S.cores]
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")