Skip to content
IDGCaptainRussia94 edited this page Jun 14, 2020 · 2 revisions

Welcome to the AAAAUThrowing wiki!

Firstly, read up on this to learn how to make cross mod content: https://github.com/tModLoader/tModLoader/wiki/Expert-Cross-Mod-Content For this mod, your largely only going to be using strong references

After you have added AAAAUThrowing (it is called that so it is ran before other mods) and added proper using AAAThrowing; To all your cs files that use throwing damage, you can do the following:

Add .Throwing() before your .thrown code

item.thrown item.Throwing().thrown

projectile.thrown projectile.Throwing().thrown

player.thrown player.Throwing().thrown

player.thrownDamage player.Throwing().thrownDamage

All the vanilla throwing fields have been recreated and can be accessed with the Throwing() extension

Now if you want to display the crit chance on a weapon, you cannot just use item.Throwing().crit, as that won't account for the item's item.crit for that you can use this: ThrowingUtils.DisplayedCritChance(item); this will return an int that displays the crit chance properly

For the time being Universal Throwing accounts for vanilla throwing and will add it to its own, but not vice-versa, and this functionality will be removed when 1.4 launches

And that's it! Hopefully this helps a good deal because I don't want throwing items going the way of ranged in 1.4 mods, thank you for reading this!

Clone this wiki locally