tModLoader

tModLoader

Lurrae's Core Mod
Showing 1-2 of 2 entries
Update: 9 Mar, 2024 @ 10:02am

Version 1.0.1 has been published to Stable tModLoader v2024.1

- The ModFlailProj class now uses an array of strings for ChainTex instead of a single string. Now you can define multiple textures, and they'll cycle through in order!
- The ModFlailProj class also has a new method, OnStartRetracting(). This allows you to, for example, fire a secondary projectile like the Drippler Crippler does
- Fixed issues with ModFlailProj drawing chains with hardcoded width and height values instead of dynamically getting them from the texture

Update: 8 Mar, 2024 @ 12:37pm

Version 1.0 has been published to Stable tModLoader v2024.1

- Initial release
- Includes additional ModItem classes to simplify creation of minion staves, rocket launchers, and whips
- Includes an additional ModNPC class to simply creation of town NPCs (including automated loading of dialogues using tmod's currently-incomplete dialogue substitutions)
- Includes additional ModProjectile classes to simplify creation of flails, minions, pets, spears, and whips
- Includes an Extensions class with the following methods that can be called:
- Conversions.ToFrames(float seconds, int extraUpdates = 0) - Converts seconds into frames (1 second = 60 frames). Set extraUpdates to Projectile.extraUpdates as needed
- Conversions.ToSeconds(float frames, int extraUpdates = 0) - Converts frames into seconds (60 frames = 1 second). Set extraUpdates to Projectile.extraUpdates as needed
- Conversions.ToPixels(float blocks) - Converts blocks into pixels (1 block = 16 pixels)
- Conversions.ToBlocks(float pixels) - Converts pixels into blocks (16 pixels = 1 block)
- Projectile.IsBeeRelated() - Checks if the projectile can be buffed by the Hive Pack (i.e, is a Bee, Giant Bee, Wasp, or Hornet Stinger)
- Item.CloneShopValues_TownNPCDrop() - Sets the item's rarity to Green and its value to 50 silver
- Player.LicenseOrExchangePet(Item sItem, ref bool petBoughtFlag, int npcType, string textKeyForLicense, int netMessageData) - A copy of the private vanilla method of the same name that allows modded town pet licenses to call it without reflection!
- Includes several new item defaults methods:
- Item.DefaultToFlail(int singleSwingTime, int projType, float shotVelocity, int newHeight = 32, int newWidth = 32) - Sets several item values common to flails
- Item.DefaultToYoyo(int projType, int singleShotTime, float shotVelocity, int newHeight = 32, int newWidth = 32, bool hasAutoReuse = false) - Sets several item values common to yoyos
- Item.DefaultToBoomerang(int projType, int singleShotTime, float shotVelocity, int newHeight = 32, int newWidth = 32, bool hasAutoReuse = false) - Sets several item values common to boomerangs
- Item.DefaultToSword(int singleSwingTime, int projType = 0, int shotVelocity = 0, int newHeight = 32, int newWidth = 32, bool hasAutoReuse = false) - Sets several item values common to swords
- Item.DefaultToMeleeWeapon(int singleSwingTime, int newHeight = 32, int newWidth = 32, bool hasAutoReuse = false) - Sets several item values common to melee weapons
- Item.DefaultToAmmo(int ammoType, int projectileType, float velocity) - Sets several item values common to ammo
- Item.DefaultToMinion(int buffType, int projType, int singleSwingTime = 36, int manaCost = 10, int newHeight = 32, int newWidth = 32) - Sets several item values common to minions
- Item.DefaultToSentry(int projType, int manaCost = 20, int singleSwingTime = 30, int newHeight = 32, int newWidth = 32) - Sets several item values common to sentries
- Item.DefaultToSummonWeapon(int manaCost, int singleSwingTime, int newHeight = 32, int newWidth = 32) - Sets several item values common to summon weapons
- Item.DefaultToArmor(int defense, int newHeight = 26, int newWidth = 26) - Sets several item values common to armor pieces
- Item.DefaultToDevSet(int rarity, int newHeight = 26, int newWidth = 26) - Sets several item values common to dev set pieces
- Includes a new Condition:
- ExtraConditions.BestiaryCompletionPercent(float targetPercent) - Can be used in NPC shops to make items that are only sold once a certain percent of the bestiary has been filled in, like vanilla does with some Zoologist items
- Includes a ModdedVariantNPCProfile, which can be used to create custom town pets (or other town NPCs that have distinct variants like the town pets) without vanilla freaking out because it can't find the textures/names