April sync (#360)
* Maps and things no code/icons * helpers defines globalvars * Onclick world.dm orphaned_procs * subsystems Round vote and shuttle autocall done here too * datums * Game folder * Admin - chatter modules * clothing - mining * modular computers - zambies * client * mob level 1 * mob stage 2 + simple_animal * silicons n brains * mob stage 3 + Alien/Monkey * human mobs * icons updated * some sounds * emitter y u no commit * update tgstation.dme * compile fixes * travis fixes Also removes Fast digest mode, because reasons. * tweaks for travis Mentors are broke again Also fixes Sizeray guns * oxygen loss fix for vore code. * removes unused code * some code updates * bulk fixes * further fixes * outside things * whoops. * Maint bar ported * GLOBs.
This commit is contained in:
@@ -248,7 +248,7 @@
|
||||
var/area_aim = FALSE //should also show areas for targeting
|
||||
|
||||
/obj/machinery/computer/bsa_control/ui_interact(mob/user, ui_key = "main", datum/tgui/ui = null, force_open = 0, \
|
||||
datum/tgui/master_ui = null, datum/ui_state/state = physical_state)
|
||||
datum/tgui/master_ui = null, datum/ui_state/state = GLOB.physical_state)
|
||||
ui = SStgui.try_update_ui(user, src, ui_key, ui, force_open)
|
||||
if(!ui)
|
||||
ui = new(user, src, ui_key, "bsa", name, 400, 305, master_ui, state)
|
||||
@@ -280,12 +280,12 @@
|
||||
|
||||
/obj/machinery/computer/bsa_control/proc/calibrate(mob/user)
|
||||
var/list/gps_locators = list()
|
||||
for(var/obj/item/device/gps/G in GPS_list) //nulls on the list somehow
|
||||
for(var/obj/item/device/gps/G in GLOB.GPS_list) //nulls on the list somehow
|
||||
gps_locators[G.gpstag] = G
|
||||
|
||||
var/list/options = gps_locators
|
||||
if(area_aim)
|
||||
options += teleportlocs
|
||||
options += GLOB.teleportlocs
|
||||
var/V = input(user,"Select target", "Select target",null) in options|null
|
||||
target = options[V]
|
||||
|
||||
|
||||
@@ -20,7 +20,7 @@
|
||||
/datum/station_goal/dna_vault/New()
|
||||
..()
|
||||
animal_count = rand(15,20) //might be too few given ~15 roundstart stationside ones
|
||||
human_count = rand(round(0.75 * ticker.totalPlayersReady) , ticker.totalPlayersReady) // 75%+ roundstart population.
|
||||
human_count = rand(round(0.75 * SSticker.totalPlayersReady) , SSticker.totalPlayersReady) // 75%+ roundstart population.
|
||||
var/non_standard_plants = non_standard_plants_count()
|
||||
plant_count = rand(round(0.5 * non_standard_plants),round(0.7 * non_standard_plants))
|
||||
|
||||
@@ -53,7 +53,7 @@
|
||||
/datum/station_goal/dna_vault/check_completion()
|
||||
if(..())
|
||||
return TRUE
|
||||
for(var/obj/machinery/dna_vault/V in machines)
|
||||
for(var/obj/machinery/dna_vault/V in GLOB.machines)
|
||||
if(V.animals.len >= animal_count && V.plants.len >= plant_count && V.dna.len >= human_count)
|
||||
return TRUE
|
||||
return FALSE
|
||||
@@ -75,8 +75,6 @@
|
||||
plants = list()
|
||||
dna = list()
|
||||
|
||||
var/list/non_simple_animals = typecacheof(list(/mob/living/carbon/monkey,/mob/living/carbon/alien))
|
||||
|
||||
/obj/item/device/dna_probe/afterattack(atom/target, mob/user, proximity)
|
||||
..()
|
||||
if(!proximity || !target)
|
||||
@@ -96,6 +94,7 @@ var/list/non_simple_animals = typecacheof(list(/mob/living/carbon/monkey,/mob/li
|
||||
to_chat(user, "<span class='notice'>Plant data added to local storage.<span>")
|
||||
|
||||
//animals
|
||||
var/static/list/non_simple_animals = typecacheof(list(/mob/living/carbon/monkey,/mob/living/carbon/alien))
|
||||
if(isanimal(target) || is_type_in_typecache(target,non_simple_animals))
|
||||
if(isanimal(target))
|
||||
var/mob/living/simple_animal/A = target
|
||||
@@ -152,7 +151,7 @@ var/list/non_simple_animals = typecacheof(list(/mob/living/carbon/monkey,/mob/li
|
||||
|
||||
var/list/obj/structure/fillers = list()
|
||||
|
||||
/obj/machinery/dna_vault/New()
|
||||
/obj/machinery/dna_vault/Initialize()
|
||||
//TODO: Replace this,bsa and gravgen with some big machinery datum
|
||||
var/list/occupied = list()
|
||||
for(var/direct in list(EAST,WEST,SOUTHEAST,SOUTHWEST))
|
||||
@@ -165,12 +164,13 @@ var/list/non_simple_animals = typecacheof(list(/mob/living/carbon/monkey,/mob/li
|
||||
F.parent = src
|
||||
fillers += F
|
||||
|
||||
if(ticker.mode)
|
||||
for(var/datum/station_goal/dna_vault/G in ticker.mode.station_goals)
|
||||
if(SSticker.mode)
|
||||
for(var/datum/station_goal/dna_vault/G in SSticker.mode.station_goals)
|
||||
animals_max = G.animal_count
|
||||
plants_max = G.plant_count
|
||||
dna_max = G.human_count
|
||||
break
|
||||
..()
|
||||
|
||||
/obj/machinery/dna_vault/Destroy()
|
||||
for(var/V in fillers)
|
||||
@@ -180,7 +180,7 @@ var/list/non_simple_animals = typecacheof(list(/mob/living/carbon/monkey,/mob/li
|
||||
. = ..()
|
||||
|
||||
|
||||
/obj/machinery/dna_vault/ui_interact(mob/user, ui_key = "main", datum/tgui/ui = null, force_open = 0, datum/tgui/master_ui = null, datum/ui_state/state = physical_state)
|
||||
/obj/machinery/dna_vault/ui_interact(mob/user, ui_key = "main", datum/tgui/ui = null, force_open = 0, datum/tgui/master_ui = null, datum/ui_state/state = GLOB.physical_state)
|
||||
ui = SStgui.try_update_ui(user, src, ui_key, ui, force_open)
|
||||
if(!ui)
|
||||
roll_powers(user)
|
||||
|
||||
@@ -30,7 +30,7 @@
|
||||
|
||||
/datum/station_goal/proc/get_coverage()
|
||||
var/list/coverage = list()
|
||||
for(var/obj/machinery/satellite/meteor_shield/A in machines)
|
||||
for(var/obj/machinery/satellite/meteor_shield/A in GLOB.machines)
|
||||
if(!A.active || A.z != ZLEVEL_STATION)
|
||||
continue
|
||||
coverage |= view(A.kill_range,A)
|
||||
@@ -47,7 +47,7 @@
|
||||
circuit = /obj/item/weapon/circuitboard/machine/computer/sat_control
|
||||
var/notice
|
||||
|
||||
/obj/machinery/computer/sat_control/ui_interact(mob/user, ui_key = "main", datum/tgui/ui = null, force_open = 0, datum/tgui/master_ui = null, datum/ui_state/state = default_state)
|
||||
/obj/machinery/computer/sat_control/ui_interact(mob/user, ui_key = "main", datum/tgui/ui = null, force_open = 0, datum/tgui/master_ui = null, datum/ui_state/state = GLOB.default_state)
|
||||
ui = SStgui.try_update_ui(user, src, ui_key, ui, force_open)
|
||||
if(!ui)
|
||||
ui = new(user, src, ui_key, "sat_control", name, 400, 305, master_ui, state)
|
||||
@@ -62,7 +62,7 @@
|
||||
. = TRUE
|
||||
|
||||
/obj/machinery/computer/sat_control/proc/toggle(id)
|
||||
for(var/obj/machinery/satellite/S in machines)
|
||||
for(var/obj/machinery/satellite/S in GLOB.machines)
|
||||
if(S.id == id && S.z == z)
|
||||
S.toggle()
|
||||
|
||||
@@ -70,7 +70,7 @@
|
||||
var/list/data = list()
|
||||
|
||||
data["satellites"] = list()
|
||||
for(var/obj/machinery/satellite/S in machines)
|
||||
for(var/obj/machinery/satellite/S in GLOB.machines)
|
||||
data["satellites"] += list(list(
|
||||
"id" = S.id,
|
||||
"active" = S.active,
|
||||
@@ -79,7 +79,7 @@
|
||||
data["notice"] = notice
|
||||
|
||||
|
||||
var/datum/station_goal/station_shield/G = locate() in ticker.mode.station_goals
|
||||
var/datum/station_goal/station_shield/G = locate() in SSticker.mode.station_goals
|
||||
if(G)
|
||||
data["meteor_shield"] = 1
|
||||
data["meteor_shield_coverage"] = G.get_coverage()
|
||||
@@ -147,7 +147,7 @@
|
||||
/obj/machinery/satellite/meteor_shield/process()
|
||||
if(!active)
|
||||
return
|
||||
for(var/obj/effect/meteor/M in meteor_list)
|
||||
for(var/obj/effect/meteor/M in GLOB.meteor_list)
|
||||
if(M.z != z)
|
||||
continue
|
||||
if(get_dist(M,src) > kill_range)
|
||||
@@ -166,7 +166,7 @@
|
||||
change_meteor_chance(0.5)
|
||||
|
||||
/obj/machinery/satellite/meteor_shield/proc/change_meteor_chance(mod)
|
||||
var/datum/round_event_control/E = locate(/datum/round_event_control/meteor_wave) in SSevent.control
|
||||
var/datum/round_event_control/E = locate(/datum/round_event_control/meteor_wave) in SSevents.control
|
||||
if(E)
|
||||
E.weight *= mod
|
||||
|
||||
|
||||
@@ -13,7 +13,7 @@
|
||||
|
||||
/datum/station_goal/proc/send_report()
|
||||
priority_announce("Priority Nanotrasen directive received. Project \"[name]\" details inbound.", "Incoming Priority Message", 'sound/AI/commandreport.ogg')
|
||||
print_command_report(get_report(),"Nanotrasen Directive [pick(phonetic_alphabet)] \Roman[rand(1,50)]", announce=FALSE)
|
||||
print_command_report(get_report(),"Nanotrasen Directive [pick(GLOB.phonetic_alphabet)] \Roman[rand(1,50)]", announce=FALSE)
|
||||
on_report()
|
||||
|
||||
/datum/station_goal/proc/on_report()
|
||||
@@ -33,7 +33,7 @@
|
||||
to_chat(world, "<b>Station Goal</b> : [name] : <span class='boldannounce'>Failed!</span>")
|
||||
|
||||
/datum/station_goal/Destroy()
|
||||
ticker.mode.station_goals -= src
|
||||
SSticker.mode.station_goals -= src
|
||||
. = ..()
|
||||
|
||||
/datum/station_goal/Topic(href, href_list)
|
||||
|
||||
Reference in New Issue
Block a user