From a3d2a1e70fd845abb2a769897c84ee62c2d527cf Mon Sep 17 00:00:00 2001 From: Segrain Date: Tue, 9 Jul 2013 17:17:55 +0300 Subject: [PATCH 1/3] Fix for #3281. --- code/modules/clothing/shoes/magboots.dm | 2 ++ 1 file changed, 2 insertions(+) diff --git a/code/modules/clothing/shoes/magboots.dm b/code/modules/clothing/shoes/magboots.dm index 0ade207cf12..8fd158fdf3f 100644 --- a/code/modules/clothing/shoes/magboots.dm +++ b/code/modules/clothing/shoes/magboots.dm @@ -10,6 +10,8 @@ set name = "Toggle Magboots" set category = "Object" set src in usr + if(usr.stat) + return if(src.magpulse) src.flags &= ~NOSLIP src.slowdown = SHOES_SLOWDOWN From 46df500cd478885a65285e3b33dc54162ab1cf24 Mon Sep 17 00:00:00 2001 From: Segrain Date: Tue, 9 Jul 2013 19:37:17 +0300 Subject: [PATCH 2/3] Fix for #3166. --- code/game/jobs/job_controller.dm | 11 ++++++----- 1 file changed, 6 insertions(+), 5 deletions(-) diff --git a/code/game/jobs/job_controller.dm b/code/game/jobs/job_controller.dm index 3b6b584ee23..5456b8e598b 100644 --- a/code/game/jobs/job_controller.dm +++ b/code/game/jobs/job_controller.dm @@ -134,7 +134,7 @@ var/global/datum/controller/occupations/job_master if(!job) continue var/list/candidates = FindOccupationCandidates(job, level) if(!candidates.len) continue - + // Build a weighted list, weight by age. var/list/weightedCandidates = list() @@ -144,7 +144,7 @@ var/global/datum/controller/occupations/job_master if(command_position == "Captain") good_age_minimal = 30 good_age_maximal = 70 // Old geezer captains ftw - + for(var/mob/V in candidates) // Log-out during round-start? What a bad boy, no head position for you! if(!V.client) continue @@ -164,9 +164,9 @@ var/global/datum/controller/occupations/job_master weightedCandidates[V] = 3 // Geezer. else // If there's ABSOLUTELY NOBODY ELSE - if(candidates.len == 1) weightedCandidates[V] = 1 - - + if(candidates.len == 1) weightedCandidates[V] = 1 + + var/mob/new_player/candidate = pickweight(weightedCandidates) if(AssignRole(candidate, command_position)) return 1 @@ -340,6 +340,7 @@ var/global/datum/controller/occupations/job_master //For ones returning to lobby for(var/mob/new_player/player in unassigned) if(player.client.prefs.alternate_option == RETURN_TO_LOBBY) + player.ready = 0 unassigned -= player return 1 From 21ac3e5954c506615282cfc109116703fcf85d87 Mon Sep 17 00:00:00 2001 From: Segrain Date: Tue, 9 Jul 2013 21:08:31 +0300 Subject: [PATCH 3/3] Fix for #3286. --- code/modules/mob/living/silicon/robot/robot.dm | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/code/modules/mob/living/silicon/robot/robot.dm b/code/modules/mob/living/silicon/robot/robot.dm index 8a54261c694..3b2d75a713c 100644 --- a/code/modules/mob/living/silicon/robot/robot.dm +++ b/code/modules/mob/living/silicon/robot/robot.dm @@ -146,7 +146,7 @@ /mob/living/silicon/robot/proc/pick_module() if(module) return - var/list/modules = list("Standard", "Engineering", "Medical", "Miner", "Janitor", "Service", "Security", "Combat") + var/list/modules = list("Standard", "Engineering", "Medical", "Miner", "Janitor", "Service", "Security") if(emagged || security_level > SEC_LEVEL_BLUE) src << "\red Crisis mode active. Combat module available." modules+="Combat"