Skip to content

v0.0.10.4

Compare
Choose a tag to compare
@Jofairden Jofairden released this 15 Apr 16:37
· 261 commits to rework since this release

Mod Browser Autorelease built on tModLoader v0.10.1.3

  • I updated how modifiers are generated. Previously (and in the original mod) you could drop an item and roll if lucky. Right now, modifiers are generated on world generation, and otherwise on first update (first time the world is updated)
  • The modifier +{x}% chance to inflict {buff} for {time}s can no longer be rolled multiple times for the same debuff, but can still be rolled multiple times for different debuffs (e.g. you can roll On Fire and Venom on the same item, but not either twice)
  • Updated the +{x}% damage redirected to mana modifier:
    • Tooltip is now clearer: +{x}% of damage taken is redirected to mana
    • Can now no longer block damage into negative mana, and will only block up to how much mana you have left
  • The rarities Legendary and Transcendent no longer modify the item's name
  • Other: updated thread

Mostly important for other modders:

  • Previously there were multiple CanRoll methods, these have all been reduced to just one (CanRoll) as the specific method in that context is part of the context passed (one can just check ctx.Method)
  • Modifier's properties now has UniqueRoll and MergeTooltips bools. If UniqueRoll is true, that modifier can only be rolled once on an item. If MergeTooltips is true, the tooltips should merge (eg +10% damage and +13% damage would display as one line saying +23% damage.) I haven't implemented MergeTooltips' functionality yet though, but that is the idea and available in a future update.
  • Added Modifier.PostRoll to accomodate for UniqueRoll and such. Specifically used by the random debuff modifier, so that it does not actually roll two of the same debuff types
  • Reduced boilerplate code in ModifierPlayer, it is also faster (ModifierPool.RollableModifiers and CanRoll are all drastically simplified)
  • Even though the rarities Legendary and Transcendent no longer modify the item's name, these functionalities are still present and usable.
  • Added missing mod.GetGlobalModifier and mod.GlobalModifierType helpers. (Note: GlobalModifier is present but not yet in use, and is also likely to change: do not use it yet!)