From 82312c9e521e3d2204b727e916e93c7bce5df32e Mon Sep 17 00:00:00 2001 From: Fox-McCloud Date: Wed, 2 Dec 2015 18:14:01 -0500 Subject: [PATCH] Player Spider Fixes --- code/game/objects/effects/spiders.dm | 6 ++++++ code/modules/mob/living/carbon/metroid/metroid.dm | 3 +++ .../mob/living/simple_animal/hostile/giant_spider.dm | 1 + code/modules/mob/living/simple_animal/simple_animal.dm | 2 ++ 4 files changed, 12 insertions(+) diff --git a/code/game/objects/effects/spiders.dm b/code/game/objects/effects/spiders.dm index 2da886c1e88..b8a90698e2a 100644 --- a/code/game/objects/effects/spiders.dm +++ b/code/game/objects/effects/spiders.dm @@ -78,6 +78,7 @@ var/amount_grown = 0 var/player_spiders = 0 var/faction = list() + var/master_commander = null /obj/effect/spider/eggcluster/New() pixel_x = rand(3,-3) @@ -91,6 +92,7 @@ for(var/i=0, iYou are a spider who is loyal to [master_commander], obey [master_commander]'s every order and assist them in completing their goals at any cost." qdel(src) /obj/effect/decal/cleanable/spiderling_remains diff --git a/code/modules/mob/living/carbon/metroid/metroid.dm b/code/modules/mob/living/carbon/metroid/metroid.dm index 1aa9e0f6191..4abae727c73 100644 --- a/code/modules/mob/living/carbon/metroid/metroid.dm +++ b/code/modules/mob/living/carbon/metroid/metroid.dm @@ -828,6 +828,9 @@ mob/living/carbon/slime/var/temperature_resistance = T0C+75 M << "All at once it makes sense: you know what you are and who you are! Self awareness is yours!" M << "You are grateful to be self aware and owe [user] a great debt. Serve [user], and assist them in completing their goals at any cost." user << "[M] accepts the potion and suddenly becomes attentive and aware. It worked!" + if(isanimal(M)) + var/mob/living/simple_animal/S = M + S.master_commander = user qdel(src) else user << "[M] looks interested for a moment, but then looks back down. Maybe you should try again later." diff --git a/code/modules/mob/living/simple_animal/hostile/giant_spider.dm b/code/modules/mob/living/simple_animal/hostile/giant_spider.dm index e9479d229f8..2bd6a611b24 100644 --- a/code/modules/mob/living/simple_animal/hostile/giant_spider.dm +++ b/code/modules/mob/living/simple_animal/hostile/giant_spider.dm @@ -257,6 +257,7 @@ if(!E) var/obj/effect/spider/eggcluster/C = new /obj/effect/spider/eggcluster(src.loc) C.faction = faction + C.master_commander = master_commander if(ckey) C.player_spiders = 1 fed-- diff --git a/code/modules/mob/living/simple_animal/simple_animal.dm b/code/modules/mob/living/simple_animal/simple_animal.dm index e93f8a22dae..9394c27fb4d 100644 --- a/code/modules/mob/living/simple_animal/simple_animal.dm +++ b/code/modules/mob/living/simple_animal/simple_animal.dm @@ -72,6 +72,8 @@ var/scan_ready = 1 var/simplespecies //Sorry, no spider+corgi buttbabies. + var/master_commander = null //holding var for determining who own/controls a sentient simple animal (for sentience potions). + /mob/living/simple_animal/New() ..()