Repository navigation
Conversation
Sharp Tears spawn with ai[1] in [0.8, 1.3), but Bouncer capped it at 1.
Contributor
[Low impact] This focused change appears safe to merge. SummaryRaises the maximum allowed
No actionable issues found. No build or runtime tests were run. Reviews (1) · Last reviewed commit: "Fix Blood Thorn thorns being rejected by..." · Reviewed by Greptile |
lost-werewolf
approved these changes
Nov 28, 2026
lost-werewolf
left a comment
Contributor
There was a problem hiding this comment.
Thanks for the fix!
This branch has not been deployed
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Problem
Someone report that the Blood Thorn produces far fewer thorns in multiplayer on TShock than in single player.
Terraria spawns each Sharp Tears projectile (756) in Player.ItemCheck_Shoot with
so ai[1] is uniformly distributed in [0.8, 1.3). Projectile_MaxValuesAI2 in Bouncer only allows up to 1 for 756, so every thorn whose scale is above 1 is removed with "Bouncer / OnNewProjectile rejected from bouncer modified AI". That accounts for more than half of all thorns...
Fix
Raise the Sharp Tears maximum in Projectile_MaxValuesAI2 from 1 to 1.3f.
Vanilla Terraria
1.-.Vanilla.mp4
TShock without the fix
3.-.TShock.without.the.fix.mp4
TShock with the fix
2.-.TShock.with.the.fix.mp4