Overwrite
Complete Overwrite of the Folder with the free shard. ServUO 57.3 has been added.
This commit is contained in:
55
Scripts/Services/Pet Training/TrainingPoint.cs
Normal file
55
Scripts/Services/Pet Training/TrainingPoint.cs
Normal file
@@ -0,0 +1,55 @@
|
||||
using System;
|
||||
using Server;
|
||||
using Server.Gumps;
|
||||
|
||||
namespace Server.Mobiles
|
||||
{
|
||||
public class TrainingPoint
|
||||
{
|
||||
public object TrainPoint { get; set; }
|
||||
public double Weight { get; set; }
|
||||
public int Start { get; set; }
|
||||
public int Max { get; set; }
|
||||
public TextDefinition Name { get; set; }
|
||||
public TextDefinition Description { get; set; }
|
||||
|
||||
public TrainingPointRequirement[] Requirements { get; set; }
|
||||
|
||||
public TrainingPoint(object trainpoint, double weight, int start, int max, TextDefinition name, TextDefinition description, params TrainingPointRequirement[] requirements)
|
||||
{
|
||||
TrainPoint = trainpoint;
|
||||
Weight = weight;
|
||||
Start = start;
|
||||
Max = max;
|
||||
|
||||
Name = name;
|
||||
Description = description;
|
||||
|
||||
Requirements = requirements;
|
||||
}
|
||||
|
||||
public int GetMax(BaseCreature bc)
|
||||
{
|
||||
if (TrainPoint is PetStat && (PetStat)TrainPoint == PetStat.BaseDamage)
|
||||
{
|
||||
return PetTrainingHelper.GetMaxDamagePerSecond(bc);
|
||||
}
|
||||
|
||||
return Max;
|
||||
}
|
||||
}
|
||||
|
||||
public class TrainingPointRequirement
|
||||
{
|
||||
public object Requirement { get; set; }
|
||||
public int Cost { get; set; }
|
||||
public TextDefinition Name { get; set; }
|
||||
|
||||
public TrainingPointRequirement(object requirement, int cost, TextDefinition name)
|
||||
{
|
||||
Requirement = requirement;
|
||||
Cost = cost;
|
||||
Name = name;
|
||||
}
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user