mirror of
https://github.com/Gurge44/EndlessHostRoles.git
synced 2026-10-20 01:46:25 +00:00
Fix Room Rush points again + Dreamweaver custom button (#248)
* Fix Room Rush points being negative again * Add files via upload * Update HudSpritePatch.cs
This commit is contained in:
1 parent
cd85f72654
commit
f34ab9788f
3 files changed
+8
-3
No files matched your search
@@ -449,7 +449,7 @@ public static class RoomRush
|
||||
pc.Notify($"{DonePlayers.Count}.", 2f);
|
||||
|
||||
if (WinByPointsInsteadOfDeaths.GetBool())
|
||||
Points[pc.PlayerId] += aapc.Length - DonePlayers.Count - 1;
|
||||
Points[pc.PlayerId] -= aapc.Length - DonePlayers.Count - 1;
|
||||
|
||||
int timeLeft = TimeWhenFirstPlayerEntersRoom.GetInt();
|
||||
|
||||
@@ -528,4 +528,4 @@ public class RRPlayer : RoleBase
|
||||
Utils.SendRPC(CustomRPC.RoomRushDataSync, 2, RoomRush.VentLimit[pc.PlayerId], pc.PlayerId);
|
||||
if (RoomRush.VentLimit[pc.PlayerId] <= 0) pc.RpcChangeRoleBasis(CustomRoles.RRPlayer);
|
||||
}
|
||||
}
|
||||
}
|
||||
@@ -82,6 +82,11 @@ public static class HudSpritePatch
|
||||
|
||||
break;
|
||||
}
|
||||
case CustomRoles.Dreamweaver:
|
||||
{
|
||||
newKillButton = CustomButton.Get("Dreamweave");
|
||||
break;
|
||||
}
|
||||
case CustomRoles.Wizard:
|
||||
{
|
||||
newAbilityButton = CustomButton.Get("Up");
|
||||
@@ -505,4 +510,4 @@ public static class HudSpritePatch
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
Binary file not shown.
|
After Width: | Height: | Size: 19 KiB |
Reference in new issue
Block a user