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

[1.14 alpha] Feature - add support for W1K's Weapon Scaling #15

Open
FluffyDiscord opened this issue Dec 31, 2021 · 0 comments
Open

[1.14 alpha] Feature - add support for W1K's Weapon Scaling #15

FluffyDiscord opened this issue Dec 31, 2021 · 0 comments

Comments

@FluffyDiscord
Copy link

Hello, would you mind adding support for W1K's Weapon Scaling mod for summoner items/weapons please ? It should be fairly quick to add

https://forums.terraria.org/index.php?threads/w1ks-weapon-scaling.98535/

using Terraria.ModLoader;

namespace WWSSupportExample
{
    public class WWSSupportExample : Mod
    {
        public override void PostSetupContent()
        {
            Mod wWeaponScaling = ModLoader.GetMod("WWeaponScaling"); // Checks whether the Weapon Scaling mod is loaded
            if(wWeaponScaling != null)
            {
                /*WEAPON TIERS
                1 = Wooden
                2 = Iron
                3 = Gold
                4 = Evil
                5 = Jungle
                6 = Dungeon
                7 = Molten
                8 = Adamantite
                9 = Hallowed
                10 = Chlorophyte
                11 = Post-Plantera
                12 = Post-Golem
                13 = Lunar
                14 = Moon Lord*/
    
                //wWeaponScaling.Call(WEAPON ID, TIER, SCALING FACTOR);
                //WEAPON ID is the internal ID of the weapon to be added to the database of supported weapons.
                //TIER is the starting tier of said weapon. For example, if it is obtained in the post-skeletron dungeon, it would be tier 6. Refer to the table above.
                //SCALING FACTOR is how much of the scaling multiplier is applied to the weapon. 1f is the default.
                //    If the weapon scales too much at higher tiers, lower the number into decimals until it feels right. Increase if the weapon scales too slowly.
        
                wWeaponScaling.Call(ModContent.ItemType<Items.Weapon1>(), 1, 1f);
                wWeaponScaling.Call(ModContent.ItemType<Items.Weapon2>(), 2, 1f);
            }
        }
    }
}
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