Skip to content

Commit

Permalink
Fix jedi (#42)
Browse files Browse the repository at this point in the history
* back triple wall

* fix bubble shield

* fix bubble shield 2
  • Loading branch information
Shegare authored Jan 5, 2025
1 parent 8547763 commit a5095fe
Show file tree
Hide file tree
Showing 2 changed files with 22 additions and 5 deletions.
26 changes: 21 additions & 5 deletions Content.Shared/Weapons/Melee/SharedMeleeWeaponSystem.cs
Original file line number Diff line number Diff line change
Expand Up @@ -729,13 +729,29 @@ protected HashSet<EntityUid> ArcRayCast(Vector2 position, Angle angle, Angle arc
false)
.ToList();

for (var a = 0; a < res.Count; a++) // Space Stories - start
// Space Stories - start (ignore HeavyAttack for ProtectiveBubble)
/*if (res.Count != 0)
{
// if (Transform(ignore).ChildEntities.Contains(res[a].HitEntity)) // Мне просто нужно, чтобы он не бил своих детей, но его удары проходили дальше.
// continue;
resSet.Add(res[a].HitEntity);
resSet.Add(res[0].HitEntity);
}*/
for (var index = 0; index < res.Count; index++)
{
if(IsContains(Transform(ignore).ChildEnumerator, index))
continue;
resSet.Add(res[index].HitEntity);
break;
} // Space Stories - end
}

bool IsContains(TransformChildrenEnumerator enumerator, int index)
{
for (var a = 0; enumerator.MoveNext(out var child); a++)
{
if (res[index].HitEntity == child)
return true;
}
return false;
}
// Space Stories - end
}

return resSet;
Expand Down
1 change: 1 addition & 0 deletions Resources/Prototypes/_Stories/Actions/force/lightside.yml
Original file line number Diff line number Diff line change
Expand Up @@ -33,6 +33,7 @@
volume: 100
event: !type:InstantSpawnSpellEvent
prototype: WallForceJedi
posData: !type:TargetInFront

- type: entity
id: ActionHibernationTrance
Expand Down

0 comments on commit a5095fe

Please sign in to comment.