Skip to content

Commit

Permalink
Fix RTD color rewards (#325)
Browse files Browse the repository at this point in the history
  • Loading branch information
MSWS authored Dec 16, 2024
2 parents 25720ed + 4d92075 commit 9caf801
Show file tree
Hide file tree
Showing 3 changed files with 1 addition and 4 deletions.
2 changes: 0 additions & 2 deletions mod/Jailbreak.RTD/RTDRewarder.cs
Original file line number Diff line number Diff line change
Expand Up @@ -38,8 +38,6 @@ public HookResult OnSpawn(EventPlayerSpawn @event, GameEventInfo info) {
if (reward == null) return HookResult.Continue;
if (!reward.CanGrantReward(player)) return HookResult.Continue;

player.SetColor(Color.White);

Server.RunOnTick(Server.TickCount + 2, () => {
if (!player.IsValid) return;
if (reward.Name != "Nothing")
Expand Down
1 change: 0 additions & 1 deletion mod/Jailbreak.RTD/Rewards/ColorReward.cs
Original file line number Diff line number Diff line change
Expand Up @@ -45,7 +45,6 @@ public bool CanGrantReward(CCSPlayerController player) {

public bool GrantReward(CCSPlayerController player) {
player.SetColor(color);
Server.RunOnTick(Server.TickCount + 2, () => GrantReward(player));
return true;
}
}
2 changes: 1 addition & 1 deletion mod/Jailbreak.RTD/Rewards/TransparentReward.cs
Original file line number Diff line number Diff line change
Expand Up @@ -9,5 +9,5 @@ public class TransparentReward()
public override string Description
=> "You will spawn transparent next round.";

public override bool Enabled => false;
public override bool Enabled => true;
}

0 comments on commit 9caf801

Please sign in to comment.