Multiple items in loadouts (#33193)

* loadouts update

* Update loadout_groups.yml

* darts to candles

* Update Resources/Prototypes/Loadouts/dummy_entities.yml

---------

Co-authored-by: slarticodefast <161409025+slarticodefast@users.noreply.github.com>
This commit is contained in:
Ed
2024-12-24 03:24:19 +03:00
committed by GitHub
parent 39b2ce8cef
commit 1c33073af4
8 changed files with 42 additions and 10 deletions

View File

@@ -90,6 +90,9 @@ public sealed class LoadoutSystem : EntitySystem
public string GetName(LoadoutPrototype loadout)
{
if (loadout.DummyEntity is not null && _protoMan.TryIndex<EntityPrototype>(loadout.DummyEntity, out var proto))
return proto.Name;
if (_protoMan.TryIndex(loadout.StartingGear, out var gear))
{
return GetName(gear);