Skip to content

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

@JavidPack

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;

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions