User:Polavux/Technical:Bloons TD 5 (multiplatform)/Upgrades: Difference between revisions

From Blooncyclopedia, the independent Bloons knowledge base
Jump to navigation Jump to search
LowoTV (talk | contribs)
Tower Upgrades: minor change
LowoTV (talk | contribs)
im gonna rework operation soon
Line 52: Line 52:
|<code>Adjust</code>
|<code>Adjust</code>
|To change (by adding/subtracting) the base properties of the weapon.
|To change (by adding/subtracting) the base properties of the weapon.
|Array of objects
|Array of strings
|
|
|
|
Line 58: Line 58:
|<code>Replace</code>
|<code>Replace</code>
|To replace the base properties of the weapon.
|To replace the base properties of the weapon.
|Array of objects
|Array of strings
|
|
|
|
Line 88: Line 88:
{| class="wikitable"
{| class="wikitable"
|<code>SelectByType</code>
|<code>SelectByType</code>
|Selects by the type of subtask.
|Selects by the type of task/subtask.
|-
|<code>Type</code>
|The type of task/subtask to look for.
|-
|-
|<code>SelectByLocation</code>
|<code>SelectByLocation</code>
|Selects by the location of the subtask.
|Selects by the location of the task/subtask.
|-
|-
|<code>Location</code>
|The location of the task/subtask
|}
And whether to adjust or replace a task/subtask
{| class="wikitable"
|<code>Adjust</code>
|<code>Adjust</code>
|To adjust the value.
|To adjust the value or values.
|-
|-
|<code>Replace</code>
|<code>Replace</code>
|To replace the value.
|To replace the value or values.
|}
|}
|String
|String<abbr title="Location is an array of numbers.">*</abbr>
|
|
|
|
|}
|}

Revision as of 07:33, 18 May 2025

Upgrade properties

Key Description Type Required? Behavior when absent
Name The name of the upgrade for the tower getting upgraded. String Yes Upgrade functionally stops existing
TowerUpgrades The upgrades to the tower itself. Array of objects
WeaponUpgrades The upgrades to the tower's weapons. Array of objects

Tower Upgrades

It upgrades the tower properties for the tower.

Weapon Upgrades

Key Description Type Required? Behavior when absent
SlotIndex The slot the upgrade affects. This is used for a single weapon slot. Number
SlotIndices The slots the upgrade affects. This is used for more than 1 weapon slot. Array of Numbers
Adjust To change (by adding/subtracting) the base properties of the weapon. Array of strings
Replace To replace the base properties of the weapon. Array of strings
TaskUpgrades To change/replace the subtasks of the weapon. Array of objects

Adjust and Replace

Both of these only upgrade base weapon properties.

  • Adjust adds/subtracts numerical values of variables.
  • Replace replaces the values of variables.

Task Upgrades

This only upgrades tasks and subtasks.

Key Description Type Required? Behavior when absent
Operation The operation to find what to change.
SelectByType Selects by the type of task/subtask.
Type The type of task/subtask to look for.
SelectByLocation Selects by the location of the task/subtask.
Location The location of the task/subtask

And whether to adjust or replace a task/subtask

Adjust To adjust the value or values.
Replace To replace the value or values.
String*