Tippy, the helpful hint clown! (#26767)
* Tippy is BACK * Clean up clippy from aprils fools * Changed names from clippy to tippy, added localization, removed local_clippy command, made it easier to target a specific player * Rename clippy.yml to tippy.yml --------- Co-authored-by: Kara <lunarautomaton6@gmail.com>
This commit is contained in:
@@ -435,6 +435,12 @@ namespace Content.Shared.CCVar
|
||||
public static readonly CVarDef<string> LoginTipsDataset =
|
||||
CVarDef.Create("tips.login_dataset", "Tips");
|
||||
|
||||
/// <summary>
|
||||
/// The chance for Tippy to replace a normal tip message.
|
||||
/// </summary>
|
||||
public static readonly CVarDef<float> TipsTippyChance =
|
||||
CVarDef.Create("tips.tippy_chance", 0.01f);
|
||||
|
||||
/*
|
||||
* Console
|
||||
*/
|
||||
@@ -1985,6 +1991,10 @@ namespace Content.Shared.CCVar
|
||||
public static readonly CVarDef<bool> GatewayGeneratorEnabled =
|
||||
CVarDef.Create("gateway.generator_enabled", true);
|
||||
|
||||
// Clippy!
|
||||
public static readonly CVarDef<string> TippyEntity =
|
||||
CVarDef.Create("tippy.entity", "Tippy", CVar.SERVER | CVar.REPLICATED);
|
||||
|
||||
/*
|
||||
* DEBUG
|
||||
*/
|
||||
|
||||
19
Content.Shared/Tips/TippyEvent.cs
Normal file
19
Content.Shared/Tips/TippyEvent.cs
Normal file
@@ -0,0 +1,19 @@
|
||||
|
||||
using Robust.Shared.Serialization;
|
||||
|
||||
namespace Content.Shared.Tips;
|
||||
|
||||
[Serializable, NetSerializable]
|
||||
public sealed class TippyEvent : EntityEventArgs
|
||||
{
|
||||
public TippyEvent(string msg)
|
||||
{
|
||||
Msg = msg;
|
||||
}
|
||||
|
||||
public string Msg;
|
||||
public string? Proto;
|
||||
public float SpeakTime = 5;
|
||||
public float SlideTime = 3;
|
||||
public float WaddleInterval = 0.5f;
|
||||
}
|
||||
Reference in New Issue
Block a user