mirror of
https://github.com/ParadiseSS13/Paradise.git
synced 2026-08-21 19:17:50 +01:00
xenoborgs can now select any normal borg module as well as the hunter module (#20423)
* xenoborgs can now select any normal borg module and the hunter module * improved * no longer returns force modules if there are already force modules
This commit is contained in:
@@ -334,7 +334,7 @@ GLOBAL_LIST_INIT(robot_verbs_default, list(
|
||||
*
|
||||
* By default this returns the Engineering, Janitor, Medical, Mining, and Service modules.
|
||||
* If there are any [/mob/living/silicon/robot/var/force_modules] set, then they are returned instead.
|
||||
* If the MMI has a xenomorph brain in it ([/obj/item/mmi/var/alien]), then only the "Hunter" module is returned.
|
||||
* If the MMI has a xenomorph brain in it ([/obj/item/mmi/var/alien]), then only the "Hunter" and standard modules is returned.
|
||||
*/
|
||||
/mob/living/silicon/robot/proc/get_module_types()
|
||||
var/static/list/standard_modules = list(
|
||||
@@ -346,10 +346,12 @@ GLOBAL_LIST_INIT(robot_verbs_default, list(
|
||||
var/static/list/special_modules = list(
|
||||
"Combat" = image('icons/mob/robots.dmi', "security-radial"),
|
||||
"Security" = image('icons/mob/robots.dmi', "security-radial"),
|
||||
"Destroyer" = image('icons/mob/robots.dmi', "droidcombat"))
|
||||
"Destroyer" = image('icons/mob/robots.dmi', "droidcombat"),
|
||||
"Hunter" = image('icons/mob/robots.dmi', "xeno-radial"))
|
||||
|
||||
if(mmi?.alien)
|
||||
return list("Hunter" = image('icons/mob/robots.dmi', "xeno-radial"))
|
||||
if(!length(force_modules))
|
||||
force_modules = list("Hunter") + standard_modules.Copy() // standard PLUS hunter
|
||||
|
||||
// Return a list of `force_modules`, with the associated images from the other lists.
|
||||
if(length(force_modules))
|
||||
|
||||
Reference in New Issue
Block a user