droppers behave more like syringes (#12518)
This commit is contained in:
@@ -27,7 +27,7 @@ public sealed partial class ChemistrySystem
|
||||
/// <summary>
|
||||
/// Default transfer amounts for the set-transfer verb.
|
||||
/// </summary>
|
||||
public static readonly List<int> TransferAmounts = new() { 5, 10, 15};
|
||||
public static readonly List<int> TransferAmounts = new() {1, 5, 10, 15};
|
||||
private void InitializeInjector()
|
||||
{
|
||||
SubscribeLocalEvent<InjectorComponent, GetVerbsEvent<AlternativeVerb>>(AddSetTransferVerbs);
|
||||
@@ -173,6 +173,10 @@ public sealed partial class ChemistrySystem
|
||||
if (HasComp<MobStateComponent>(target) ||
|
||||
HasComp<BloodstreamComponent>(target))
|
||||
{
|
||||
// Are use using an injector capible of targeting a mob?
|
||||
if (component.IgnoreMobs)
|
||||
return;
|
||||
|
||||
InjectDoAfter(component, args.User, target);
|
||||
args.Handled = true;
|
||||
return;
|
||||
|
||||
Reference in New Issue
Block a user