Add BasicStatFormat

This commit is contained in:
SilicaAndPina 2021-01-07 02:35:48 +13:00
parent 65f27553df
commit 3d625459b2
4 changed files with 24 additions and 14 deletions

View file

@ -132,7 +132,7 @@
"password_input":"<BR>^PLReply:|^PS14|ANSWER^R1", "password_input":"<BR>^PLReply:|^PS14|ANSWER^R1",
"last_poet":"^R1^LLast Player Poet:%USERNAME% ^R1", "last_poet":"^R1^LLast Player Poet:%USERNAME% ^R1",
"horse":{ "horse":{
"stat_format":"%BASE%;%COMPAINON%;%TACK%;%MAX%;", "stat_format":"^AA%BASE%;%COMPAINON%;%TACK%;%MAX%;",
"basic_stat_format":"^AB%HEALTH%;%HUNGER%;%THIRST%;%MOOD%;%ENERGY%;%GROOM%;%SHOES%;^H", "basic_stat_format":"^AB%HEALTH%;%HUNGER%;%THIRST%;%MOOD%;%ENERGY%;%GROOM%;%SHOES%;^H",
"horses_here":"<B>HORSES HERE:</B><BR>", "horses_here":"<B>HORSES HERE:</B><BR>",
"wild_horse":"^I252^T6%NAME%, It's a %BREED%^B3U%RANDOMID%^R1", "wild_horse":"^I252^T6%NAME%, It's a %BREED%^B3U%RANDOMID%^R1",
@ -172,7 +172,7 @@
"no_companion":"^T5Horse has no companion^D6|SELECT^R1", "no_companion":"^T5Horse has no companion^D6|SELECT^R1",
"advanced_stats":"^H<B>ADVANCED STATS:</B><BR> Special treats:%SPOILED% Magic residue:%MAGICUSED%<BR>", "advanced_stats":"^H<B>ADVANCED STATS:</B><BR> Special treats:%SPOILED% Magic residue:%MAGICUSED%<BR>",
"breed_details":"<B>BREED DETAILS:</B><BR>Name: %BREED%<BR>Description: %DESCRIPTION%", "breed_details":"^H<B>BREED DETAILS:</B><BR>Name: %BREED%<BR>Description: %DESCRIPTION%",
"height_range":"<BR>Average Height Range: %MIN%-%MAX% hands<BR>", "height_range":"<BR>Average Height Range: %MIN%-%MAX% hands<BR>",
"possible_colors":"<BR>Possible Colors: black,brown,chestnut,bay,grey,roan<BR>", "possible_colors":"<BR>Possible Colors: black,brown,chestnut,bay,grey,roan<BR>",
"release_horse":"^D8|RELEASE HORSE^R1", "release_horse":"^D8|RELEASE HORSE^R1",
@ -189,7 +189,7 @@
"find_npc_limit5":"^L- Limited to 5 results. Try narrowing the search.^R1", "find_npc_limit5":"^L- Limited to 5 results. Try narrowing the search.^R1",
"horse_breed_format":"^I252^T7Horse Breed %NAME%:^D4c%ID%|VIEW^R1", "horse_breed_format":"^I252^T7Horse Breed %NAME%:^D4c%ID%|VIEW^R1",
"horse_relative_format":"^I252^T7A Horse Relative, the %NAME%:^D4c%ID%|VIEW^R1", "horse_relative_format":"^I252^T7A Horse Relative, the %NAME%:^D4c%ID%|VIEW^R1",
"maximum_stats":"<B>MAXIMUM STATS:</B><BR>^AA", "maximum_stats":"<B>MAXIMUM STATS:</B><BR>",
"breed_preview_format":"<B>Viewing %NAME%:</B><BR>%DESCRIPTION%^D4|RETURN TO BREED LIST^R2^H" "breed_preview_format":"<B>Viewing %NAME%:</B><BR>%DESCRIPTION%^D4|RETURN TO BREED LIST^R2^H"
}, },
"multiroom":{ "multiroom":{

View file

@ -163,7 +163,8 @@ namespace HISP.Game
// Horse // Horse
public static string BreedViewerMaximumStats; public static string BreedViewerMaximumStats;
public static string StatFormat; public static string AdvancedStatFormat;
public static string BasicStatFormat;
public static string HorsesHere; public static string HorsesHere;
public static string WildHorseFormat; public static string WildHorseFormat;
public static string HorseCaptureTimer; public static string HorseCaptureTimer;
@ -176,6 +177,9 @@ namespace HISP.Game
public static string ViewBaiscStats; public static string ViewBaiscStats;
public static string ViewAdvancedStats; public static string ViewAdvancedStats;
// Consume // Consume
public static string ConsumeItemFormat; public static string ConsumeItemFormat;
@ -388,10 +392,15 @@ namespace HISP.Game
{ {
return BreedViewerFormat.Replace("%NAME%", name).Replace("%DESCRIPTION%", description); return BreedViewerFormat.Replace("%NAME%", name).Replace("%DESCRIPTION%", description);
} }
public static string FormatHorseStat(int baseStat, int companionBoost, int tackBoost, int maxStat) public static string FormatHorseAdvancedStat(int baseStat, int companionBoost, int tackBoost, int maxStat)
{ {
return StatFormat.Replace("%BASE%", baseStat.ToString()).Replace("%COMPAINON%", companionBoost.ToString()).Replace("%TACK%", tackBoost.ToString()).Replace("%MAX%", maxStat.ToString()); return AdvancedStatFormat.Replace("%BASE%", baseStat.ToString()).Replace("%COMPAINON%", companionBoost.ToString()).Replace("%TACK%", tackBoost.ToString()).Replace("%MAX%", maxStat.ToString());
} }
public static string FormatHorseBasicStat(int health, int hunger, int thirst, int mood, int energy, int groom, int shoes)
{
return BasicStatFormat.Replace("%HEALTH%", health.ToString()).Replace("%HUNGER%", hunger.ToString()).Replace("%THIRST%", thirst.ToString()).Replace("%MOOD%", mood.ToString()).Replace("%ENERGY%", energy.ToString()).Replace("%GROOM%", groom.ToString()).Replace("%SHOES%", shoes.ToString());
}
public static string FormatHorseRelative(string name, int id) public static string FormatHorseRelative(string name, int id)
{ {
return HorseRelativeFormat.Replace("%NAME%", name).Replace("%ID%", id.ToString()); return HorseRelativeFormat.Replace("%NAME%", name).Replace("%ID%", id.ToString());

View file

@ -638,13 +638,13 @@ namespace HISP.Game
{ {
string message = Messages.FormatHorseBreedPreview(breed.Name, breed.Description); string message = Messages.FormatHorseBreedPreview(breed.Name, breed.Description);
message += Messages.BreedViewerMaximumStats; message += Messages.BreedViewerMaximumStats;
message += Messages.FormatHorseStat(breed.BaseStats.Speed * 2, 0, 0, breed.BaseStats.Speed * 2); message += Messages.FormatHorseAdvancedStat(breed.BaseStats.Speed * 2, 0, 0, breed.BaseStats.Speed * 2);
message += Messages.FormatHorseStat(breed.BaseStats.Strength * 2, 0, 0, breed.BaseStats.Strength * 2); message += Messages.FormatHorseAdvancedStat(breed.BaseStats.Strength * 2, 0, 0, breed.BaseStats.Strength * 2);
message += Messages.FormatHorseStat(breed.BaseStats.Conformation * 2, 0, 0, breed.BaseStats.Conformation * 2); message += Messages.FormatHorseAdvancedStat(breed.BaseStats.Conformation * 2, 0, 0, breed.BaseStats.Conformation * 2);
message += Messages.FormatHorseStat(breed.BaseStats.Agility * 2, 0, 0, breed.BaseStats.Agility * 2); message += Messages.FormatHorseAdvancedStat(breed.BaseStats.Agility * 2, 0, 0, breed.BaseStats.Agility * 2);
message += Messages.FormatHorseStat(breed.BaseStats.Endurance * 2, 0, 0, breed.BaseStats.Endurance * 2); message += Messages.FormatHorseAdvancedStat(breed.BaseStats.Endurance * 2, 0, 0, breed.BaseStats.Endurance * 2);
message += Messages.FormatHorseStat(breed.BaseStats.Inteligence * 2, 0, 0, breed.BaseStats.Inteligence * 2); message += Messages.FormatHorseAdvancedStat(breed.BaseStats.Inteligence * 2, 0, 0, breed.BaseStats.Inteligence * 2);
message += Messages.FormatHorseStat(breed.BaseStats.Personality * 2, 0, 0, breed.BaseStats.Personality * 2); message += Messages.FormatHorseAdvancedStat(breed.BaseStats.Personality * 2, 0, 0, breed.BaseStats.Personality * 2);
message += Messages.BackToMap; message += Messages.BackToMap;
message += Messages.MetaTerminator; message += Messages.MetaTerminator;
return message; return message;

View file

@ -596,7 +596,8 @@ namespace HISP.Server
Messages.BankWithdrewMoneyFormat = gameData.messages.bank.withdraw_format; Messages.BankWithdrewMoneyFormat = gameData.messages.bank.withdraw_format;
// Horses // Horses
Messages.StatFormat = gameData.messages.meta.horse.stat_format; Messages.AdvancedStatFormat = gameData.messages.meta.horse.stat_format;
Messages.BasicStatFormat = gameData.messages.meta.horse.basic_stat_format;
Messages.HorsesHere = gameData.messages.meta.horse.horses_here; Messages.HorsesHere = gameData.messages.meta.horse.horses_here;
Messages.WildHorseFormat = gameData.messages.meta.horse.wild_horse; Messages.WildHorseFormat = gameData.messages.meta.horse.wild_horse;
Messages.HorseCaptureTimer = gameData.messages.meta.horse.horse_timer; Messages.HorseCaptureTimer = gameData.messages.meta.horse.horse_timer;