Skip to content

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

Description

@JavidPack

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;

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions