Remove duplicate disposal unit verb (#10607)
* Remove duplicate verb * also fix missing loc string
This commit is contained in:
@@ -104,27 +104,10 @@ namespace Content.Server.Disposal.Unit.EntitySystems
|
||||
{
|
||||
Act = () => TryEjectContents(component),
|
||||
Category = VerbCategory.Eject,
|
||||
Text = Loc.GetString("disposal-eject-verb-contents")
|
||||
Text = Loc.GetString("disposal-eject-verb-get-data-text")
|
||||
};
|
||||
args.Verbs.Add(ejectVerb);
|
||||
}
|
||||
|
||||
// Behavior if using a trash bag & other dumpable containers
|
||||
if (args.Using != null
|
||||
&& TryComp<DumpableComponent>(args.Using.Value, out var dumpable)
|
||||
&& TryComp<ServerStorageComponent>(args.Using.Value, out var storage)
|
||||
&& storage.StoredEntities is { Count: > 0 })
|
||||
{
|
||||
// Verb to dump held container into disposal unit
|
||||
AlternativeVerb dumpVerb = new()
|
||||
{
|
||||
Act = () => _dumpableSystem.StartDoAfter(args.Using.Value, args.Target, args.User, dumpable, storage),
|
||||
Text = Loc.GetString("dump-disposal-verb-name", ("unit", args.Target)),
|
||||
Priority = 2
|
||||
};
|
||||
args.Verbs.Add(dumpVerb);
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
private void AddClimbInsideVerb(EntityUid uid, DisposalUnitComponent component, GetVerbsEvent<Verb> args)
|
||||
|
||||
Reference in New Issue
Block a user