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:
BramvanZijp
2024-10-01 17:13:59 +02:00
committed by GitHub
parent 6a1815aeaf
commit f79de12509
2 changed files with 2 additions and 1 deletions

View File

@@ -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;

View File

@@ -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