Refactor pet action management: rename PetAction to PetBasicAction, update related properties and methods, and enhance pet stats with maximum values.
This commit is contained in:
@@ -11,6 +11,10 @@ namespace pet_companion_api.Models
|
||||
public int Strength { get; set; }
|
||||
public int Charisma { get; set; }
|
||||
|
||||
public int MaxIntelligence { get; set; }
|
||||
public int MaxStrength { get; set; }
|
||||
public int MaxCharisma { get; set; }
|
||||
|
||||
public static PetStats BuildFromClass(PetClass petClass)
|
||||
{
|
||||
var stats = new PetStats();
|
||||
@@ -59,6 +63,10 @@ namespace pet_companion_api.Models
|
||||
break;
|
||||
}
|
||||
|
||||
stats.MaxIntelligence = stats.Intelligence;
|
||||
stats.MaxStrength = stats.Strength;
|
||||
stats.MaxCharisma = stats.Charisma;
|
||||
|
||||
return stats;
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user