From Brotato Wiki
(add more stuff) |
(more updates) |
||
Line 496: | Line 496: | ||
|} | |} | ||
== | ==List of Effect Keys== | ||
Lists most of the effect keys, taken the effect init arrays in run_data.gd (<code><small>init_tracked_effects</small></code> & <code><small>init_effects</small></code>). Many of these can be applied with {{Color|color=cream|text=effect.gd}} ({{Color|color=cream|text=res://items/global/effect.gd}}). | |||
See [[Stats#Secondary Stats|Stats > Secondary Stats]] for a list of the items these effects can apply to. | See [[Stats#Secondary Stats|Stats > Secondary Stats]] for a list of the items these effects can apply to. | ||
Line 557: | Line 557: | ||
=== Misc === | === Misc === | ||
Some of these are repeated form above, others are only set with <code><small>effect_key</small></code>. Search the decompiled project for <code><small>effect_key</small></code> to find the latter. | |||
{| class="wikitable" | {| class="wikitable" | ||
! | !key | ||
! | !text_key | ||
!Used In (effect file, *.tres) | |||
|- | |- | ||
|additional_weapon_effects | |additional_weapon_effects | ||
| | |~ | ||
|multitasker_effect_2 | |||
|- | |- | ||
|alien_eyes | |alien_eyes | ||
| | |effect_alien_eyes | ||
| | |alien_eyes_effect_1 | ||
|- | |- | ||
|bounce | |bounce | ||
| | |effect_bouncing | ||
|ricochet_effect_1 | |||
|- | |- | ||
|bounce_damage | |bounce_damage | ||
| | |~ | ||
|arms_dealer_effect_1b, engineer_effect_4, farmer_effect_4, one_arm_effect_2 | |||
|- | |- | ||
|burn_chance | |burn_chance | ||
| | |effect_burn_chance | ||
|scared_sausage_effect_1 | |||
|- | |- | ||
|burning_cooldown_reduction | |burning_cooldown_reduction | ||
| | |effect_burning_cooldown_reduction | ||
|eye_surgery_effect_1 | |||
|- | |- | ||
|burning_spread | |burning_spread | ||
| | |effect_burning_spread | ||
|snake_effect_1 | |||
|- | |- | ||
|can_attack_while_moving | |can_attack_while_moving | ||
| | |effect_cant_attack_while_moving | ||
|soldier_effect_5 | |||
|- | |- | ||
|cant_stop_moving | |cant_stop_moving | ||
| | | --- | ||
|{{Color|color=cream|text=Unused, but appears to have some code that supports it.}} | |||
|- | |- | ||
|chance_double_gold | |chance_double_gold | ||
| | |effect_chance_double_gold | ||
|metal_detector_effect_1 | |||
|- | |- | ||
|consumable_heal | |consumable_heal | ||
| | |effect_consumable_heal | ||
|alien_worm_effect_2, lemonade_effect_1, weird_food_effect_1, | |||
chunky_effect_3, chopper_effect, chopper_4_effect | |||
|- | |- | ||
|convert_stats_end_of_wave | |convert_stats_end_of_wave | ||
| | |effect_convert_stat_end_of_wave | ||
|demon_effect_1 | |||
|- | |- | ||
|diff_gold_drops | |diff_gold_drops | ||
| | | --- | ||
|{{Color|color=cream|text=Unused, but appears to have some code that supports it.}} | |||
|- | |- | ||
|dmg_when_death_from_luck | |dmg_when_death_from_luck | ||
| | |effect_deal_dmg_when_death | ||
|cyberball_effect_1 | |||
|- | |- | ||
|dmg_when_pickup_gold_from_luck | |dmg_when_pickup_gold_from_luck | ||
| | |effect_deal_dmg_when_pickup_gold | ||
|baby_elephant_effect_1, lucky_effect_3 | |||
|- | |- | ||
|dodge_cap | |dodge_cap | ||
| | |effect_dodge_cap | ||
|ghost_effect_3 | |||
|- | |- | ||
|double_boss | |double_boss | ||
| | |effect_double_boss | ||
|difficulty_5_effect_4 | |||
|- | |- | ||
|double_hp_regen | |double_hp_regen | ||
| | |effect_double_hp_regen | ||
|doctor_effect_3 | |||
|- | |||
|double_hp_regen_below_half_health | |||
|effect_double_hp_regen_below_half_health | |||
|potion_effect_1 | |||
|- | |- | ||
|enemy_gold_drops | |enemy_gold_drops | ||
|effect_enemy_gold_drops | |||
| | | | ||
|- | |- | ||
|enemy_speed | |enemy_speed | ||
| --- | |||
|- | |||
| | | | ||
|- | |- | ||
|enemy_strength | |enemy_strength | ||
| | |effect_stronger_enemies | ||
|difficulty_3_effect_2, difficulty_4_effect_2, difficulty_5_effect_2 | |||
|- | |- | ||
|explode_on_death | |explode_on_death | ||
|effect_explode_on_death | |||
| | | | ||
|- | |- | ||
|explode_on_hit | |explode_on_hit | ||
|effect_explode_on_hit | |||
| | | | ||
|- | |- | ||
|explosion_damage | |explosion_damage | ||
| | |~ | ||
|dynamite_effect_1, explosive_shells_effect_1, etc | |||
|- | |- | ||
|explosion_size | |explosion_size | ||
| | |~ | ||
|plastic_explosive_effect_1, artificer_effect_1b | |||
|- | |- | ||
|free_rerolls | |free_rerolls | ||
|effect_free_shop_reroll | |||
| | | | ||
|- | |- | ||
|gain_bounce_damage | |<s>'''gain_bounce_damage'''</s> | ||
| | |||
| | | | ||
|- | |- | ||
|gain_explosion_damage | |<s>'''gain_explosion_damage'''</s> | ||
| | |||
| | | | ||
|- | |- | ||
|gain_pct_gold_start_wave | |gain_pct_gold_start_wave | ||
|effect_gain_pct_gold_start_wave | |||
|piggy_bank_effect_1 | |||
|- | |||
|<s>'''gain_piercing_damage'''</s> | |||
| | |||
| | | | ||
|- | |- | ||
| | |'''<s>gambler</s>''' | ||
| | | | ||
| | | | ||
|- | |- | ||
|gold_drops | |gold_drops | ||
| | |effect_enemy_gold_drops | ||
|explorer_effect_8, farmer_effect_3, streamer_effect_2b | |||
|- | |- | ||
|gold_on_crit_kill | |gold_on_crit_kill | ||
| | |effect_gold_on_crit_kill | ||
|hunting_trophy_effect_1, dagger_effect | |||
|- | |- | ||
|group_structures | |group_structures | ||
| | |effect_group_structures | ||
|engineer_effect_3 | |||
|- | |- | ||
|harvesting_growth | |harvesting_growth | ||
| | |effect_harvesting_growth | ||
|crown_effect_1, farmer_effect_2 | |||
|- | |- | ||
|heal_when_pickup_gold | |heal_when_pickup_gold | ||
| | |effect_heal_when_pickup_gold | ||
|cute_monkey_effect_1 | |||
|- | |- | ||
|hp_cap | |hp_cap | ||
|effect_hp_cap_at_current_value | |||
| | | | ||
|- | |- | ||
|hp_shop | |hp_shop | ||
|effect_hp_shop | |||
| | | | ||
|- | |- | ||
|hp_start_next_wave | |hp_start_next_wave | ||
| | |||
| | | | ||
|- | |- | ||
|hp_start_wave | |hp_start_wave | ||
| | |||
| | | | ||
|- | |- | ||
|inflation | |inflation | ||
| | |||
| | | | ||
|- | |- | ||
|instant_gold_attracting | |instant_gold_attracting | ||
| | |||
| | | | ||
|- | |- | ||
|item_box_gold | |item_box_gold | ||
| | |||
| | | | ||
|- | |- | ||
|items_price | |items_price | ||
| | |||
| | | | ||
|- | |- | ||
|knockback | |knockback | ||
| | |||
| | | | ||
|- | |- | ||
|leave_burning | |leave_burning | ||
| | |||
| | | | ||
|- | |- | ||
|lose_hp_per_second | |lose_hp_per_second | ||
| | |||
| | | | ||
|- | |- | ||
|map_size | |map_size | ||
| | |||
| | | | ||
|- | |- | ||
|max_melee_weapons | |max_melee_weapons | ||
|effect_generalist | |||
| | | | ||
|- | |- | ||
|max_ranged_weapons | |max_ranged_weapons | ||
|[EMPTY] | |||
| | | | ||
|- | |- | ||
|max_weapon_tier | |max_weapon_tier | ||
| | |||
| | | | ||
|- | |- | ||
|min_weapon_tier | |min_weapon_tier | ||
| | |||
| | | | ||
|- | |- | ||
|neutral_gold_drops | |neutral_gold_drops | ||
| | |||
| | | | ||
|- | |- | ||
|no_melee_weapons | |no_melee_weapons | ||
| | |||
| | | | ||
|- | |- | ||
|no_min_range | |no_min_range | ||
| | |||
| | | | ||
|- | |- | ||
|no_ranged_weapons | |no_ranged_weapons | ||
| | |||
| | | | ||
|- | |- | ||
|number_of_enemies | |number_of_enemies | ||
| | |||
| | | | ||
|- | |- | ||
|one_shot_trees | |one_shot_trees | ||
| | |||
| | | | ||
|- | |- | ||
|pacifist | |pacifist | ||
| | |||
| | | | ||
|- | |- | ||
|pickup_range | |pickup_range | ||
| | |||
| | | | ||
|- | |- | ||
|piercing | |piercing | ||
| | |||
| | | | ||
|- | |- | ||
|piercing_damage | |piercing_damage | ||
| | |||
| | | | ||
|- | |- | ||
|projectiles_on_death | |projectiles_on_death | ||
| | |||
| | | | ||
|- | |- | ||
|recycling_gains | |recycling_gains | ||
| | |||
| | | | ||
|- | |- | ||
|remove_speed | |remove_speed | ||
| | |||
| | | | ||
|- | |- | ||
|starting_item | |starting_item | ||
| | |||
| | | | ||
|- | |- | ||
|stat_links | |stat_links | ||
| | |||
| | | | ||
|- | |- | ||
|stats_end_of_wave | |stats_end_of_wave | ||
| | |||
| | | | ||
|- | |- | ||
|structures | |structures | ||
| | |||
| | | | ||
|- | |- | ||
|temp_stats_on_hit | |temp_stats_on_hit | ||
| | |||
| | | | ||
|- | |- | ||
|temp_stats_stacking | |temp_stats_stacking | ||
| | |||
| | | | ||
|- | |- | ||
|temp_stats_while_not_moving | |temp_stats_while_not_moving | ||
| | |||
| | | | ||
|- | |- | ||
|torture | |torture | ||
| | |||
| | | | ||
|- | |- | ||
|trees | |trees | ||
| | |||
| | | | ||
|- | |- | ||
|trees_start_wave | |trees_start_wave | ||
|''<small>not specified</small>'' | |||
| | | | ||
|- | |- | ||
|unique_weapon_effects | |unique_weapon_effects | ||
| | |||
| | | | ||
|- | |- | ||
|wandering_bots | |wandering_bots | ||
| | |||
| | | | ||
|- | |- | ||
|weapon_bonus | |weapon_bonus | ||
| | |||
| | | | ||
|- | |- | ||
|weapon_class_bonus | |weapon_class_bonus | ||
| | |||
| | | | ||
|- | |- | ||
|weapon_slot | |weapon_slot | ||
|effect_no_weapons / effect_max_weapons | |||
| | | | ||
|- | |- | ||
|xp_gain | |xp_gain | ||
| | |||
| | | | ||
|} | |} |
Revision as of 17:43, 14 December 2022
This page documents the various effects in the vanilla game. Modders can apply these effects to their custom content.
This table doesn't fully explain how to use these effects. Please view their items/characters/weapons for usage.
The headings separate the files by their location, but effects can often be applied to things outside of that heading, eg. my effects in res://effects/items/*.gd are applied to characters too.
Item Effects
Despite the heading, these effects can actually be used by characters and weapons too. They're just stored in effects/items.
Effect File (*.gd) | key | text_key | Items | Characters | Misc |
---|---|---|---|---|---|
effect | Effect key, eg: stat_max_hp / bounce
|
not specified | many | - | - |
alien_eyes_effect | alien_eyes
|
effect_alien_eyes
|
Alien Eyes | - | - |
burn_chance_effect | burn_chance
|
effect_burn_chance
|
Scared Sausage | - | - |
class_bonus_effect | effect_weapon_class_bonus
|
not specified | - | Brawler, Crazy, Doctor,
Ghost, Wildling |
- |
convert_stat_effect | materials
|
effect_convert_stat_end_of_wave
|
- | Demon | - |
dmg_when_death_effect | dmg_when_death_from_luck
|
effect_deal_dmg_when_death
|
Cyberball | - | - |
dmg_when_pickup_gold_effect | dmg_when_pickup_gold_from_luck
|
effect_deal_dmg_when_pickup_gold
|
Baby Elephant | Lucky | - |
gain_stat_for_every_stat_effect | Effect key, eg: stat_max_hp / bounce
|
many | - | Artificer, Chunky, Generalist,
Hunter, Knight, Saver, Speedy |
- |
gain_stat_for_every_stat_effect | stat_attack_speed
|
effect_gain_stat_for_every_enemy
|
Community Support | - | - |
gain_stat_for_every_stat_effect | stat_hp_regeneration
|
effect_gain_stat_for_every_perm_stat
|
Esty's Couch | - | - |
gain_stat_for_every_stat_effect | stat_max_hp
|
effect_gain_stat_for_every_stat
|
Padding | - | - |
gain_stat_for_every_stat_effect | stat_percent_damage
|
effect_gain_stat_for_every_perm_stat
|
Power Generator | - | - |
gain_stat_for_every_stat_effect | stat_attack_speed
|
effect_gain_stat_for_every_stat
|
Retromations Hoodie | - | - |
gain_stat_for_every_stat_effect | stat_engineering
|
effect_gain_stat_for_every_stat
|
Strange Book | - | - |
healing_effect | effect_heal
|
not specified | - | - | Fruit, LegendaryBox |
hp_cap_effect | hp_cap
|
effect_hp_cap_at_current_value
|
Handcuffs | - | - |
item_exploding_effect | explode_on_hit
|
effect_explode_on_hit
|
- | Bull | - |
item_exploding_effect | explode_on_death
|
effect_explode_on_death
|
Landmine
Rip and Tear |
- | - |
pacifist_effect | pacifist
|
effect_pacifist
|
- | Pacifist | - |
projectile_effect | projectiles_on_death
|
effect_projectiles_on_death
|
Baby with a Beard | - | - |
remove_speed_effect | remove_speed
|
effect_remove_speed
|
Ugly Tooth | - | - |
replace_effect | double_hp_regen_below_half_health
|
effect_double_hp_regen_below_half_health
|
Potion | - | - |
replace_effect | minimum_weapons_in_shop
|
effect_minimum_weapon_in_shop
|
- | Arms Dealer | - |
replace_effect | weapon_slot
|
effect_no_weapons
|
- | Bull | - |
replace_effect | hp_shop
|
effect_hp_shop
|
- | Demon | - |
replace_effect | trees_start_wave
|
not specified | - | Explorer | - |
replace_effect | max_melee_weapons
|
effect_generalist
|
- | Generalist | - |
replace_effect | max_ranged_weapons
|
[EMPTY]
|
- | Generalist | - |
replace_effect | dodge_cap
|
effect_dodge_cap
|
- | Ghost | - |
replace_effect | weapon_slot
|
effect_max_weapons
|
- | Multitasker | - |
replace_effect | can_attack_while_moving
|
effect_cant_attack_while_moving
|
- | Soldier | - |
replace_effect | double_boss
|
effect_double_boss
|
- | - | Danger5 |
starting_item_effect | starting_item
|
effect_starting_item
|
- | Brawler, Crazy, Engineer,
Mage, Pacifist, Ranger, Saver, Wildling |
- |
stat_effect | stat_armor
|
effect_stat_while_not_moving
|
Barricade | - | - |
stat_effect | stat_dodge
|
effect_stat_while_not_moving
|
Chameleon | - | - |
stat_effect | gold_on_crit_kill
|
effect_gold_on_crit_kill
|
Hunting Trophy | - | - |
stat_effect | stat_attack_speed
|
effect_stat_while_not_moving
|
Statue | - | - |
stat_effect | stat_percent_damage
|
effect_on_hit
|
Triangle of Power | - | - |
stat_effect | stat_percent_damage
|
effect_gain_stat_end_of_wave
|
Vigilante Ring | - | - |
stat_effect | stat_percent_damage
|
effect_stack_stat
|
Wisdom | - | - |
stat_effect | stat_max_hp
|
effect_gain_stat_end_of_wave
|
Grind's Magical Leaf | - | - |
stat_effect | stat_hp_regeneration
|
effect_gain_stat_end_of_wave
|
Grind's Magical Leaf | - | - |
stat_effect | stat_lifesteal
|
effect_gain_stat_end_of_wave
|
Grind's Magical Leaf | - | - |
stat_gains_modification_effect | effect_increase_stat_gains
|
not specified | - | Many | - |
stat_gains_modification_effect | effect_reduce_stat_gains
|
not specified | - | Many | - |
structure_effect | not specified | effect_landmines
|
Landmines | - | Screwdriver |
tier_effect | min_weapon_tier
|
effect_min_weapon_tier
|
- | Knight | - |
tier_effect | max_weapon_tier
|
effect_max_weapon_tier
|
- | Wildling | - |
turret_effect | not specified | effect_turret
|
Turret | - | Wrench |
turret_effect | not specified | effect_turret_healing
|
Healing Turret | - | - |
turret_effect | not specified | effect_turret_laser
|
Laser Turret | - | - |
turret_effect | not specified | effect_turret_rocket
|
Rocket Turret | - | - |
turret_effect | not specified | effect_tyler
|
Tyler (Turret) | - | - |
turret_effect | wandering_bot
|
effect_wandering_bot
|
Wandering Bot | - | - |
turret_flame_effect | not specified | effect_turret_flame
|
Flame Turret | - | Wrench (Tier2) |
unique_weapon_effect | stat_attack_speed
|
effect_unique_weapon_bonus
|
Focus | - | - |
unique_weapon_effect | stat_attack_speed
|
effect_unique_weapon_bonus
|
Spider | - | - |
weapon_bonus_effect | ??? | ??? | unused | - | - |
weapon_gain_effect | ??? | ??? | unused | - |
Weapon Effects
Like Item Effects above, some of these can be used by items/characters.
Effect File (*.gd) | key | Used By |
---|---|---|
burning_effect | effect_burning
|
Flame Turret, Flaming Knuckles, Torch, Flamethrower, Wand |
exploding_effect | effect_explode_melee
|
Plank, Plasma Sledgehammer, Power Fist, Nuclear Launcher, Shredder |
gain_stat_every_killed_enemies_effect | effect_gain_stat_every_killed_enemies
|
Ghost Axe, Ghost Flint, Ghost Scepter |
null_effect | effect_no_modifiers
|
Danger 0 |
null_effect | effect_new_enemies
|
Danger 1 (and above) |
null_effect | effect_elites
|
Danger 2 (and above) |
null_effect | effect_more_elites
|
Danger 4 (and above) |
projectiles_on_hit_effect | effect_projectiles_on_hit
|
Cactus Mace, Sniper Gun |
projectiles_on_hit_effect | effect_lightning_on_hit
|
Lightning Shiv |
projectiles_on_hit_effect | effect_slow_projectiles_on_hit
|
Thunder Sword |
slow_in_zone_effect | effect_slow_in_zone
|
Taser |
weapon_stack_effect | effect_weapon_stack
|
Stick |
List of Effect Keys
Lists most of the effect keys, taken the effect init arrays in run_data.gd (init_tracked_effects
& init_effects
). Many of these can be applied with effect.gd (res://items/global/effect.gd).
See Stats > Secondary Stats for a list of the items these effects can apply to.
Primary Stats
Effect Key | Notes |
---|---|
stat_max_hp
|
|
stat_hp_regeneration
|
|
stat_lifesteal
|
|
stat_percent_damage
|
|
stat_melee_damage
|
|
stat_ranged_damage
|
|
stat_elemental_damage
|
|
stat_attack_speed
|
|
stat_crit_chance
|
|
stat_engineering
|
|
stat_range
|
|
stat_armor
|
|
stat_dodge
|
|
stat_speed
|
|
stat_luck
|
|
stat_harvesting
|
Misc
Some of these are repeated form above, others are only set with effect_key
. Search the decompiled project for effect_key
to find the latter.
key | text_key | Used In (effect file, *.tres) |
---|---|---|
additional_weapon_effects | ~ | multitasker_effect_2 |
alien_eyes | effect_alien_eyes | alien_eyes_effect_1 |
bounce | effect_bouncing | ricochet_effect_1 |
bounce_damage | ~ | arms_dealer_effect_1b, engineer_effect_4, farmer_effect_4, one_arm_effect_2 |
burn_chance | effect_burn_chance | scared_sausage_effect_1 |
burning_cooldown_reduction | effect_burning_cooldown_reduction | eye_surgery_effect_1 |
burning_spread | effect_burning_spread | snake_effect_1 |
can_attack_while_moving | effect_cant_attack_while_moving | soldier_effect_5 |
cant_stop_moving | --- | Unused, but appears to have some code that supports it. |
chance_double_gold | effect_chance_double_gold | metal_detector_effect_1 |
consumable_heal | effect_consumable_heal | alien_worm_effect_2, lemonade_effect_1, weird_food_effect_1,
chunky_effect_3, chopper_effect, chopper_4_effect |
convert_stats_end_of_wave | effect_convert_stat_end_of_wave | demon_effect_1 |
diff_gold_drops | --- | Unused, but appears to have some code that supports it. |
dmg_when_death_from_luck | effect_deal_dmg_when_death | cyberball_effect_1 |
dmg_when_pickup_gold_from_luck | effect_deal_dmg_when_pickup_gold | baby_elephant_effect_1, lucky_effect_3 |
dodge_cap | effect_dodge_cap | ghost_effect_3 |
double_boss | effect_double_boss | difficulty_5_effect_4 |
double_hp_regen | effect_double_hp_regen | doctor_effect_3 |
double_hp_regen_below_half_health | effect_double_hp_regen_below_half_health | potion_effect_1 |
enemy_gold_drops | effect_enemy_gold_drops | |
enemy_speed | --- | |
enemy_strength | effect_stronger_enemies | difficulty_3_effect_2, difficulty_4_effect_2, difficulty_5_effect_2 |
explode_on_death | effect_explode_on_death | |
explode_on_hit | effect_explode_on_hit | |
explosion_damage | ~ | dynamite_effect_1, explosive_shells_effect_1, etc |
explosion_size | ~ | plastic_explosive_effect_1, artificer_effect_1b |
free_rerolls | effect_free_shop_reroll | |
gain_pct_gold_start_wave | effect_gain_pct_gold_start_wave | piggy_bank_effect_1 |
gold_drops | effect_enemy_gold_drops | explorer_effect_8, farmer_effect_3, streamer_effect_2b |
gold_on_crit_kill | effect_gold_on_crit_kill | hunting_trophy_effect_1, dagger_effect |
group_structures | effect_group_structures | engineer_effect_3 |
harvesting_growth | effect_harvesting_growth | crown_effect_1, farmer_effect_2 |
heal_when_pickup_gold | effect_heal_when_pickup_gold | cute_monkey_effect_1 |
hp_cap | effect_hp_cap_at_current_value | |
hp_shop | effect_hp_shop | |
hp_start_next_wave | ||
hp_start_wave | ||
inflation | ||
instant_gold_attracting | ||
item_box_gold | ||
items_price | ||
knockback | ||
leave_burning | ||
lose_hp_per_second | ||
map_size | ||
max_melee_weapons | effect_generalist | |
max_ranged_weapons | [EMPTY] | |
max_weapon_tier | ||
min_weapon_tier | ||
neutral_gold_drops | ||
no_melee_weapons | ||
no_min_range | ||
no_ranged_weapons | ||
number_of_enemies | ||
one_shot_trees | ||
pacifist | ||
pickup_range | ||
piercing | ||
piercing_damage | ||
projectiles_on_death | ||
recycling_gains | ||
remove_speed | ||
starting_item | ||
stat_links | ||
stats_end_of_wave | ||
structures | ||
temp_stats_on_hit | ||
temp_stats_stacking | ||
temp_stats_while_not_moving | ||
torture | ||
trees | ||
trees_start_wave | not specified | |
unique_weapon_effects | ||
wandering_bots | ||
weapon_bonus | ||
weapon_class_bonus | ||
weapon_slot | effect_no_weapons / effect_max_weapons | |
xp_gain |