public void HandleEvent(PokemonEvolveEvent evt, Context ctx) { Logger.Write(evt.Result == EvolvePokemonResponse.Types.Result.Success ? $"{evt.Id} successfully for {evt.Exp}xp" : $"Failed {evt.Id}. EvolvePokemonOutProto.Result was {evt.Result}, stopping evolving {evt.Id}", LogLevel.Evolve); }
public void HandleEvent(PokemonEvolveEvent evt, Context ctx) { _stats.TotalExperience += evt.Exp; _stats.Dirty(ctx.Inventory); }