Fixes up comm program

This commit is contained in:
Unknown
2019-04-14 16:25:31 -04:00
parent 5498735a74
commit 327d2b0924
3 changed files with 17 additions and 2 deletions
@@ -66,6 +66,9 @@
data["current_security_level_title"] = num2seclevel(security_level)
data["def_SEC_LEVEL_DELTA"] = SEC_LEVEL_DELTA
data["def_SEC_LEVEL_YELLOW"] = SEC_LEVEL_YELLOW
data["def_SEC_LEVEL_ORANGE"] = SEC_LEVEL_ORANGE
data["def_SEC_LEVEL_VIOLET"] = SEC_LEVEL_VIOLET
data["def_SEC_LEVEL_BLUE"] = SEC_LEVEL_BLUE
data["def_SEC_LEVEL_GREEN"] = SEC_LEVEL_GREEN
@@ -215,6 +218,12 @@
switch(security_level)
if(SEC_LEVEL_GREEN)
feedback_inc("alert_comms_green",1)
if(SEC_LEVEL_YELLOW)
feedback_inc("alert_comms_yellow",1)
if(SEC_LEVEL_ORANGE)
feedback_inc("alert_comms_orange",1)
if(SEC_LEVEL_VIOLET)
feedback_inc("alert_comms_violet",1)
if(SEC_LEVEL_BLUE)
feedback_inc("alert_comms_blue",1)
else
@@ -34,3 +34,6 @@ delete-after: True
# Please surround your changes in double quotes ("), as certain characters otherwise screws up compiling. The quotes will not show up in the changelog.
changes:
- rscadd: "Ports initial infrastructure for modular computers from Baystation."
- rscadd: "Cameras now have a slight static when viewing through them."
- rscadd: "Adds Digital Warrant Program, to set warrants. Comes with a device."
- rscadd: "Adds Supermatter Monitor program."
+5 -2
View File
@@ -4,7 +4,7 @@
<div class=item>{{if data.emagged}}
{{:helper.link('Send an emergency message to [UNKNOWN]', null, {'action' : 'message', 'target' : 'emagged'}, data.isAI || !data.net_comms ? 'disabled' : null)}}
{{else}}
{{:helper.link('Send an emergency message to ' + data.boss_short, null, {'action' : 'message', 'target' : 'regular'}, data.isAI || !data.net_comms ? 'disabled' : null)}}
{{:helper.link('Send an emergency message to Centcom', null, {'action' : 'message', 'target' : 'regular'}, data.isAI || !data.net_comms ? 'disabled' : null)}}
{{/if}} </div>
<div class=item>{{:helper.link('Change alert level', null, {'action' : 'sw_menu', 'target' : 5}, data.isAI || !data.net_syscont || !data.net_comms ? 'disabled' : null)}} </div>
<div class=item>{{if data.have_shuttle && data.have_shuttle_called}}
@@ -42,7 +42,7 @@
<li><div class=item>Line 1: {{:helper.link(data.message_line1 ? data.message_line1 : '(none)', null, {'action' : 'setstatus', 'target' : 'line1'})}}</div></li>
<li><div class=item>Line 2: {{:helper.link(data.message_line2 ? data.message_line2 : '(none)', null, {'action' : 'setstatus', 'target' : 'line2'})}}</div></li>
</ul></div>
<div class=item>Alert: {{:helper.link('Red Alert', null, {'action' : 'setstatus', 'target' : 'alert', 'alert' : 'redalert'})}}
<div class=item>Alert: {{:helper.link('Alert', null, {'action' : 'setstatus', 'target' : 'alert', 'alert' : 'redalert'})}}
{{:helper.link('Lockdown', null, {'action' : 'setstatus', 'target' : 'alert', 'alert' : 'lockdown'})}}
{{:helper.link('Biohazard', null, {'action' : 'setstatus', 'target' : 'alert', 'alert' : 'biohazard'})}} </div>
{{:helper.link('Back', null, {'action' : 'sw_menu', 'target' : 1})}}
@@ -52,6 +52,9 @@
<div class=item><font color='red'><b>The self-destruct mechanism is active. Find a way to deactivate the mechanism to lower the alert level or evacuate.</b></font></div>
{{else}}
<div class=item>Set status: </div>
<div class=item>{{:helper.link('Yellow', null, {'action' : 'setalert', 'target' : data.def_SEC_LEVEL_YELLOW}, data.current_security_level === data.def_SEC_LEVEL_YELLOW || data.isAI ? 'disabled' : null)}} </div>
<div class=item>{{:helper.link('Orange', null, {'action' : 'setalert', 'target' : data.def_SEC_LEVEL_ORANGE}, data.current_security_level === data.def_SEC_LEVEL_ORANGE || data.isAI ? 'disabled' : null)}} </div>
<div class=item>{{:helper.link('Violet', null, {'action' : 'setalert', 'target' : data.def_SEC_LEVEL_VIOLET}, data.current_security_level === data.def_SEC_LEVEL_VIOLET || data.isAI ? 'disabled' : null)}} </div>
<div class=item>{{:helper.link('Blue', null, {'action' : 'setalert', 'target' : data.def_SEC_LEVEL_BLUE}, data.current_security_level === data.def_SEC_LEVEL_BLUE || data.isAI ? 'disabled' : null)}} </div>
<div class=item>{{:helper.link('Green', null, {'action' : 'setalert', 'target' : data.def_SEC_LEVEL_GREEN}, data.current_security_level === data.def_SEC_LEVEL_GREEN || data.isAI ? 'disabled' : null)}} </div>
{{/if}}