Skip to content

Available Calls

direwolf420 edited this page Dec 17, 2021 · 21 revisions

Here are all currently available and newly added calls

Technical breakdown/listing can be found on the main mod's repo. Change to the 1.4 branch if needed.

Any changes to existing calls will be documented here.

Documentation and call wrappers here (possibly indated (or outdated if 1.4), navigate to branches, swap to tags, and pick the latest version if you need to)

Version 1.3:

Updated ClickerCompat:

  • 1.4 Update!

    • Now works with the associated tml release for Terraria 1.4 content.
    • Obsolete/Outdated calls from 1.3 are no longer supported in 1.4.
  • ClickerCompat changes

    • No more manually calling Load and Unload
  • Additions/Changes

    • Added more options for accessory/armor set calls to mirror new content
    • Added GetAccessoryItem/SetAccessoryItem for accessories that cause projectile spawning (for proper tracking of IProjectileSource)
    • Added SetClickerProjectileDefaults, IsClickerWeaponProj, and RegisterClickerWeaponProjectile
    • Color value of the GetClickEffectAsDict return is now Func<Color>
    • Action value of the GetClickEffectAsDict return now has ProjectileSource_Item_WithAmmo as it's second parameter
    • RegisterClickEffect now has a Func<Color> overload
    • Action parameter of RegisterClickEffect now has ProjectileSource_Item_WithAmmo as it's second parameter
    • GetAccessory/SetAccessory changes:
      • EnchantedLED2now available
      • Cookie now changed to CookieVisual and CookieVisual2 for one of the two possible visuals for cookies. Use in conjunction with GetAccessoryItem/SetAccessoryItem+ Cookie

Updated ClickerClassExampleMod:

  • Please revisit the examples again to see how the new calls are used and which new calls are now mandatory.

Version 1.2.6:

Updated ClickerCompat:

  • Fixes

    • Fixed some outdated calls not being handled properly
  • Additions/Changes

    • GetAccessory/SetAccessory now accepts "GoldenTicket" and "PortableParticleAccelerator"
    • Added SetDisplayMoneyGenerated

Version 1.2.4:

Updated ClickerCompat:

  • Fixes

    • Fixed several SetPlayerStat stat limits: clickerCrit, clickerDamage, clickerBonus, clickerBonusPercent and clickerRadius
  • Additions/Changes

    • RegisterClickEffect accepts null for display name and description, useful if you wish to also use .lang for your mod
    • GetClickEffectAsDict changed "InternalName" representation, added "Mod" and "UniqueName" keys

Version 1.2.2:

Updated ClickerCompat:

  • Fixes

    • Fixed GetPlayerStat->clickAmountTotal call not working at all, now also requires an effect name as a parameter
  • Removals/Changes

    • Reminder that all of these are still backwards compatible, you don't HAVE to update your mod immediately
    • SetAmount is deleted
    • SetEffect is obsolete
    • GetAccessory/SetAccessory->ChocolateChip/StickyKeychain is obsolete
  • Additions/Changes

    • Added borderTexture parameter for RegisterClickerWeapon
    • Added GetPathToBorderTexture
    • Added RegisterClickEffect, IsClickEffect, AddEffect, GetAllEffectNames, GetClickEffectAsDict, EnableClickEffect and HasClickEffect
    • Added GetPlayerStat->clickerPerSecond

Updated ClickerClassExampleMod:

  • Added an advanced clicker weapon, with a custom outline, adding a custom effect which uses a custom clicker projectile
    • Revisit the weapon clicker guide on the wiki for updated instructions

Version 1.2.1:

Updated ClickerCompat

  • Fixed ClickerCompat.GetClickAmount() and ClickerCompat.GetClickerAmountTotal() returning float instead of int (API Breaking, update your mod if you were using that previously)

  • Added Get and Set calls for accessory effects, and Get calls for armor sets:

    GetArmorSet options: Motherboard, Overclock, Precursor, Mice

    GetAccesory options: ChocolateChip, EnchantedLED, HandCream, StickyKeychain, GlassOfMilk, Cookie, ClickingGlove, AncientClickingGlove, RegalClickingGlove

    SetAccessory options: ChocolateChip, EnchantedLED, EnchantedLED2, HandCream, StickyKeychain, GlassOfMilk, Cookie, Cookie2, ClickingGlove, AncientClickingGlove, RegalClickingGlove

Version 1.2:

Initial release calls

Versions before 1.2:

No calls

Clone this wiki locally