Prevent borgs from being able to be briefly toggled off. (#32485)
* Prevent borgs from being able to be briefly toggled off. * Use the pre-existing component instead of making an unneccesary duplicate.
This commit is contained in:
@@ -71,7 +71,7 @@ public sealed class ItemToggleSystem : EntitySystem
|
||||
|
||||
private void OnActivateVerb(Entity<ItemToggleComponent> ent, ref GetVerbsEvent<ActivationVerb> args)
|
||||
{
|
||||
if (!args.CanAccess || !args.CanInteract)
|
||||
if (!args.CanAccess || !args.CanInteract || !ent.Comp.OnActivate)
|
||||
return;
|
||||
|
||||
var user = args.User;
|
||||
|
||||
@@ -121,6 +121,7 @@
|
||||
cellSlotId: cell_slot
|
||||
fitsInCharger: true
|
||||
- type: ItemToggle
|
||||
onActivate: false # You should not be able to turn off a borg temporarily.
|
||||
activated: false # gets activated when a mind is added
|
||||
onUse: false # no item-borg toggling sorry
|
||||
- type: ItemTogglePointLight
|
||||
|
||||
Reference in New Issue
Block a user