TwitchPlaysPokemon / public

Public repo for tracking on-going developer work, user-created issues, and public-facing documentation
5 stars 2 forks source link

Add some pbr mode restrictions based on team sizes #148

Closed ghost closed 2 years ago

ghost commented 2 years ago

The following are restricted, both for token matches and autogenerated matches:

* bulk ratio is defined by:

def meets_base_stats_bulk_ratio(mon, ratio):
    basestats = mon['basestats']
    return (
        ((basestats['hp'] + basestats['def'] + basestats['spD']) / 3)
        /
        ((basestats['atk'] + basestats['spA']) / 2)
    ) >= ratio

bulk 1.5+ pokemon are: Metapod, Kakuna, Onix, Chansey, Magikarp, Ledyba, Ledian, Togepi, Marill, Azumarill, Umbreon, Wobbuffet, Steelix, Shuckle, Mantine, Skarmory, Smeargle, Blissey, Azurill, Nosepass, Lileep, Feebas, Duskull, Dusclops, Wynaut, Luvdisc, Regirock, Regice, Registeel, Kricketot, Shieldon, Bastiodon, Pachirisu, Bronzor, Happiny, Skorupi, Mantyke, Probopass, Cresselia bulk 2.0+ pokemon are: Onix, Chansey, Magikarp, Marill, Wobbuffet, Shuckle, Smeargle, Blissey, Azurill, Feebas, Wynaut, Bastiodon, Bronzor, Happiny

ghost commented 2 years ago

fixed by https://github.com/TwitchPlaysPokemon/tpp/commit/52a2aa778f193c2578338063c41c7a859c6f33b4 and https://github.com/TwitchPlaysPokemon/tpp/commit/02604a283f5536266973d4d781a316ef8336dd0a