forked from slushiegoose/Town-Of-Us
-
Notifications
You must be signed in to change notification settings - Fork 193
Expand file tree
/
Copy pathGiant.cs
More file actions
25 lines (23 loc) · 794 Bytes
/
Copy pathGiant.cs
File metadata and controls
25 lines (23 loc) · 794 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
using TownOfUs.Extensions;
using UnityEngine;
namespace TownOfUs.Modifiers
{
public class Giant : Modifier, IVisualAlteration
{
public Giant(PlayerControl player) : base(player)
{
var slowText = CustomGameOptions.GiantSlow != 1? " and slow!" : "!";
Name = "Giant";
TaskText = () => "You are ginormous" + slowText;
Color = Patches.Colors.Giant;
ModifierType = ModifierEnum.Giant;
}
public bool TryGetModifiedAppearance(out VisualAppearance appearance)
{
appearance = Player.GetDefaultAppearance();
appearance.SpeedFactor = CustomGameOptions.GiantSlow;
appearance.SizeFactor = new Vector3(1.0f, 1.0f, 1.0f);
return true;
}
}
}