From Brotato Wiki

Revision as of 10:54, 4 December 2022 by Darkly77 (talk | contribs) (attack speed notes: use code formatting)

Itembox

Testing a new template, intended for use on mod pages.


PLEASE USE CTRL+F5 TO SEE THE NEW STYLES


Characters

Isaac
Character
  • +20% Attack Speed
  • -30% Damage
  • Start with 1 D6
  • Start with 6 Bomb

Isaac
Character
  • +8% chance to double the value of picked up materials
  • -250 Range
  • You start with 1 Lucky Foot
  • +15% Speed
  • -70% Range modifications
  • +15% Ranged Damage modifications
  • -20% Attack Speed modifications

Judas
Character
  • +15% Damage
  • You start with 1 The Book of Belial
  • +10% Crit Chance
  • -10 Armor
  • +25% Crit Chance modifications
  • -15% Max HP modifications

Magdalene
Character
  • +5 Max HP
  • +2% Damage for every -1% Speed you have [+24]
  • You start with 1 Yum Heart
  • You start with 3 Maggy's Faith
  • -10 HP Regeneration

Keeper
Character
  • +10 Max HP
  • Your Max HP is capped at its current value [20]
  • +20% chance to heal 1 HP when picking up a material
  • -100 HP Regeneration
  • -100% Life Steal
  • -5% Items Price

Eden
Character
  • Random Perk Item
  • Random Stat Item


Items

D6
Unique
  • +2 free reroll in the shop
  • -5 Luck
  • +5% Items Price

The Book of Belial
Unique
  • +1 temporary damage per crit kill
  • -10 Max HP
  • -10% Damage

Bomb
Limited (10)
  • A landmine spawns every -1 seconds dealing 56 (200% ) damage in an area

Lucky Foot
Limited (5)
  • +1% chance to get +1 Luck when picking up a material
  • -5% Speed

Maggy's Faith
Limited (3)
  • +1 Max HP at the end of a wave
  • -4% Speed

Yum Heart
Unique
  • +7 HP recovered from consumables
  • -20% Life Steal

Bomb Bag
Limited (3)
  • Flies with you
  • A landmine spawns every 20 seconds dealing 65 (200% ) damage in an area

Bloodshot Eye
Limited (6)
  • Spawns a companion that flies around you and shoots enemies for 8 damage (50% 50% )

8 Inch Nails
Unique
  • Damage modifications are increased by 10%


Weapons

Works with weapons too. Might be a bit excessive to show all tiers so I'm only showing the initial one here.


Isaac's Tears
Tears
  • Damage: 7/14/28/45 ()
  • Critical: x2 (3% chance)
  • Cooldown: 0.7/0.62/0.53/0.45s
  • Knockback: 10
  • Range: 700 (Ranged)
  • Piercing: 0/0/1/1

Isaac's Tears
Tears
  • Damage: 7 ()
  • Critical: x2 (3% chance)
  • Cooldown: 0.7s
  • Knockback: 10
  • Range: 700 (Ranged)

Number One
Tears
  • Damage: 4 (50%)
  • Critical: x2 (3% chance)
  • Cooldown: 0.45s
  • Knockback: 15
  • Range: 200 (Ranged)

The Inner Eye
Tears
  • Damage: 7x3 (50%)
  • Critical: x2 (3% chance)
  • Cooldown: 1.2s
  • Knockback: 10
  • Range: 300 (Ranged)

Mom's Knife II
Precise, Demonic
  • Damage: 30 (60%)
  • Critical: x1.5 (30% chance)
  • Cooldown: 1.3s
  • Knockback: 2
  • Range: 350 (Melee)


Circular Saw
Medical
  • Damage: 14 (50%)
  • Critical: x2 (10% chance)
  • Cooldown: 0.5s
  • Knockback: 10
  • Range: 350 (Melee)
  • Piercing: 2 (-20% damage)
  • Life Steal: 5%



Attack Speed Notes

In the game's code, a weapon's displayed "attack speed" is determined by both two of its stats: cooldown and recoil_duration, via weapon_stats.gd (see get_cooldown_text in ranged_weapon_stats.gd and melee_weapon_stats.gd)

Recoil Duration is almost always 0.1, except for 11 ranged weapons: Crossbow (0.15), Flamethrower (0.02), Laser Gun (0.2), Minigun (0.02), Nuclear Launcher (0.142), Obliterator (0.2), Rocket Launcher (0.142), Shredder (0.15), Slingshot (0.15), SMG (0.05), and Sniper Gun (0.2).

For ranged weapons, the displayed attack speed is calculated as:

(cooldown / 60) + (recoil_duration * 2)

For melee weapons, the displayed attack speed is calculated as:

(cooldown / 60) + recoil_duration + (atk_duration / 2) + back_duration

Here's what those melee variables mean:

  • back_duration = 0.2 / (1 + (stat_attack_speed * 3))
    • At 0 attack speed, this would be: 0.2
    • At 10 attack speed (0.1), this would be: 0.15
    • At 50 attack speed (0.5), this would be: 0.08
    • At 100 attack speed (1), this would be: 0.05
  • atk_duration = max(0.01, 0.2 - (stat_attack_speed / 10.0)) + range_factor * 0.15
  • range_factor = max(0.0, WPN.max_range / clamp(70.0 * (1 + (stat_attack_speed / 3)), 70.0, 120.0))
    • max gets the highest value, so here it can't be lower than 0
    • clamp makes sure the value isn't higher/lower than the specified numbers, so here it can't be lower than 70 or higher than 120