slime 
Vars | |
| Friends | A list of friends; they are not considered targets for feeding; passed down after splitting |
|---|---|
| Leader | AI variable - tells the slime to follow this person |
| Target | AI variable - tells the slime to hunt this down |
| amount_grown | Controls how long the slime has been overfed, if 10, grows or reproduces |
| applied_crossbreed_amount | How many extracts of the modtype have been applied. |
| attacked_stacks | Determines if it's been attacked recently. Can be any number, is a cooloff-ish variable |
| cores | The number of /obj/item/slime_extract's the slime has left inside |
| crossbreed_modification | What cross core modification is being used. |
| current_mood | The current mood of the slime, set randomly or through emotes (if sentient). |
| discipline_stacks | If a slime has been hit with a freeze gun, or wrestled/attacked off a human, they become disciplined and don't attack anymore for a while |
| docile | Is the slime docile? |
| force_stasis | Is the slime forced into being immobile, despite the gases present? |
| grow_nutrition | Above it we grow our amount_grown and our power_level, below it we can eat |
| holding_still | AI variable, cooloff-ish for how long it's going to stay in one place |
| hunger_nutrition | Below this, we feel hungry |
| is_attack_on_cooldown | Attack cooldown |
| life_stage | What is our current lifestage? |
| max_nutrition | The maximum amount of nutrition a slime can contain |
| mutation_chance | Chance of mutating, should be between 25 and 35 |
| mutator_used | Has a mutator been used on the slime? Only one is allowed |
| powerlevel | 1-10 controls how much electricity they are generating |
| rabid | If set to 1, the slime will attack and eat anything it comes in contact with |
| slime_ai_processing | Determines if the AI loop is activated |
| slime_id | Used to understand when someone is talking to it |
| speech_buffer | Last phrase said near it and person who said it |
| starve_nutrition | Below this, we feel starving |
| stunned_until | Stored the world time when the slime's stun wears off |
| target_patience | AI variable, cooloff-ish for how long it's going to follow its target |
Procs | |
| add_friendship | Alters the friendship value of the target |
| add_nutrition | Adds nutrition to the slime's nutrition level. Has a chance to increase its electric levels. |
| can_feed_on | Can the slime leech life energy from the target? |
| clear_friends | Removes everyone from the friend list |
| clear_memories_of | The passed source will be no longer be the slime's target, leader, or one of its friends |
| discipline_slime | Makes a slime not attack people for a while |
| handle_feeding | Handles the slime draining the target it is attached to |
| handle_mood | Handles slime mood |
| handle_nutrition | Handles the slime's nutirion level |
| handle_speech | Handles the slime understanding commends spoken to it |
| handle_targets | Handles selecting targets |
| process_slime_ai | the master AI process |
| random_colour | randomizes the colour of a slime |
| remove_friend | Removes someone from the friendlist |
| set_friends | Adds someone to the friend list |
| set_friendship | Sets the friendship value of the target |
| set_leader | Sets the person the slime is following around |
| set_life_stage | Changes the slime's current life state |
| set_slime_type | Sets the slime's type, name and its icons |
| set_target | Sets the slime's current attack target |
| slime_move | Makes a slime move away, used for a timed callback |
| slime_pre_attack | Handles slime attacking restrictions, and any extra effects that would trigger |
| spawn_corecross | Spawns a crossed slimecore item |
| start_feeding | The slime will start feeding on the target |
| stop_feeding | The slime will stop feeding |
| will_hunt | Check for being stopped from feeding and chasing |
Var Details
Friends 
A list of friends; they are not considered targets for feeding; passed down after splitting
Leader 
AI variable - tells the slime to follow this person
Target 
AI variable - tells the slime to hunt this down
amount_grown 
Controls how long the slime has been overfed, if 10, grows or reproduces
applied_crossbreed_amount 
How many extracts of the modtype have been applied.
attacked_stacks 
Determines if it's been attacked recently. Can be any number, is a cooloff-ish variable
cores 
The number of /obj/item/slime_extract's the slime has left inside
crossbreed_modification 
What cross core modification is being used.
current_mood 
The current mood of the slime, set randomly or through emotes (if sentient).
discipline_stacks 
If a slime has been hit with a freeze gun, or wrestled/attacked off a human, they become disciplined and don't attack anymore for a while
docile 
Is the slime docile?
force_stasis 
Is the slime forced into being immobile, despite the gases present?
grow_nutrition 
Above it we grow our amount_grown and our power_level, below it we can eat
holding_still 
AI variable, cooloff-ish for how long it's going to stay in one place
hunger_nutrition 
Below this, we feel hungry
is_attack_on_cooldown 
Attack cooldown
life_stage 
What is our current lifestage?
max_nutrition 
The maximum amount of nutrition a slime can contain
mutation_chance 
Chance of mutating, should be between 25 and 35
mutator_used 
Has a mutator been used on the slime? Only one is allowed
powerlevel 
1-10 controls how much electricity they are generating
rabid 
If set to 1, the slime will attack and eat anything it comes in contact with
slime_ai_processing 
Determines if the AI loop is activated
slime_id 
Used to understand when someone is talking to it
speech_buffer 
Last phrase said near it and person who said it
starve_nutrition 
Below this, we feel starving
stunned_until 
Stored the world time when the slime's stun wears off
target_patience 
AI variable, cooloff-ish for how long it's going to follow its target
Proc Details
add_friendship
Alters the friendship value of the target
add_nutrition
Adds nutrition to the slime's nutrition level. Has a chance to increase its electric levels.
can_feed_on
Can the slime leech life energy from the target?
clear_friends
Removes everyone from the friend list
clear_memories_of
The passed source will be no longer be the slime's target, leader, or one of its friends
discipline_slime
Makes a slime not attack people for a while
handle_feeding
Handles the slime draining the target it is attached to
handle_mood
Handles slime mood
handle_nutrition
Handles the slime's nutirion level
handle_speech
Handles the slime understanding commends spoken to it
handle_targets
Handles selecting targets
process_slime_ai
the master AI process
random_colour
randomizes the colour of a slime
remove_friend
Removes someone from the friendlist
set_friends
Adds someone to the friend list
set_friendship
Sets the friendship value of the target
set_leader
Sets the person the slime is following around
set_life_stage
Changes the slime's current life state
set_slime_type
Sets the slime's type, name and its icons
set_target
Sets the slime's current attack target
slime_move
Makes a slime move away, used for a timed callback
slime_pre_attack
Handles slime attacking restrictions, and any extra effects that would trigger
spawn_corecross
Spawns a crossed slimecore item
start_feeding
The slime will start feeding on the target
stop_feeding
The slime will stop feeding
will_hunt
Check for being stopped from feeding and chasing