Alchemical bomb (#965)

* smoke bomb system

* collector fixes

* bomb integration

* fix

* tweak
This commit is contained in:
Ed
2025-03-03 14:06:50 +03:00
committed by GitHub
parent bab794e68f
commit bef78c62c0
8 changed files with 107 additions and 9 deletions

View File

@@ -54,7 +54,7 @@ public partial class CP14MagicEssenceSystem : EntitySystem
private void OnCollectorCollide(Entity<CP14MagicEssenceCollectorComponent> ent, ref StartCollideEvent args)
{
if (!Transform(ent).Anchored)
if (TryComp<CP14MagicEnergyCrystalSlotComponent>(ent, out var energySlot) && !energySlot.Powered)
return;
if (!TryComp<CP14MagicEssenceComponent>(args.OtherEntity, out var essenceComp))