Ejemplo n.º 1
0
 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);
 }
Ejemplo n.º 2
0
 public void HandleEvent(PokemonEvolveEvent evt, Context ctx)
 {
     _stats.TotalExperience += evt.Exp;
     _stats.Dirty(ctx.Inventory);
 }