Skip to content

Commit

Permalink
Fixes sentient slimes getting taken over by AI when splitting/vaccumed (
Browse files Browse the repository at this point in the history
  • Loading branch information
Absolucy authored Oct 3, 2024
1 parent a662bd7 commit 6eb912a
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 5 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -40,7 +40,7 @@
for(var/mob/living/dude as anything in stacked_mobs)
if(isbasicmob(dude))
var/mob/living/basic/basic = dude
basic.ai_controller?.set_ai_status(AI_STATUS_ON)
basic.ai_controller?.reset_ai_status()
REMOVE_TRAIT(dude, TRAIT_IN_STACK, "mob_stack")
UnregisterSignal(dude, COMSIG_ATOM_JOIN_STACK)
UnregisterSignal(dude, COMSIG_LIVING_SET_BUCKLED)
Expand Down
3 changes: 1 addition & 2 deletions monkestation/code/modules/slimecore/items/vacuum_pack.dm
Original file line number Diff line number Diff line change
Expand Up @@ -411,8 +411,7 @@
if(istype(spewed, /mob/living/basic/slime))
var/mob/living/basic/slime/slime = spewed
slime.slime_flags &= ~STORED_SLIME
if(slime.ai_controller)
slime.ai_controller.set_ai_status(AI_STATUS_ON)
slime.ai_controller?.reset_ai_status()
if(VACUUM_PACK_UPGRADE_STASIS in pack.upgrades)
REMOVE_TRAIT(slime, TRAIT_SLIME_STASIS, "vacuum_pack_stasis")

Expand Down
4 changes: 2 additions & 2 deletions monkestation/code/modules/slimecore/mobs/_base_slime.dm
Original file line number Diff line number Diff line change
Expand Up @@ -360,7 +360,7 @@
SEND_SIGNAL(src, COMSIG_MOB_ADJUST_HUNGER, -200)

slime_flags &= ~SPLITTING_SLIME
ai_controller.set_ai_status(AI_STATUS_ON)
ai_controller.reset_ai_status()

var/mob/living/basic/slime/new_slime = new(loc, current_color.type, TRUE)
new_slime.mutation_chance = mutation_chance
Expand Down Expand Up @@ -412,7 +412,7 @@
change_color(mutating_into)

slime_flags &= ~MUTATING_SLIME
ai_controller.set_ai_status(AI_STATUS_ON)
ai_controller.reset_ai_status()


/mob/living/basic/slime/proc/pick_mutation(random = FALSE)
Expand Down

0 comments on commit 6eb912a

Please sign in to comment.