mirror of
https://github.com/Aurorastation/Aurora.3.git
synced 2025-12-26 01:52:15 +00:00
Cyborg cell charge HUD indicator now works properly
Borgs can now see the malf timer Borgs linked to the Malf AI can see it when the AI is able to start the timer, other borgs see it after the timer starts, as humans do. git-svn-id: http://tgstation13.googlecode.com/svn/trunk@593 316c924e-a436-60f5-8080-3fe189b3f50e
This commit is contained in:
@@ -189,14 +189,15 @@
|
||||
|
||||
if (src.cells)
|
||||
if (src.cell)
|
||||
switch(src.cell.charge)
|
||||
if(src.cell.maxcharge*0.75 to INFINITY)
|
||||
var/cellcharge = src.cell.charge/src.cell.maxcharge
|
||||
switch(cellcharge)
|
||||
if(0.75 to INFINITY)
|
||||
src.cells.icon_state = "charge4"
|
||||
if(0.5*src.cell.maxcharge to 0.75*src.cell.maxcharge)
|
||||
if(0.5 to 0.75)
|
||||
src.cells.icon_state = "charge3"
|
||||
if(0.25*src.cell.maxcharge to 0.5*src.cell.maxcharge)
|
||||
if(0.25 to 0.5)
|
||||
src.cells.icon_state = "charge2"
|
||||
if(0 to 0.25*src.cell.maxcharge)
|
||||
if(0.01 to 0.25)
|
||||
src.cells.icon_state = "charge1"
|
||||
else
|
||||
src.cells.icon_state = "charge0"
|
||||
|
||||
@@ -146,11 +146,16 @@
|
||||
var/timeleft = emergency_shuttle.timeleft()
|
||||
if (timeleft)
|
||||
stat(null, "ETA-[(timeleft / 60) % 60]:[add_zero(num2text(timeleft % 60), 2)]")
|
||||
/*
|
||||
|
||||
if(ticker.mode.name == "AI malfunction")
|
||||
if(ticker.mode:malf_mode_declared)
|
||||
stat(null, "Points left until the AI takes over: [AI_points]/[AI_points_win]")
|
||||
*/
|
||||
var/datum/game_mode/malfunction/malf = ticker.mode
|
||||
for (var/datum/mind/malfai in malf.malf_ai)
|
||||
if (src.connected_ai.mind == malfai)
|
||||
if (malf.apcs >= 3)
|
||||
stat(null, "Time until station control secured: [max(malf.AI_win_timeleft/(malf.apcs/3), 0)] seconds")
|
||||
else if(ticker.mode:malf_mode_declared)
|
||||
stat(null, "Time left: [max(ticker.mode:AI_win_timeleft/(ticker.mode:apcs/3), 0)]")
|
||||
|
||||
if(src.cell)
|
||||
stat(null, text("Charge Left: [src.cell.charge]/[src.cell.maxcharge]"))
|
||||
else
|
||||
|
||||
Reference in New Issue
Block a user