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),
|
Act = () => TryEjectContents(component),
|
||||||
Category = VerbCategory.Eject,
|
Category = VerbCategory.Eject,
|
||||||
Text = Loc.GetString("disposal-eject-verb-contents")
|
Text = Loc.GetString("disposal-eject-verb-get-data-text")
|
||||||
};
|
};
|
||||||
args.Verbs.Add(ejectVerb);
|
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)
|
private void AddClimbInsideVerb(EntityUid uid, DisposalUnitComponent component, GetVerbsEvent<Verb> args)
|
||||||
|
|||||||
@@ -10,11 +10,10 @@ ui-disposal-unit-button-flush = Flush
|
|||||||
ui-disposal-unit-button-eject = Eject Contents
|
ui-disposal-unit-button-eject = Eject Contents
|
||||||
ui-disposal-unit-button-power = Power
|
ui-disposal-unit-button-power = Power
|
||||||
|
|
||||||
## FlushVerb
|
## Verbs
|
||||||
disposal-flush-verb-get-data-text = Flush
|
disposal-flush-verb-get-data-text = Flush
|
||||||
|
|
||||||
## SelfInsertVerb
|
|
||||||
disposal-self-insert-verb-get-data-text = Jump inside
|
disposal-self-insert-verb-get-data-text = Jump inside
|
||||||
|
disposal-eject-verb-get-data-text = Eject contents
|
||||||
|
|
||||||
## No hands
|
## No hands
|
||||||
disposal-unit-no-hands = You don't have hands!
|
disposal-unit-no-hands = You don't have hands!
|
||||||
|
|||||||
Reference in New Issue
Block a user