mirror of
https://github.com/islehorse/HISP.git
synced 2025-04-21 12:19:15 +12:00
fix some stuf
This commit is contained in:
parent
af1ce516f4
commit
48c9760599
6 changed files with 27 additions and 26 deletions
|
@ -289,7 +289,8 @@ namespace HISP.Game
|
|||
public static string HorseStopRidingMessage;
|
||||
|
||||
public static string HorsePetMessageFormat;
|
||||
public static string HorsePetTooHappyFormat;
|
||||
public static string HorsePetTooHappy;
|
||||
public static string HorsePetTooTired;
|
||||
public static string HorseSetNewCategoryMessageFormat;
|
||||
|
||||
public static string HorseAutoSellMenuFormat;
|
||||
|
@ -815,15 +816,10 @@ namespace HISP.Game
|
|||
{
|
||||
return HorseDescriptionEditFormat.Replace("%HORSENAME%", username).Replace("%DESCRIPTION%", description);
|
||||
}
|
||||
public static string FormatHorsePetMessage(int mood, int tiredness)
|
||||
public static string FormatHorsePetMessage(string messages, int mood, int tiredness)
|
||||
{
|
||||
return HorsePetMessageFormat.Replace("%MOOD%", mood.ToString()).Replace("%TIREDNESS%", tiredness.ToString());
|
||||
return HorsePetMessageFormat.Replace("%MESSAGES%", messages).Replace("%MOOD%", mood.ToString()).Replace("%TIREDNESS%", tiredness.ToString());
|
||||
}
|
||||
public static string FormatHorsePetTooHappyMessage(int mood, int tiredness)
|
||||
{
|
||||
return HorsePetTooHappyFormat.Replace("%MOOD%", mood.ToString()).Replace("%TIREDNESS%", tiredness.ToString());
|
||||
}
|
||||
|
||||
public static string FormatHorseCurrentStatus(string name)
|
||||
{
|
||||
return HorseCurrentStatusFormat.Replace("%HORSENAME%", name);
|
||||
|
|
|
@ -1088,7 +1088,7 @@ namespace HISP.Game
|
|||
string npc = buildNpc(user, specialTile.X, specialTile.Y);
|
||||
message += npc;
|
||||
|
||||
if (specialTile.Code == null)
|
||||
if (specialTile.Code == null || specialTile.Code == "")
|
||||
message += buildCommonInfo(specialTile.X, specialTile.Y);
|
||||
else
|
||||
{
|
||||
|
|
|
@ -201,6 +201,8 @@ namespace HISP.Game
|
|||
{
|
||||
ServerTime.Days += 1;
|
||||
ServerTime.Minutes = 0;
|
||||
|
||||
Database.DoIntrestPayments(ConfigReader.IntrestRate);
|
||||
}
|
||||
|
||||
if (ServerTime.Days == 366) // 1 year!
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue