mirror of
https://github.com/Bubberstation/Bubberstation.git
synced 2025-12-10 01:34:01 +00:00
[MIRROR] Makes the game start faster by optimizing round-start manifest injections [MDB IGNORE] (#15866)
* Makes the game start faster by optimizing round-start manifest injections * Fixin' dem conflicts yo Co-authored-by: GoldenAlpharex <58045821+GoldenAlpharex@users.noreply.github.com>
This commit is contained in:
@@ -1007,7 +1007,8 @@ GLOBAL_LIST_EMPTY(friendly_animal_types)
|
||||
return J
|
||||
return 0
|
||||
|
||||
//For creating consistent icons for human looking simple animals
|
||||
/// # If you already have a human and need to get its flat icon, call `get_flat_existing_human_icon()` instead.
|
||||
/// For creating consistent icons for human looking simple animals.
|
||||
/proc/get_flat_human_icon(icon_id, datum/job/job, datum/preferences/prefs, dummy_key, showDirs = GLOB.cardinals, outfit_override = null)
|
||||
var/static/list/humanoid_icon_cache = list()
|
||||
if(icon_id && humanoid_icon_cache[icon_id])
|
||||
@@ -1037,7 +1038,8 @@ GLOBAL_LIST_EMPTY(friendly_animal_types)
|
||||
* A simpler version of get_flat_human_icon() that uses an existing human as a base to create the icon.
|
||||
* Does not feature caching yet, since I could not think of a good way to cache them without having a possibility
|
||||
* of using the cached version when we don't want to, so only use this proc if you just need this flat icon
|
||||
* generated once.
|
||||
* generated once and handle the caching yourself if you need to access that icon multiple times, or
|
||||
* refactor this proc to feature caching of icons.
|
||||
*
|
||||
* Arguments:
|
||||
* * existing_human - The human we want to get a flat icon out of.
|
||||
|
||||
Reference in New Issue
Block a user