mirror of
https://github.com/edgegamers/Jailbreak.git
synced 2025-12-06 04:42:57 -08:00
51 lines
1.4 KiB
C#
51 lines
1.4 KiB
C#
using CounterStrikeSharp.API.Modules.Utils;
|
|
using Jailbreak.Formatting.Base;
|
|
using Jailbreak.Formatting.Core;
|
|
using Jailbreak.Formatting.Logistics;
|
|
using Jailbreak.Formatting.Objects;
|
|
using Jailbreak.Formatting.Views.SpecialDay;
|
|
|
|
namespace Jailbreak.English.SpecialDay;
|
|
|
|
public class SDLocale : ISDLocale, ILanguage<Formatting.Languages.English> {
|
|
public static readonly FormatObject PREFIX =
|
|
new HiddenFormatObject($" {ChatColors.DarkBlue}Game>") {
|
|
// Hide in panorama and center text
|
|
Plain = false, Panorama = false, Chat = true
|
|
};
|
|
|
|
public IView SpecialDayRunning(string name) {
|
|
return new SimpleView {
|
|
PREFIX,
|
|
"The current day is",
|
|
ChatColors.BlueGrey + name + ChatColors.Grey + "."
|
|
};
|
|
}
|
|
|
|
public IView InvalidSpecialDay(string name) {
|
|
return new SimpleView {
|
|
PREFIX,
|
|
ChatColors.Red + name,
|
|
ChatColors.Grey + "is not a valid special day."
|
|
};
|
|
}
|
|
|
|
public IView SpecialDayCooldown(int rounds) {
|
|
return new SimpleView {
|
|
PREFIX,
|
|
"You must wait",
|
|
rounds,
|
|
"more round" + (rounds == 1 ? "" : "s")
|
|
+ " before starting a special day."
|
|
};
|
|
}
|
|
|
|
public IView TooLateForSpecialDay(int maxTime) {
|
|
return new SimpleView {
|
|
PREFIX,
|
|
"You must start a special day within",
|
|
maxTime,
|
|
"second" + (maxTime == 1 ? "" : "s") + " of round start."
|
|
};
|
|
}
|
|
} |