Accuracy

From Toontown Rewritten Wiki

Accuracy is a property of gags, which determines the probability of them hitting Cogs, or Toons in the case of Toon-Up. It is shown when hovering over a gag on the gag menu interface, which can be seen during Cog battles and in the gags section of the Shticker Book's "Inventory" page.

The gag menu interface describes the accuracy of gags as low, medium, high, or perfect. Low means that a gag may have a greater chance at missing, and perfect ensures that a gag can never miss. Such categories are associated with a percentage, which is not shown in the gag menu interface.

Calculating accuracy

Accuracy is calculated using the following formula:

atkAcc = propAcc + trackExp + tgtDef + bonus

atkAcc

atkAcc is the final result after the four aforementioned variables are evaluated. Once atkAcc is determined, it is compared to a pseudo-RNG that rolls a number from 0% to 99%. If atkAcc is greater than the RNG, it is given an atkHit value of 1 and will hit. Otherwise, the gag is given an atkHit value of 0 and will miss.

Special rules

  1. When a Trap gag is used, atkAcc is automatically set to 100% and atkHit is set to 1.
  2. For all other gags, if atkAcc exceeds 95%, it is automatically reduced to 95%.
  3. Except when using a Drop gag on lured Cogs, if atkAcc falls below 5%, it is automatically increased to 5%.

propAcc

propAcc is the base accuracy of a gag being used. For all gag tracks besides Toon-Up and Lure, every gag in the same track have the same propAcc value. Below are tables showing the propAcc values for every track, excluding Trap.

Toon-Up

Gag Image Base accuracy
Feather
70%
Megaphone
70%
Lipstick
70%
Bamboo Cane
70%
Pixie Dust
70%
Juggling Cubes
70%
High Dive
95%

Trap

Gag Image Base accuracy
Banana Peel
0%
Rake
0%
Marbles
0%
Quicksand
0%
Trapdoor
0%
TNT
0%
Railroad
0%

Lure

Gag Image Base accuracy Organic base accuracy
$1 Bill
50% 60%
Small Magnet
50% 60%
$5 Bill
60% 70%
Big Magnet
60% 70%
$10 Bill
70% 80%
Hypno-goggles
70% 80%
Presentation
95% 95%

Sound

Gag Image Base accuracy
Bike Horn
95%
Whistle
95%
Bugle
95%
Aoogah
95%
Elephant Trunk
95%
Foghorn
95%
Opera Singer
95%

Throw

Gag Image Base accuracy
Cupcake
75%
Fruit Pie Slice
75%
Cream Pie Slice
75%
Whole Fruit Pie
75%
Whole Cream Pie
75%
Birthday Cake
75%
Wedding Cake
75%

Squirt

Gag Image Base accuracy
Squirting Flower
95%
Glass of Water
95%
Squirt Gun
95%
Seltzer Bottle
95%
Fire Hose
95%
Storm Cloud
95%
Geyser
95%

Drop

Gag Image Base accuracy
Flower Pot
50%
Sandbag
50%
Anvil
50%
Big Weight
50%
Safe
50%
Grand Piano
50%
Toontanic
50%

trackExp

trackExp is a value determined by the highest gag a Toon has unlocked in a track. If multiple gags of the same track, excluding Toon-Up and Trap, are used on the same target with the same target column, the highest trackExp value out of Toons present in battle is used for the accuracy calculation. Below is a table showing the trackExp value at each gag level.

Gag level trackExp
Level 1 0
Level 2 10
Level 3 20
Level 4 30
Level 5 40
Level 6 50
Level 7 60

Special rules

  1. If a Toon-Up gag is used, trackExp is halved for that gag.

tgtDef

tgtDef is a negative integer determined by the targeted Cog level. Gags that target a single Cog takes the tgtDef value of that target alone, and gags that target multiple Cogs take the tgtDef value of the highest-level Cog in the group. Below is a table showing the tgtDef values for each Cog level.

Cog level tgtDef
Level 1 -2
Level 2 -5
Level 3 -10
Level 4 -12*/-15
Level 5 -15*/-20
Level 6 -25
Level 7 -30
Level 8 -35
Level 9 -40
Level 10 -45
Level 11 -50
Level 12 -55


Rank 1 Cogs used the tgtDef value with the asterisk for the marked levels.

Special rules

  1. If a Toon-Up gag is used, tgtDef is set to 0 for that gag.

bonus

bonus refers to two possible sources: PrevHits (commonly referred to as "stun bonus") and luredRatio.

PrevHits

In order for a gag to receive an accuracy bonus, it must meet both of the main conditions, and at least one of the sub-conditions.

Main

  1. The previous attack hit.
  2. The previous attack was not the same track as the current. In this instance, each individual gag used is counted as its own attack.

Sub

  1. The previous attack affected the group.
  2. The current attack affects the group.
  3. The current and previous attacks affect the same target.

Assuming the conditions are met, PrevHits is incremented by the number of previous hits * 20 on the target(s) in the current round, with a bonus of +60 being possible with three prior hits.

luredRatio

The luredRatio bonus is given to all Sound gags, and level 7 Throw or Squirt gags when there is a mixed set of lured and un-lured Cogs in battle, which is calculated using the following formula.

luredRatio = ([number of Cogs lured]) รท ([total Cogs in battle]) * 100

Trivia

  • SOS cards had previously worked based on the accuracy formula. The RNG roll for the cards were automatically set to 0%, resulting in Drop and Lure SOS missing or un-luring early. This was a bug that caused the accuracy calculations to be too low, thus failing to ensure that SOS cards could work as intended. However, this issue was fixed in the 2.6.7 update that was released on December 12, 2019, allowing SOS cards to have 100% accuracy.[1]

References