mirror of
https://github.com/Gurge44/EndlessHostRoles.git
synced 2026-10-19 15:51:58 +00:00
ok noob
This commit is contained in:
1 parent
281e1876ab
commit
9ce44032b3
1 file changed
+8
-1
@@ -9,6 +9,7 @@ public class Thief : RoleBase
|
||||
private static OptionItem CanStealCovenRoles;
|
||||
private static OptionItem ImpostorVision;
|
||||
private static OptionItem CanKillRound1;
|
||||
private static OptionItem KillCooldown;
|
||||
|
||||
public override bool IsEnable => On;
|
||||
|
||||
@@ -17,7 +18,8 @@ public class Thief : RoleBase
|
||||
StartSetup(656400)
|
||||
.AutoSetupOption(ref CanStealCovenRoles, false)
|
||||
.AutoSetupOption(ref ImpostorVision, false)
|
||||
.AutoSetupOption(ref CanKillRound1, false);
|
||||
.AutoSetupOption(ref CanKillRound1, false)
|
||||
.AutoSetupOption(ref KillCooldown, 30f, new FloatValueRule(0f, 120f, 0.5f), OptionFormat.Seconds);
|
||||
}
|
||||
|
||||
public override void Init()
|
||||
@@ -35,6 +37,11 @@ public class Thief : RoleBase
|
||||
return !MeetingStates.FirstMeeting || CanKillRound1.GetBool();
|
||||
}
|
||||
|
||||
public override void SetKillCooldown(byte id)
|
||||
{
|
||||
Main.AllPlayerKillCooldown[id] = KillCooldown.GetFloat();
|
||||
}
|
||||
|
||||
public override void ApplyGameOptions(IGameOptions opt, byte playerId)
|
||||
{
|
||||
opt.SetVision(ImpostorVision.GetBool());
|
||||
|
||||
Reference in new issue
Block a user