Add rust immunity to rusted plate
Throw items in spray pattern for trickster's box
This commit is contained in:
@@ -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))
|
||||
|
||||
Reference in New Issue
Block a user