Bouncer OnNewProjectile - Add checks on directional projectiles.
**This commit does not have any effect on actual gameplay as of current project state, but it does let valid projectile creation pass through instead of getting caught up in Bouncer. That catch is currently disabled for the time being, until all valid projectile creation check is added.** Things would have get caught up in our bouncer eversince 1.4. We commented out the catch (the disable and handling) for now, but none of these new projectiles were added to let them pass. Renaming stabProjectile to directionalProjectile. Adding staffs to directionalProjectiles Adding check for GolfClubHelper projectile. Left in a debug check for golfball projectile. I would want to see if the reject gets triggered in a proper server enviroment. I didn't want to handle the projectile just yet. Adding GolfBallItemIDs list in Handlers.LandGolfBallInCupHandler.cs
This commit is contained in:
parent
ab1e63beee
commit
5decc50bd9
3 changed files with 70 additions and 4 deletions
|
|
@ -59,6 +59,26 @@ namespace TShockAPI.Handlers
|
|||
ItemID.GolfClubWedge,
|
||||
ItemID.GolfClubPutter
|
||||
};
|
||||
/// <summary>
|
||||
/// List of golf ball item IDs.
|
||||
/// </summary>
|
||||
public static readonly List<int> GolfBallItemIDs = new List<int>()
|
||||
{
|
||||
ItemID.GolfBall,
|
||||
ItemID.GolfBallDyedBlack,
|
||||
ItemID.GolfBallDyedBlue,
|
||||
ItemID.GolfBallDyedBrown,
|
||||
ItemID.GolfBallDyedCyan,
|
||||
ItemID.GolfBallDyedGreen,
|
||||
ItemID.GolfBallDyedLimeGreen,
|
||||
ItemID.GolfBallDyedOrange,
|
||||
ItemID.GolfBallDyedPink,
|
||||
ItemID.GolfBallDyedPurple,
|
||||
ItemID.GolfBallDyedRed,
|
||||
ItemID.GolfBallDyedSkyBlue,
|
||||
ItemID.GolfBallDyedTeal,
|
||||
ItemID.GolfBallDyedViolet
|
||||
};
|
||||
|
||||
/// <summary>
|
||||
/// Invoked when a player lands a golf ball in a cup.
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue