-
Notifications
You must be signed in to change notification settings - Fork 0
/
main_custom.py
30 lines (26 loc) · 1.24 KB
/
main_custom.py
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
from sim.heroes import Team, DummyTeam, Hero
from sim.models import Armor, Helmet, Weapon, Pendant, Rune, Artifact, Familiar
from sim.processing import GameSim, GauntletAttackSim, GauntletDefenseSim, GauntletSim, Game
from sim.tests import friend_boss_test, main_friend_boss_test, master_friend_boss_test, guild_boss_test, \
main_guild_boss_test, master_guild_boss_test, trial_test, main_trial_test, pvp_test, sim_setup
# List heroes
heroes = [Hero.__dict__[key] for key in Hero.__dict__ if '__' not in key and 'empty' not in key]
# Create teams
team_1 = Team([Hero.wolnir(),
Hero.valkyrie(),
Hero.lindberg(),
Hero.skuld(artifact=Artifact.tears_of_the_goddess.O6),
Hero.mars(artifact=Artifact.tears_of_the_goddess.O6),
Hero.skuld()])
print('This is team_1 :', team_1.comp())
team_2 = Team([Hero.phoenix(),
Hero.skuld(),
Hero.skuld(),
Hero.drow(artifact=Artifact.tears_of_the_goddess.O6),
Hero.monkey_king(artifact=Artifact.tears_of_the_goddess.O6),
Hero.shudde_m_ell()])
print('\nThis is team_2 :', team_2.comp())
# Do simulations
game = Game(team_1, team_2, verbose_full=True)
game.process()
print(game.log.text)