mirror of
https://github.com/Bubberstation/Bubberstation.git
synced 2026-07-20 12:35:33 +01:00
[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:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user