-
Notifications
You must be signed in to change notification settings - Fork 24
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
use
Set.has
instead of toModifier
or arrayContains
- Loading branch information
1 parent
8cd45eb
commit 33f3d68
Showing
3 changed files
with
13 additions
and
18 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,8 +1,8 @@ | ||
// THIS FILE IS AUTOMATICALLY GENERATED. See tools/parseModifiers.ts for more information | ||
export const stringModifiers = ["Class","Intrinsic Effect","Equalize","Wiki Name","Modifiers","Outfit","Stat Tuning","Effect","Equips On","Familiar Effect","Jiggle","Equalize Muscle","Equalize Mysticality","Equalize Moxie","Avatar","Rollover Effect","Skill","Floor Buffed Muscle","Floor Buffed Mysticality","Floor Buffed Moxie","Plumber Stat","Recipe","Evaluated Modifiers"] as const; | ||
export type StringModifier = typeof stringModifiers[number]; | ||
export const stringModifiersSet = new Set(stringModifiers)export type StringModifier = typeof stringModifiers[number]; | ||
export const booleanModifiers = ["Softcore Only","Single Equip","Always Fumble","Never Fumble","Weakens Monster","Free Pull","Variable","Nonstackable Watch","Cold Immunity","Hot Immunity","Sleaze Immunity","Spooky Immunity","Stench Immunity","Cold Vulnerability","Hot Vulnerability","Sleaze Vulnerability","Spooky Vulnerability","Stench Vulnerability","Moxie Controls MP","Moxie May Control MP","Four Songs","Adventure Randomly","Adventure Underwater","Underwater Familiar","Generic","Unarmed","No Pull","Lasts Until Rollover","Alters Page Text","Attacks Can't Miss","Pirate","Blind","Breakable","Drops Items","Drops Meat","Volleyball or Sombrero","Extra Pickpocket","Negative Status Resist"] as const; | ||
export type BooleanModifier = typeof booleanModifiers[number]; | ||
export const booleanModifiersSet = new Set(booleanModifiers)export type BooleanModifier = typeof booleanModifiers[number]; | ||
export const numericModifiers = ["Familiar Weight","Monster Level","Combat Rate","Initiative","Experience","Item Drop","Meat Drop","Damage Absorption","Damage Reduction","Cold Resistance","Hot Resistance","Sleaze Resistance","Spooky Resistance","Stench Resistance","Mana Cost","Moxie","Moxie Percent","Muscle","Muscle Percent","Mysticality","Mysticality Percent","Maximum HP","Maximum HP Percent","Maximum MP","Maximum MP Percent","Weapon Damage","Ranged Damage","Spell Damage","Spell Damage Percent","Cold Damage","Hot Damage","Sleaze Damage","Spooky Damage","Stench Damage","Cold Spell Damage","Hot Spell Damage","Sleaze Spell Damage","Spooky Spell Damage","Stench Spell Damage","Underwater Combat Rate","Fumble","HP Regen Min","HP Regen Max","MP Regen Min","MP Regen Max","Adventures","Familiar Weight Percent","Weapon Damage Percent","Ranged Damage Percent","Stackable Mana Cost","Hobo Power","Base Resting HP","Resting HP Percent","Bonus Resting HP","Base Resting MP","Resting MP Percent","Bonus Resting MP","Critical Hit Percent","PvP Fights","Volleyball","Sombrero","Leprechaun","Fairy","Meat Drop Penalty","Hidden Familiar Weight","Item Drop Penalty","Initiative Penalty","Food Drop","Booze Drop","Hat Drop","Weapon Drop","Offhand Drop","Shirt Drop","Pants Drop","Accessory Drop","Volleyball Effectiveness","Sombrero Effectiveness","Leprechaun Effectiveness","Fairy Effectiveness","Familiar Weight Cap","Slime Resistance","Slime Hates It","Spell Critical Percent","Muscle Experience","Mysticality Experience","Moxie Experience","Effect Duration","Candy Drop","DB Combat Damage","Sombrero Bonus","Familiar Experience","Sporadic Meat Drop","Sporadic Item Drop","Meat Bonus","Pickpocket Chance","Combat Mana Cost","Muscle Experience Percent","Mysticality Experience Percent","Moxie Experience Percent","Minstrel Level","Muscle Limit","Mysticality Limit","Moxie Limit","Song Duration","Prismatic Damage","Smithsness","Supercold Resistance","Reduce Enemy Defense","Pool Skill","Familiar Damage","Gear Drop","Maximum Hooch","Water Level","Crimbot Outfit Power","Familiar Tuning Muscle","Familiar Tuning Mysticality","Familiar Tuning Moxie","Random Monster Modifiers","Luck","Othello Skill","Disco Style","Rollover Effect Duration","Sixgun Damage","Fishing Skill","Additional Song","Sprinkle Drop","Absorb Adventures","Absorb Stats","Rubee Drop","Kruegerand Drop","WarBear Armor Penetration","Maximum PP","Plumber Power","Drippy Damage","Drippy Resistance","Energy","Scrap","Familiar Action Bonus","Water","Spleen Drop","Potion Drop","Sauce Spell Damage","Monster Level Percent","Food Fairy","Booze Fairy","Candy Fairy","Food Fairy Effectiveness","Booze Fairy Effectiveness","Candy Fairy Effectiveness","Damage Aura","Sporadic Damage Aura","Thorns","Sporadic Thorns","Stomach Capacity","Liver Capacity","Spleen Capacity","Free Rests","Leaves","Elf Warfare Effectiveness","Pirate Warfare Effectiveness","MPC Drop","Piece of Twelve Drop","Combat Item Damage Percent","Avoid Attack","Damage vs. Bugbears","Damage vs. Werewolves","Damage vs. Zombies","Damage vs. Ghosts","Damage vs. Vampires","Damage vs. Skeletons","Damage vs. Undead"] as const; | ||
export type NumericModifier = typeof numericModifiers[number]; | ||
export const numericModifiersSet = new Set(numericModifiers)export type NumericModifier = typeof numericModifiers[number]; | ||
export type ModifierType = NumericModifier | StringModifier | BooleanModifier; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters