Merge pull request #1698 from VOREStation/bored,_fix_polaris

Fixes two high-priority issues
This commit is contained in:
Datraen
2016-05-19 14:29:46 -04:00
12 changed files with 18 additions and 17 deletions

View File

@@ -40,9 +40,9 @@
using.layer = SCREEN_LAYER using.layer = SCREEN_LAYER
adding += using adding += using
//Crew Monitorting //Crew Monitoring
using = new /obj/screen() using = new /obj/screen()
using.name = "Crew Monitorting" using.name = "Crew Monitoring"
using.icon = 'icons/mob/screen_ai.dmi' using.icon = 'icons/mob/screen_ai.dmi'
using.icon_state = "crew_monitor" using.icon_state = "crew_monitor"
using.screen_loc = ui_ai_crew_monitor using.screen_loc = ui_ai_crew_monitor

View File

@@ -420,7 +420,7 @@
var/mob/living/silicon/ai/AI = usr var/mob/living/silicon/ai/AI = usr
AI.toggle_camera_light() AI.toggle_camera_light()
if("Crew Monitorting") if("Crew Monitoring")
if(isAI(usr)) if(isAI(usr))
var/mob/living/silicon/ai/AI = usr var/mob/living/silicon/ai/AI = usr
AI.subsystem_crew_monitor() AI.subsystem_crew_monitor()

View File

@@ -25,6 +25,8 @@
user << "<span class='warning'>It expired at [worldtime2text(expiration_time)].</span>" user << "<span class='warning'>It expired at [worldtime2text(expiration_time)].</span>"
/obj/item/weapon/card/id/guest/read() /obj/item/weapon/card/id/guest/read()
if(!Adjacent(usr))
return //Too far to read
if (world.time > expiration_time) if (world.time > expiration_time)
usr << "<span class='notice'>This pass expired at [worldtime2text(expiration_time)].</span>" usr << "<span class='notice'>This pass expired at [worldtime2text(expiration_time)].</span>"
else else

View File

@@ -232,7 +232,6 @@
/obj/item/weapon/hand_tele, /obj/item/weapon/hand_tele,
/obj/item/weapon/card/id/captains_spare, /obj/item/weapon/card/id/captains_spare,
/obj/item/device/aicard, /obj/item/device/aicard,
/obj/item/device/mmi,
/obj/item/device/paicard, /obj/item/device/paicard,
/obj/item/weapon/gun, /obj/item/weapon/gun,
/obj/item/weapon/pinpointer, /obj/item/weapon/pinpointer,

View File

@@ -16,6 +16,7 @@
icon_state = "donutbox" icon_state = "donutbox"
name = "donut box" name = "donut box"
var/startswith = 6 var/startswith = 6
max_storage_space = 12
can_hold = list(/obj/item/weapon/reagent_containers/food/snacks/donut) can_hold = list(/obj/item/weapon/reagent_containers/food/snacks/donut)
foldable = /obj/item/stack/material/cardboard foldable = /obj/item/stack/material/cardboard

View File

@@ -373,7 +373,7 @@ var/global/list/valid_bloodtypes = list("A+", "A-", "B+", "B-", "AB+", "AB-", "O
var/organ_tag = input(user, "Which limb do you want to change?") as null|anything in limb_selection_list var/organ_tag = input(user, "Which limb do you want to change?") as null|anything in limb_selection_list
if(!organ_tag && !CanUseTopic(user)) return TOPIC_NOACTION if(!organ_tag || !CanUseTopic(user)) return TOPIC_NOACTION
var/limb = null var/limb = null
var/second_limb = null // if you try to change the arm, the hand should also change var/second_limb = null // if you try to change the arm, the hand should also change

View File

@@ -24,6 +24,7 @@
component_parts += new /obj/item/weapon/stock_parts/scanning_module(src) component_parts += new /obj/item/weapon/stock_parts/scanning_module(src)
component_parts += new /obj/item/weapon/stock_parts/scanning_module(src) component_parts += new /obj/item/weapon/stock_parts/scanning_module(src)
RefreshParts() RefreshParts()
..()
/obj/machinery/dnaforensics/attackby(var/obj/item/W, mob/user as mob) /obj/machinery/dnaforensics/attackby(var/obj/item/W, mob/user as mob)

View File

@@ -85,6 +85,7 @@
dead_mob_list |= src dead_mob_list |= src
updateicon() updateicon()
handle_regular_hud_updates()
if(ticker && ticker.mode) if(ticker && ticker.mode)
ticker.mode.check_win() ticker.mode.check_win()

View File

@@ -31,8 +31,6 @@
BITSET(hud_updateflag, STATUS_HUD) BITSET(hud_updateflag, STATUS_HUD)
BITSET(hud_updateflag, LIFE_HUD) BITSET(hud_updateflag, LIFE_HUD)
handle_hud_list()
//Handle species-specific deaths. //Handle species-specific deaths.
species.handle_death(src) species.handle_death(src)
animate_tail_stop() animate_tail_stop()

View File

@@ -1557,7 +1557,7 @@
/mob/living/carbon/human/proc/handle_hud_list() /mob/living/carbon/human/proc/handle_hud_list()
if (BITTEST(hud_updateflag, HEALTH_HUD)) if (BITTEST(hud_updateflag, HEALTH_HUD))
var/image/holder = hud_list[HEALTH_HUD] var/image/holder = hud_list[HEALTH_HUD]
if(stat == 2) if(stat == DEAD)
holder.icon_state = "hudhealth-100" // X_X holder.icon_state = "hudhealth-100" // X_X
else else
var/percentage_health = RoundHealth((health-config.health_threshold_crit)/(maxHealth-config.health_threshold_crit)*100) var/percentage_health = RoundHealth((health-config.health_threshold_crit)/(maxHealth-config.health_threshold_crit)*100)
@@ -1581,7 +1581,7 @@
var/image/holder = hud_list[STATUS_HUD] var/image/holder = hud_list[STATUS_HUD]
var/image/holder2 = hud_list[STATUS_HUD_OOC] var/image/holder2 = hud_list[STATUS_HUD_OOC]
if(stat == 2) if(stat == DEAD)
holder.icon_state = "huddead" holder.icon_state = "huddead"
holder2.icon_state = "huddead" holder2.icon_state = "huddead"
else if(status_flags & XENO_HOST) else if(status_flags & XENO_HOST)

View File

@@ -13,22 +13,22 @@
// Handle things that are part of this interface but not removing/replacing a given item. // Handle things that are part of this interface but not removing/replacing a given item.
if("pockets") if("pockets")
visible_message("<span class='danger'>\The [user] is trying to empty \the [src]'s pockets!</span>") visible_message("<span class='danger'>\The [user] is trying to empty \the [src]'s pockets!</span>")
if(do_after(user,HUMAN_STRIP_DELAY)) if(do_after(user,HUMAN_STRIP_DELAY,src))
empty_pockets(user) empty_pockets(user)
return return
if("splints") if("splints")
visible_message("<span class='danger'>\The [user] is trying to remove \the [src]'s splints!</span>") visible_message("<span class='danger'>\The [user] is trying to remove \the [src]'s splints!</span>")
if(do_after(user,HUMAN_STRIP_DELAY)) if(do_after(user,HUMAN_STRIP_DELAY,src))
remove_splints(user) remove_splints(user)
return return
if("sensors") if("sensors")
visible_message("<span class='danger'>\The [user] is trying to set \the [src]'s sensors!</span>") visible_message("<span class='danger'>\The [user] is trying to set \the [src]'s sensors!</span>")
if(do_after(user,HUMAN_STRIP_DELAY)) if(do_after(user,HUMAN_STRIP_DELAY,src))
toggle_sensors(user) toggle_sensors(user)
return return
if("internals") if("internals")
visible_message("<span class='danger'>\The [usr] is trying to set \the [src]'s internals!</span>") visible_message("<span class='danger'>\The [usr] is trying to set \the [src]'s internals!</span>")
if(do_after(user,HUMAN_STRIP_DELAY)) if(do_after(user,HUMAN_STRIP_DELAY,src))
toggle_internals(user) toggle_internals(user)
return return
if("tie") if("tie")
@@ -40,7 +40,7 @@
return return
visible_message("<span class='danger'>\The [usr] is trying to remove \the [src]'s [A.name]!</span>") visible_message("<span class='danger'>\The [usr] is trying to remove \the [src]'s [A.name]!</span>")
if(!do_after(user,HUMAN_STRIP_DELAY)) if(!do_after(user,HUMAN_STRIP_DELAY,src))
return return
if(!A || suit.loc != src || !(A in suit.accessories)) if(!A || suit.loc != src || !(A in suit.accessories))
@@ -74,7 +74,7 @@
else else
visible_message("<span class='danger'>\The [user] is trying to put \a [held] on \the [src]!</span>") visible_message("<span class='danger'>\The [user] is trying to put \a [held] on \the [src]!</span>")
if(!do_after(user,HUMAN_STRIP_DELAY)) if(!do_after(user,HUMAN_STRIP_DELAY,src))
return return
if(!stripping && user.get_active_hand() != held) if(!stripping && user.get_active_hand() != held)

View File

@@ -53,8 +53,7 @@
update_canmove() update_canmove()
if(client) handle_regular_hud_updates()
handle_regular_hud_updates()
/mob/living/proc/handle_breathing() /mob/living/proc/handle_breathing()
return return