Random bullfix go! (#1197)

* some fixes for AI pathfinding

* cobblestone tile

* stonebrick update

* fix #1194

* fix #1193

* Update stonebricks_square_carved.png
This commit is contained in:
Ed
2025-04-18 22:47:17 +03:00
committed by GitHub
parent a57f613d91
commit b437be5cf8
24 changed files with 92 additions and 15 deletions

View File

@@ -8,6 +8,7 @@ using Content.Shared._CP14.MagicSpell.Components;
using Content.Shared._CP14.MagicSpell.Events;
using Content.Shared._CP14.MagicSpell.Spells;
using Content.Shared.Actions;
using Content.Shared.CombatMode.Pacification;
using Content.Shared.FixedPoint;
using Content.Shared.Projectiles;
using Content.Shared.Throwing;
@@ -62,6 +63,12 @@ public sealed class CP14MagicSystem : CP14SharedMagicSystem
private void OnMeleeHit(Entity<CP14SpellEffectOnHitComponent> ent, ref MeleeHitEvent args)
{
if (HasComp<PacifiedComponent>(args.User)) //IDK how to check if the user is pacified in a better way
return;
if (!args.IsHit)
return;
if (!_random.Prob(ent.Comp.Prob))
return;