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 very low, low, medium, high, or perfect. Lower accuracy means that a gag has a greater chance of missing, and perfect accuracy guarantees that a gag will hit. These terms are associated with a percentage, which is not shown in the gag menu interface.

The Under New Management update introduced several changes to the accuracy logic of Lure gags and a minor change to the accuracy description of Drop gags by replacing low with very low.[1] No changes were made to the actual base accuracy of Drop gags.

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

Main page: 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

Main page: Trap
Gag Image Base accuracy
Banana Peel
0%
Rake
0%
Marbles
0%
Quicksand
0%
Trapdoor
0%
TNT
0%
Railroad
0%

Lure

Main page: Lure
Gag Image Base accuracy Organic base accuracy
$1 Bill
60% 70%
Small Magnet
55% 65%
$5 Bill
70% 80%
Big Magnet
65% 75%
$10 Bill
80% 90%
Hypno-goggles
75% 85%
Presentation
90% 95%

Sound

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

Throw

Main page: 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

Main page: 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

Main page: 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
Level 13-19 Unknown
Level 20 -65


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 is the sum of PrevHits (commonly referred to as "stun bonus") and luredRatio.

PrevHits

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 conditions

  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-conditions

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

Calculation

Assuming the main and sub conditions are met, PrevHits is incremented by the number of previous hits * 25 (excluding Trap) on the target(s) in the current round,[1] with a bonus of +75 being possible with three prior hits.

PrevHits is handled differently for Trap.[2]

  1. The first Trap gag that is placed grants +10 to PrevHits, but only for Lure.
  2. Further Trap gag placements grant an additional +5 to a group Lure gag.
  3. The PrevHits for Lure remain across multiple rounds, as long as Trap is present.
  4. When Trap is successfully activated by Lure, it grants +50 PrevHits regardless of the number of Trap gags activated, following the main and sub-conditions mentioned above.

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 was 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.[3]

References