tModLoader Powerups - On-pickup buffs and item abilities

hamstar

Terrarian
Powerups!
v1.1.0


Mirror (coming soon)



Note: Requires Mod Helpers




Enemies (and pots, if the Pot Luck mod is enabled) now drop powerups. Powerups give the player a temporary buff according to the powerup type. Powerup types and drop rates can be configured.

Source code available.



Installation

Requires tModLoader. Copy the above .tmod file to your 'Documents/My Games/Terraria/ModLoader/Mods' folder to play.



 
Last edited:
v1.1.0
  • Restructured PowerupDefinition code files and methods
  • Added PowerupDefinition.RemoveMeFromPool
  • Fixed powerup buff cycling item displaying incorrect items (untested)
  • Refactored PowerupItem.Create(...) to (maybe?) fix some logic(?) errors
  • Implemented powerup sync
  • Reverted ModConfig away from StackableModConfig
  • Added PowerupDefinition labels
v1.0.0.1
  • Separated healing potion from buff potion behavior on pickup
v1.0.0
  • First.
 

Attachments

  • Powerups v1.0.0.zip
    48.8 KB · Views: 150
  • Powerups v1.0.0.1.zip
    48.5 KB · Views: 144
  • Powerups v1.1.0.zip
    53.3 KB · Views: 109
Last edited:
I'll need to update this mod a bunch. It's on hold for the moment.
Ah, alrighty then. For now, I'll disable it. It's a cool mod with LOTS of potential. Game-breaking potential as well (since I play with many mods like Fargo's Soul Mod). Having the Soul of Eternity for a minute and a half was fun, lol. I love finding new ways to break the game in terms of balance and/or boss progression. Anyways, I look forward to potential updates.
 
You may want to set up a whitelist and blacklist for items to be used as powerups, cause ive run into the case where i kill 20+ enemies and one of them gives me the "Lul" item from calamity, which makes me instantly die.
 
Running this with mostly vanilla content and having a blast. The stack of powerups can sometimes get ridiculously big and sometimes I get powerups that freeze me in place, but since I can reset them by clicking the buff icon, its all cool.

Definitely looking forward to the powerup drop chance sliders to work. Even then, this mod is super fun!
 
Running this with mostly vanilla content and having a blast. The stack of powerups can sometimes get ridiculously big and sometimes I get powerups that freeze me in place, but since I can reset them by clicking the buff icon, its all cool.

Definitely looking forward to the powerup drop chance sliders to work. Even then, this mod is super fun!
Alright you've convinced me. I'll hit this with an update after I finish the current Adventure Mode mod.
 
Add the corresponding item entry to either 'PotLootPowerups' (for pot drops) or 'NPCLootPowerups' (for NPC drops) in the mod's (config) settings.
Would the item entry for lul be "lul"? edit: it's CheatTestThing

Setting it to exclude an item just removes all powerups.

JSON:
{
  "NPCLootPowerups": [
    {
      "ItemDef": {
        "mod": "CalamityMod",
        "name": "CheatTestThing"
      },
      "RemoveMeFromPool": true
    }
  ],
  "PotLootPowerups": [
    {
      "PercentDropChance": 0.25
    }
  ]
}


Edit 2: you have to create a second section with nothing set.

JSON:
{
  "NPCLootPowerups": [
    {
      "ItemDef": {
        "mod": "CalamityMod",
        "name": "CheatTestThing"
      },
      "RemoveMeFromPool": true
    },
    {}
  ],
  "PotLootPowerups": [
    {
      "PercentDropChance": 0.25,
      "ItemDef": {
        "mod": "CalamityMod",
        "name": "CheatTestThing"
      },
      "RemoveMeFromPool": true
    },
    {}
  ]
}

Edit 3: update JSON to include exclusion for PotLootPowerups.
 
Last edited:
Back
Top Bottom