mirror of
https://github.com/Bubberstation/Bubberstation.git
synced 2026-08-30 00:29:02 +01:00
[MIRROR] [no gbp] Fixes the dog fetch command [MDB IGNORE] (#19456)
* [no gbp] Fixes the dog fetch command (#73516) ## About The Pull Request I broke this in a so-called "refactor" by forgetting to pass an argument. It works again now. ## Why It's Good For The Game It's a fun thing for dogs to do. ## Changelog 🆑 fix: Pet dogs will once again fetch items for you /🆑 * [no gbp] Fixes the dog fetch command --------- Co-authored-by: Jacquerel <hnevard@gmail.com>
This commit is contained in:
@@ -13,7 +13,7 @@
|
||||
// It stopped existing
|
||||
if (!fetch_thing)
|
||||
return FALSE
|
||||
set_movement_target(fetch_thing)
|
||||
set_movement_target(controller, fetch_thing)
|
||||
|
||||
/datum/ai_behavior/fetch_seek/perform(delta_time, datum/ai_controller/controller, target_key, delivery_key)
|
||||
. = ..()
|
||||
@@ -56,7 +56,7 @@
|
||||
var/mob/living/return_target = return_ref?.resolve()
|
||||
if(!return_target) // Guess it's mine now
|
||||
return FALSE
|
||||
set_movement_target(return_target)
|
||||
set_movement_target(controller, return_target)
|
||||
|
||||
/datum/ai_behavior/deliver_fetched_item/perform(delta_time, datum/ai_controller/controller, delivery_key, storage_key)
|
||||
. = ..()
|
||||
@@ -106,7 +106,7 @@
|
||||
|
||||
if(!istype(snack) || !IS_EDIBLE(snack) || !(isturf(snack.loc) || ishuman(snack.loc)))
|
||||
return FALSE // This isn't food at all!
|
||||
set_movement_target(snack)
|
||||
set_movement_target(controller, snack)
|
||||
|
||||
/datum/ai_behavior/eat_fetched_snack/perform(delta_time, datum/ai_controller/controller, target_key, delivery_key)
|
||||
. = ..()
|
||||
|
||||
Reference in New Issue
Block a user