mirror of
https://github.com/islehorse/HISP.git
synced 2025-04-24 05:35:51 +12:00
Add Training Pens
This commit is contained in:
parent
99653314ed
commit
7b8583dcea
7 changed files with 274 additions and 13 deletions
31
Horse Isle Server/HorseIsleServer/Game/Services/Trainer.cs
Normal file
31
Horse Isle Server/HorseIsleServer/Game/Services/Trainer.cs
Normal file
|
@ -0,0 +1,31 @@
|
|||
using System;
|
||||
using System.Collections.Generic;
|
||||
using System.Linq;
|
||||
using System.Text;
|
||||
using System.Threading.Tasks;
|
||||
|
||||
namespace HISP.Game.Services
|
||||
{
|
||||
public class Trainer
|
||||
{
|
||||
public static List<Trainer> Trainers = new List<Trainer>();
|
||||
|
||||
public int Id;
|
||||
public string ImprovesStat;
|
||||
public int ImprovesAmount;
|
||||
public int ThirstCost;
|
||||
public int MoodCost;
|
||||
public int HungerCost;
|
||||
public int MoneyCost;
|
||||
public int ExperienceGained;
|
||||
|
||||
public static Trainer GetTrainerById(int id)
|
||||
{
|
||||
foreach (Trainer trainer in Trainers)
|
||||
if (trainer.Id == id)
|
||||
return trainer;
|
||||
|
||||
throw new KeyNotFoundException("Trainer " + id + " not found");
|
||||
}
|
||||
}
|
||||
}
|
Loading…
Add table
Add a link
Reference in a new issue