Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Warn for useless lines. (Setting Projectile.damage in SetDefaults) #13

Open
JavidPack opened this issue Nov 14, 2022 · 0 comments
Open

Comments

@JavidPack
Copy link
Contributor

JavidPack commented Nov 14, 2022

Many things are useless in ModProjectile.SetDefaults, but might mislead a modder in thinking it works and is the correct approach. This warning will prevent users from making these mistakes:

ModProjectile.SetDefaults:
damage -- always overwritten
knockback -- always overwritten
maxPenetrate -- always overwritten
penetrate = 0 -- bug.

ModItem.SetDefaults:
material
Item.ResearchUnlockCount = 1;

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant