Add rust immunity to rusted plate

Throw items in spray pattern for trickster's box
This commit is contained in:
2026-06-06 15:58:31 -07:00
parent 09db0ccd88
commit 85e74821ad
4 changed files with 33 additions and 6 deletions
@@ -66,6 +66,12 @@ public partial class ThrownItem : RigidBody3D, IThrownItem
ApplyCentralImpulse(-Player.GlobalBasis.Z.Normalized() * ItemThatIsThrown.ThrowSpeed);
}
public void Throw(EffectService effectService, double throwAngle)
{
_effectService = effectService;
ApplyCentralImpulse(-Player.GlobalBasis.Z.Normalized().Rotated(Vector3.Up, (float)Mathf.DegToRad(throwAngle)) * ItemThatIsThrown.ThrowSpeed);
}
public void RescueItem()
{
if (!Game.RescuedItems.TryAdd(ItemThatIsThrown))