Skip to content

Commit

Permalink
[MIRROR] re-adds list of components for admins to remove (#2757)
Browse files Browse the repository at this point in the history
* re-adds list of components for admins to remove (#82461)

## About The Pull Request

The list of components on a mob when admins try to remove one didn't
actually show them, now it does.

![image](https://github.com/tgstation/tgstation/assets/53777086/a6102c3a-df30-4e9c-b7fd-29a4d8ddaa89)

## Why It's Good For The Game

Messing with components/elements on mobs are such a pain, in this case
was broken entirely.

![admin-toolings](https://github.com/tgstation/tgstation/assets/53777086/3d190c66-34e4-4424-824b-37f95e88b003)

## Changelog

:cl:
admin: Removing components button now lists components to remove
/:cl:

* re-adds list of components for admins to remove

---------

Co-authored-by: NovaBot <[email protected]>
Co-authored-by: John Willard <[email protected]>
  • Loading branch information
3 people authored Apr 6, 2024
1 parent edeb4c4 commit 098e5ee
Showing 1 changed file with 1 addition and 3 deletions.
4 changes: 1 addition & 3 deletions code/modules/admin/view_variables/topic_basic.dm
Original file line number Diff line number Diff line change
Expand Up @@ -98,9 +98,7 @@
if(!check_rights(NONE))
return
var/mass_remove = href_list[VV_HK_MASS_REMOVECOMPONENT]
var/list/components = list()
for(var/datum/component/component in target.GetComponents(/datum/component))
components += component.type
var/list/components = target._datum_components.Copy()
var/list/names = list()
names += "---Components---"
if(length(components))
Expand Down

0 comments on commit 098e5ee

Please sign in to comment.