Add tutorial system. Fox bugs raised by the group chat

This commit is contained in:
WillJeynes
2026-08-29 19:51:34 +01:00
parent 44c59c425c
commit fec7b392b5
23 changed files with 1075 additions and 124 deletions
+28 -13
View File
@@ -46,15 +46,15 @@ public class GuardManager : MonoBehaviour, IDescribable
// Update is called once per frame
void Update()
{
if (isfocussed == 2 && focusLight.intensity < 200)
if (isfocussed == 2 && focusLight.intensity < 250)
{
focusLight.intensity += Time.deltaTime * 100;
}
else if (isfocussed == 1 && focusLight.intensity < 100)
else if (isfocussed == 1 && focusLight.intensity < 150)
{
focusLight.intensity += Time.deltaTime * 100;
}
else if (isfocussed == 0 && focusLight.intensity > 60)
else if (isfocussed == 0 && focusLight.intensity > 100)
{
focusLight.intensity -= Time.deltaTime * 100;
}
@@ -148,24 +148,39 @@ public class GuardManager : MonoBehaviour, IDescribable
public string GetName()
{
return type;
if (type == "TRUTHER")
{
return "Veritas";
}
else if (type == "LIAR")
{
return "Vesper";
}
else
{
return "Jester";
}
}
public string GetDescribeName()
{
if (!string.IsNullOrEmpty(mod))
{
return mod;
}
else
{
return "plain guard";
}
return GetUnknownDescription().CapitalizeFirstLetter();
}
public string GetDescription()
{
return "Describe " + type;
if (type == "TRUTHER")
{
return "Sworn by oath to always tell the truth, at all costs.";
}
else if (type == "LIAR")
{
return "Cursed to always tell the opposite of the truth, no matter his real intentions.";
}
else
{
return "Things are slow in the King's chamber, comes down here for laughs.";
}
}
public string GetUnknownDescription()