[MIRROR] Basic mobs drop their butcher results when gibbed [MDB IGNORE] (#23495)

* Basic mobs drop their butcher results when gibbed (#78091)

## About The Pull Request

Title.

## Why It's Good For The Game

Fixes #78089
Simple mobs drop their meats when gibbed but basic mobs don't which is
weird and inconsistent.

## Changelog

🆑
fix: fixed basic mobs not dropping their butcher results when gibbed
/🆑

* Basic mobs drop their butcher results when gibbed

---------

Co-authored-by: Sealed101 <cool.bullseye@yandex.ru>
This commit is contained in:
SkyratBot
2023-09-03 21:29:14 +02:00
committed by GitHub
parent 2a250b66ea
commit 8e4632d000
+13
View File
@@ -141,6 +141,19 @@
health = 0
look_dead()
/mob/living/basic/gib()
if(butcher_results || guaranteed_butcher_results)
var/list/butcher_loot = list()
if(butcher_results)
butcher_loot += butcher_results
if(guaranteed_butcher_results)
butcher_loot += guaranteed_butcher_results
var/atom/loot_destination = drop_location()
for(var/path in butcher_loot)
for(var/i in 1 to butcher_loot[path])
new path(loot_destination)
return ..()
/**
* Apply the appearance and properties this mob has when it dies
* This is called by the mob pretending to be dead too so don't put loot drops in here or something