-
Notifications
You must be signed in to change notification settings - Fork 0
Available Calls
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.3
branch if needed.
Any changes to existing calls will be documented here.
Documentation and call wrappers here (possibly indated if on 1.3
tml, navigate to branches, swap to tags, and pick the latest version if you need to)
- Additions/Changes
- Changes are breaking due to tml 1.4.4 being a breaking update aswell
- Added
SetSFXButtonDefaults
, used for setting the properties of an SFX Button in SetDefaults - Added
RegisterSFXButton
, used for registering an SFX Button with a PlaySound callback - Added
IsSFXButton
, used for checking if an item is an SFX Button - Added
GetSFXButton
, used for retrieving the PlaySound callback of an SFX Button - Added
GetAllSFXButtonStacks
, used for retrieving all currently active "SFX Button stacks - Added
AddSFXButtonStack
, used for manually adding to the given SFX Button's stack -
SetAccessory/GetAccessory
: MovedGoldenTicket
toSetAccessoryItem/GetAccessoryItem
-
RegisterClickEffect
: Changed parameters -string displayName, string description
gone, replaced withobject[] nameArgs = null, object[] descriptionArgs = null
which are bound on load. Text is autoloaded like before (you will see them appear in the localization file now), new args allow for formatting -
GetClickEffectAsDict
: Changed types of theobject
values:DisplayName
andDescription
are changed fromstring
toLocalizedText
- Localization:
- Your clicker tooltips should look like this:
Tooltip: "{$Mods.ClickerClass.Common.Tooltips.Clicker}"
- ClickEffect text is now automatically populated
- Your clicker tooltips should look like this:
- Additions/Changes
- Added optional parameter
preHardMode
toRegisterClickEffect
, indicating if the registered clicker effect is obtainable in Pre-Hardmode. Used in Clicker Class for the Burning Super Death Clicker.
- Added optional parameter
-
Clicker Class Changes
- Auto-reuse was reworked - clickers will never auto-reuse unless you use the new API calls. Revisit them if your mod added auto-reuse to clickers.
-
Additions/Changes
- Added
SetAccessoryType
, allowing accessories to control if they belong to an archetype so that they won't be able to be equipped alongside eachother - Added
SetAutoReuseEffect
, allowing clickers to get auto-reused with customized speed, optional hotkey and clicker effect proc disabling. -
SetAccessory/GetAccessory
: Removed "HandCream" and "IcePack" as options- Has not been made backwards compatible, due to internal changes in Clicker Class, aswell as encouraging use of the new API
- Fetching the status of enabled auto reuse effects is not possible. Let us know if you have a valid use case for it if you need it back
- Added
- Fixes
- Fixed ClickerCompat.GetClickerPerSecond, now returns float
-
IMPORTANT
- Make sure to use the
position
for ClickEffects instead ofMain.MouseWorld
for compatibility with new accessories.
- Make sure to use the
-
Additions/Changes
- Added more options for accessory/armor set calls to mirror new content
-
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
andUnload
- No more manually calling
-
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 ofIProjectileSource
) - Added
SetClickerProjectileDefaults
,IsClickerWeaponProj
, andRegisterClickerWeaponProjectile
-
Color
value of theGetClickEffectAsDict
return is nowFunc<Color>
-
Action
value of theGetClickEffectAsDict
return now hasProjectileSource_Item_WithAmmo
as it's second parameter -
RegisterClickEffect
now has aFunc<Color>
overload -
Action
parameter ofRegisterClickEffect
now hasProjectileSource_Item_WithAmmo
as it's second parameter -
GetAccessory/SetAccessory
changes:-
EnchantedLED2
now available -
Cookie
now changed toCookieVisual
andCookieVisual2
for one of the two possible visuals for cookies. Use in conjunction withGetAccessoryItem/SetAccessoryItem
+Cookie
-
Updated ClickerClassExampleMod:
- Please revisit the examples again to see how the new calls are used and which new calls are now mandatory
-
Fixes
- Fixed some outdated calls not being handled properly
-
Additions/Changes
-
GetAccessory/SetAccessory
now accepts "GoldenTicket" and "PortableParticleAccelerator" - Added
SetDisplayMoneyGenerated
-
-
Fixes
- Fixed several SetPlayerStat stat limits:
clickerCrit
,clickerDamage
,clickerBonus
,clickerBonusPercent
andclickerRadius
- Fixed several SetPlayerStat stat limits:
-
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
-
-
Fixes
- Fixed
GetPlayerStat->clickAmountTotal
call not working at all, now also requires an effect name as a parameter
- Fixed
-
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 forRegisterClickerWeapon
- Added
GetPathToBorderTexture
- Added
RegisterClickEffect
,IsClickEffect
,AddEffect
,GetAllEffectNames
,GetClickEffectAsDict
,EnableClickEffect
andHasClickEffect
- Added
GetPlayerStat
->clickerPerSecond
- Added
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
-
Fixed
ClickerCompat.GetClickAmount()
andClickerCompat.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
No calls