Survival mode bugfixes and revive mechanism
This commit is contained in:
parent
d701598350
commit
2fa85e8b1f
14 changed files with 529 additions and 35 deletions
|
|
@ -162,6 +162,7 @@ public sealed partial class OutnumberedPlugin
|
|||
double now = Server.CurrentTime; // read once for all ability segments (clock can't advance within this build)
|
||||
var sb = _hudSb; sb.Clear();
|
||||
if (_driver.HudStatusLine(pd) is { Length: > 0 } wline) sb.Append(wline).Append('\n');
|
||||
if (_driver.ReviveHudLine(p, pd, html: false) is { Length: > 0 } rev) sb.Append(rev).Append('\n');
|
||||
sb.Append($"Lvl {pd.Level} ({pd.Xp}/{next}) Prestige {Roman(pd.Prestige)} {pd.Points} pt Streak {pd.Streak}\n");
|
||||
sb.Append($"HS x{hs:F2} Out x{md:F2} In x{mt:F2} XP x{xp:F2}\n");
|
||||
for (int i = 0; i < AbilityCount; i++)
|
||||
|
|
@ -199,6 +200,7 @@ public sealed partial class OutnumberedPlugin
|
|||
string ptsColor = pd.Points > 0 ? "#66ff66" : "#888888";
|
||||
var sb = _hudSb; sb.Clear();
|
||||
if (_driver.HudStatusLine(pd) is { Length: > 0 } wline) sb.Append($"<font color='#ff5a5a'>{wline}</font><br>");
|
||||
if (_driver.ReviveHudLine(p, pd, html: true) is { Length: > 0 } rev) sb.Append(rev).Append("<br>");
|
||||
sb.Append($"<font color='#ffae00'>Lv{pd.Level}</font> {PrestigeHudTag(pd.Prestige, now)}");
|
||||
sb.Append($" <font color='{ptsColor}'>{pd.Points} pt</font>");
|
||||
sb.Append($" <font color='{streakColor}'>Streak {pd.Streak}</font>");
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue