def on_round_start(game_event): """Executes round_start skills.""" global exp_values exp_values = cfg._retrieve_exp_values(cfg.exp_multiplier) send_advert() for player in PlayerIter(): player.hero.execute_skills( 'round_start', player=player, winner=game_event.get_int('winner'))
def on_round_start(game_event): """Executes round_start skills.""" global exp_values exp_values = cfg._retrieve_exp_values(cfg.exp_multiplier) send_advert() for player in PlayerIter(): player.hero.execute_skills('round_start', player=player, winner=game_event.get_int('winner'))
# ====================================================================== # Plugin info info = PluginInfo() info.name = 'Warcraft: GO' info.author = 'Mahi' info.version = '0.6.1' info.basename = 'wcgo' info.variable = "{0}_version".format(info.basename) # Public variable for plugin info info.convar = PublicConVar(info.variable, info.version, 0, "{0} Version".format(info.name)) # Experience Values exp_values = cfg._retrieve_exp_values(cfg.exp_multiplier) # Translation messages exp_messages = get_messages(LangStrings('wcgo/exp'), HintText) gold_messages = get_messages(LangStrings('wcgo/gold'), SayText2) other_messages = get_messages(LangStrings('wcgo/other'), SayText2) # ====================================================================== # >> FUNCTIONS # ====================================================================== def load(): """Setups the database upon sp load. Makes sure there are heroes on the server, restarts the game
info.name = 'Warcraft: GO' info.author = 'Mahi' info.version = '0.6.1' info.basename = 'wcgo' info.variable = "{0}_version".format(info.basename) # Public variable for plugin info info.convar = PublicConVar( info.variable, info.version, 0, "{0} Version".format(info.name) ) # Experience Values exp_values = cfg._retrieve_exp_values(cfg.exp_multiplier) # Translation messages exp_messages = get_messages(LangStrings('wcgo/exp'), HintText) gold_messages = get_messages(LangStrings('wcgo/gold'), SayText2) other_messages = get_messages(LangStrings('wcgo/other'), SayText2) # ====================================================================== # >> FUNCTIONS # ====================================================================== def load(): """Setups the database upon sp load. Makes sure there are heroes on the server, restarts the game