Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Ports tgui-next 3.0, removes tgui 1.0 + Smart Asset Cache #8291

Merged
merged 214 commits into from Jun 14, 2020
Merged
Show file tree
Hide file tree
Changes from 208 commits
Commits
Show all changes
214 commits
Select commit Hold shift + click to select a range
29a8b2e
Update Smes.js
Neo1w Jan 19, 2020
18459ab
teleporter
Arkatos1 Jan 17, 2020
c1b8f94
timer
Arkatos1 Jan 26, 2020
2bef79b
mining
Arkatos1 Feb 7, 2020
c924f96
infra + prox
Arkatos1 Feb 13, 2020
b71f3ef
uplink
actioninja Feb 13, 2020
c333509
apc
nightred Feb 16, 2020
1f1bab5
laser
ShizCalev Feb 19, 2020
6eda526
compile
ShizCalev Feb 21, 2020
7f118bf
ui_x and ui_y and custom_materials
TheGamerdk Apr 27, 2020
e81b42b
512
TheGamerdk Apr 27, 2020
8b5ed55
smart asset cache
MrStonedOne Mar 26, 2020
fa6bb42
vending machines
actioninja Dec 27, 2019
5ca9bae
Fixes missing icons. Removes rasta beanie
TheGamerdk Apr 27, 2020
08ee1ef
cargo
actioninja Jan 1, 2020
8450628
MULE + Intelli + Shuttle + Preferences
actioninja Jan 3, 2020
a2eb704
AI fixer
Arkatos1 Mar 10, 2020
bedf4ff
robot
Arkatos1 Mar 14, 2020
eeb1b68
thing
Arkatos1 Mar 8, 2020
7861a9a
thing x2
zxaber Dec 14, 2019
a04951b
mecha
Arkatos1 Mar 8, 2020
72d3fb8
compile
kriskog Feb 29, 2020
3719710
oops
TheGamerdk Apr 27, 2020
9be42b4
Mining Vendor Fix
TheGamerdk Apr 28, 2020
516612d
Merge branch 'master' into tgui
TheGamerdk May 7, 2020
76e409d
Merge branch 'master' into tgui
TheGamerdk May 10, 2020
fe13cff
Update traitordevices.dm
TheGamerdk May 10, 2020
49a680e
Update proximity.dm
TheGamerdk May 10, 2020
b9f4777
Merge branch 'master' into tgui
TheGamerdk May 11, 2020
8ba0ead
Update EmergencyShuttleConsole.js
TheGamerdk May 11, 2020
43d0cc9
rebuild
TheGamerdk May 11, 2020
5bd9095
Merge branch 'master' into tgui
TheGamerdk May 11, 2020
de3ab5f
uwu
TheGamerdk May 11, 2020
0cf6233
Merge branch 'tgui' of https://github.com/TheGameTeam/Yogstation into…
TheGamerdk May 11, 2020
f7b79d6
Revert "uwu"
TheGamerdk May 11, 2020
99c392b
Merge branch 'master' into tgui
TheGamerdk May 11, 2020
b50e8b8
Update autodrobe.dm
TheGamerdk May 13, 2020
8e8d991
Update Vending.js
TheGamerdk May 13, 2020
584ab92
Update _vending.dm
TheGamerdk May 13, 2020
e38093c
Update Vending.js
TheGamerdk May 13, 2020
decf47f
Update _vending.dm
TheGamerdk May 13, 2020
664e2c9
Build
TheGamerdk May 13, 2020
6e4683d
Update _vending.dm
TheGamerdk May 13, 2020
e647110
Merge branch 'master' of https://github.com/yogstation13/Yogstation i…
TheGamerdk May 22, 2020
c0b2547
rebuild
TheGamerdk May 22, 2020
33564f2
Update _vending.dm
TheGamerdk May 29, 2020
0ff57eb
Merge pull request #6 from yogstation13/master
TheGamerdk May 30, 2020
378cb38
laser
ShizCalev Mar 7, 2020
908c93b
shuttle
actioninja Jan 7, 2020
8dd282c
gigas
TheChosenEvilOne Jan 12, 2020
b15fffd
signaller
Jordie0608 Jan 10, 2020
1c4fffd
launchpad
actioninja Jan 3, 2020
e0e41d9
Update Vending.js
81Denton Jan 1, 2020
7b0146c
eigthball
actioninja Jan 3, 2020
25efa04
pad
TheGamerdk May 30, 2020
424582d
ntnet relay
actioninja Jan 2, 2020
590e407
labor stuff
Arkatos1 Dec 29, 2019
885403c
solar
MrPerson Dec 9, 2019
704dabd
contrcators
Akrilla Jul 15, 2019
dfee93d
sprite fix
Akrilla Aug 10, 2019
fab502b
Fixes contractor runtime (#45932)
Akrilla Aug 17, 2019
6072bb7
fixes contractor tablet (#47559)
kriskog Nov 4, 2019
1711b5d
contractor
actioninja Jan 3, 2020
084da54
ntos card console thing
actioninja Feb 1, 2020
aacb2ab
fixes
Akrilla Apr 4, 2020
ac85d90
dna console
Timberpoes Apr 6, 2020
9856e38
tweaks
Arkatos1 Mar 18, 2020
c9170af
byondUI
stylemistake Mar 21, 2020
bc23939
cargo hold
Arkatos1 Mar 14, 2020
d214303
fixes
nightred Mar 3, 2020
d0b6063
robit
Arkatos1 Mar 1, 2020
21ceca3
malf picker
Arkatos1 Feb 27, 2020
5434f10
compile
TheGamerdk May 30, 2020
ac7dc1e
dependencies
stylemistake Feb 29, 2020
f674c5d
electropack
spookydonut Feb 24, 2020
385830d
transfer valve
ShizCalev Feb 21, 2020
8443831
canvas
AnturK Jan 19, 2020
5d3de24
fixes
stylemistake Apr 26, 2020
1c547ec
uplni stuff
stylemistake Apr 25, 2020
a37aa53
dna
Timberpoes Apr 19, 2020
a661abb
e
Timberpoes Apr 6, 2020
d52b068
tgui
actioninja Feb 14, 2020
35d182b
Octet separators in DNA Console genome sequencer. (#50516)
Timberpoes Apr 19, 2020
5557e10
REMOVES TGUI
stylemistake Apr 16, 2020
227e8bb
KNOB
stylemistake Apr 16, 2020
645b63c
r
stylemistake Apr 4, 2020
ec02658
tgui 3.0
optimumtact Apr 20, 2020
9c0a311
compile
TheGamerdk May 31, 2020
c03b491
fixes
stylemistake Mar 21, 2020
e645db1
fixes
stylemistake Apr 25, 2020
ab1838c
crafting fixes
stylemistake Apr 21, 2020
ad69c99
canister
stylemistake Apr 27, 2020
67fc845
refactors
actioninja Apr 23, 2020
41b3c95
bio gen
Arkatos1 May 10, 2020
45123ed
MIT license
stylemistake May 10, 2020
ba8d6ac
seed
WarlockD May 7, 2020
7e9d6c7
Update NaniteCloudControl.js
Timberpoes May 9, 2020
24a2aa2
Update Uplink.js
stylemistake Apr 26, 2020
31f53e1
uwu
Arkatos1 Mar 18, 2020
99747e5
oops
TheGamerdk May 31, 2020
0eb7438
fixes
TheGamerdk May 31, 2020
eade3a6
nanites
actioninja Dec 6, 2019
c5fcfd3
Fixes nanite deactivation timer
XDTM Feb 12, 2020
f24d838
Revert "Fixes nanite deactivation timer"
TheGamerdk May 31, 2020
7a5d3ec
Revert "nanites"
TheGamerdk May 31, 2020
47a079d
various fixes
TheGamerdk May 31, 2020
6673657
compile
TheGamerdk May 31, 2020
8826b76
turdis
TheGamerdk May 31, 2020
f93c1ea
Update build_tgui.sh
TheGamerdk May 31, 2020
ddc1f60
akwrard
TheGamerdk May 31, 2020
9adb5bb
ha
TheGamerdk May 31, 2020
143d298
haha, HAHAHA!!
TheGamerdk May 31, 2020
3739284
compile
TheGamerdk May 31, 2020
97dc3ab
Merge pull request #8 from yogstation13/master
TheGamerdk May 31, 2020
3be6e1b
fixes
TheGamerdk May 31, 2020
26ced7a
Merge branch 'tgui' of https://github.com/TheGameTeam/Yogstation into…
TheGamerdk May 31, 2020
2640b6e
quick fix
TheGamerdk May 31, 2020
9c9ec95
gps + dna fixes
TheGamerdk Jun 1, 2020
9028d01
Compile
TheGamerdk Jun 1, 2020
e3e6264
DNA
Sanator Aug 13, 2019
071f8d2
fixes
TheGamerdk Jun 1, 2020
1b17890
sleeper + optable
TheGamerdk Jun 1, 2020
ff801ed
fixes
TheGamerdk Jun 1, 2020
30b54d7
mulebot
TheGamerdk Jun 1, 2020
b8b4a04
Update cloning.dm
TheGamerdk Jun 2, 2020
6cb221f
Update cloning.dm
TheGamerdk Jun 2, 2020
3fdf862
Update ClockworkSlab.js
TheGamerdk Jun 2, 2020
626add4
Update Operating.dm
TheGamerdk Jun 2, 2020
eaa6e2d
Update nanite_chamber.dm
TheGamerdk Jun 2, 2020
d7d496f
Update nanites.dm
TheGamerdk Jun 2, 2020
25dc054
Update nanites.dm
TheGamerdk Jun 2, 2020
48fd861
Update stasis.dm
TheGamerdk Jun 2, 2020
ee4530b
Update asset_list_items.dm
TheGamerdk Jun 2, 2020
2b69548
Update ClockworkSlab.js
TheGamerdk Jun 2, 2020
f561797
uwu
TheGamerdk Jun 2, 2020
d0e63af
Merge branch 'tgui' of https://github.com/TheGameTeam/Yogstation into…
TheGamerdk Jun 2, 2020
e0961fa
oof
TheGamerdk Jun 2, 2020
9087288
Various FIxes + clockwork UI
TheGamerdk Jun 2, 2020
240f558
compile
TheGamerdk Jun 2, 2020
ee7165b
Sleeper fix
TheGamerdk Jun 2, 2020
0fc9f3d
Crew console
TheGamerdk Jun 2, 2020
b6466ee
AWKWARD
TheGamerdk Jun 2, 2020
c167d4c
PsiWeb
TheGamerdk Jun 2, 2020
57bf8ea
uwu
TheGamerdk Jun 2, 2020
1faf667
uwu
TheGamerdk Jun 2, 2020
a42c3a1
psi web
TheGamerdk Jun 2, 2020
6c64334
TGUI GONE
TheGamerdk Jun 2, 2020
5b3ae4c
compile
TheGamerdk Jun 2, 2020
77bb9c9
autolethe
TheGamerdk Jun 2, 2020
8312c81
Merge branch 'master' into tgui
TheGamerdk Jun 3, 2020
60cc4f0
Gulag + Solar
TheGamerdk Jun 3, 2020
1bffc4e
Merge branch 'tgui' of https://github.com/TheGameTeam/Yogstation into…
TheGamerdk Jun 3, 2020
2d67418
Canister
TheGamerdk Jun 3, 2020
cbab8c1
build
TheGamerdk Jun 3, 2020
2779a69
private sale
TheGamerdk Jun 3, 2020
4e28999
compile
TheGamerdk Jun 3, 2020
78fd52c
Update ntnrc_client.dm
TheGamerdk Jun 4, 2020
6e45ef2
uwu
kriskog Jan 23, 2020
88b3241
canvas
AnturK Feb 22, 2020
515a12e
uwu
zxaber Apr 6, 2020
78c3363
uwu
ArcaneMusic Apr 4, 2020
2fcdba7
uwu
ArcaneMusic Apr 9, 2020
6ba5419
uwu
Kelenius Jun 2, 2020
f598d5a
uwu
zxaber May 27, 2020
7677783
uwu
zxaber Apr 27, 2020
56f7875
uwu
TheGamerdk Jun 4, 2020
f96be88
uwu
actioninja Jan 13, 2020
51d8554
compile
TheGamerdk Jun 4, 2020
77b39d5
rust_g 0.4.3
TheGamerdk Jun 5, 2020
e746016
rust_g 0.4.4
TheGamerdk Jun 5, 2020
15da744
paint
AnturK Feb 27, 2020
efea89c
fixed
TheGamerdk Jun 5, 2020
69eaa25
icons
TheGamerdk Jun 5, 2020
dcd242f
Merge branch 'master' of https://github.com/yogstation13/Yogstation i…
TheGamerdk Jun 5, 2020
99c4e99
Merge branch 'yogstation13-master' into tgui
TheGamerdk Jun 5, 2020
e3aa157
Merge pull request #9 from yogstation13/master
TheGamerdk Jun 5, 2020
bae8810
Update easter.dm
TheGamerdk Jun 5, 2020
75cb6cd
Merge branch 'master' of https://github.com/yogstation13/Yogstation i…
TheGamerdk Jun 5, 2020
0523267
Update yogstation.dme
TheGamerdk Jun 5, 2020
eaca4d3
Merge branch 'yogstation13-master2' into tgui
TheGamerdk Jun 5, 2020
84fed54
asset cache
MrStonedOne May 4, 2020
16e01ef
Update asset_cache.dm
MrStonedOne May 9, 2020
1570269
opops
TheGamerdk Jun 5, 2020
7b19b10
hmm
TheGamerdk Jun 5, 2020
05f3009
hm
TheGamerdk Jun 5, 2020
d3ef23e
oh no
TheGamerdk Jun 5, 2020
18b88ab
awkward
TheGamerdk Jun 5, 2020
aff54cc
Update asset_list_items.dm
TheGamerdk Jun 5, 2020
2dd936a
hey
TheGamerdk Jun 5, 2020
f7f96f9
Update asset_list_items.dm
TheGamerdk Jun 5, 2020
5e91a52
Update asset_cache_item.dm
TheGamerdk Jun 5, 2020
270eeed
last try
TheGamerdk Jun 5, 2020
68e79a7
Update asset_list_items.dm
TheGamerdk Jun 5, 2020
5a732be
fuck it
TheGamerdk Jun 5, 2020
f38b99e
hmm
TheGamerdk Jun 6, 2020
eb3ab98
Update asset_list_items.dm
TheGamerdk Jun 6, 2020
49d8d54
uwu
TheGamerdk Jun 6, 2020
6be5d4a
Update client_procs.dm
TheGamerdk Jun 6, 2020
486fb8e
Update PDA.dm
TheGamerdk Jun 6, 2020
99df7c0
no i didn't
TheGamerdk Jun 7, 2020
c769fcc
Update guardianbuilder.dm
TheGamerdk Jun 7, 2020
ab4197c
Update solar.dm
TheGamerdk Jun 7, 2020
abb9e91
Update minimap.dm
TheGamerdk Jun 8, 2020
6ca9482
Merge branch 'master' into tgui
TheGamerdk Jun 9, 2020
3d40601
Update _vending.dm
TheGamerdk Jun 9, 2020
d03d03d
tgui
Arkatos1 Jun 10, 2020
9d3feab
Update skin.dmf
MrStonedOne May 22, 2020
6ec949e
Update tgui.bundle.js
TheGamerdk Jun 10, 2020
ed55b23
Fixes
TheGamerdk Jun 10, 2020
fb20997
Update borg_monitor.dm
TheGamerdk Jun 12, 2020
5ceb9d2
nanite fix
TheGamerdk Jun 13, 2020
e5c14a7
Update rust_g.dll
TheGamerdk Jun 14, 2020
d139fb0
Merge pull request #10 from yogstation13/master
TheGamerdk Jun 14, 2020
ca44305
d
TheGamerdk Jun 14, 2020
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Jump to
The table of contents is too big for display.
Diff view
Diff view
  •  
  •  
  •  
4 changes: 2 additions & 2 deletions _maps/RandomZLevels/research.dmm
Expand Up @@ -1337,7 +1337,7 @@
/obj/structure/closet/crate,
/obj/item/disk/data{
desc = "A data disk used to store cloning and genetic records. The name on the label appears to be scratched off.";
fields = list("label" = "Buffer1:Kr-$$@##", "UI" = "f8f603857000f930127c4", "SE" = "414401462231053131010241514651403453121613263463440351136366", "UE" = "340008485c321e542aed4df7032ac04d", "name" = "Krystal Symers", "blood_type" = "A+");
genetic_makeup_buffer = list("label" = "Buffer1:Kr-$$@##", "UI" = "f8f603857000f930127c4", "SE" = "414401462231053131010241514651403453121613263463440351136366", "UE" = "340008485c321e542aed4df7032ac04d", "name" = "Krystal Symers", "blood_type" = "A+");
name = "dusty genetics data disk";
read_only = 1
},
Expand Down Expand Up @@ -1733,7 +1733,7 @@
/obj/structure/closet/crate,
/obj/item/disk/data{
desc = "A data disk used to store cloning and genetic records. The name on the label appears to be scratched off with the words 'DO NOT CLONE' hastily written over it.";
fields = list("label" = "Buffer1:George Melons", "UI" = "3c300f11b5421ca7014d8", "SE" = "430431205660551642142504334461413202111310233445620533134255", "UE" = "6893e6a0b0076a41897776b10cc2b324", "name" = "George Melons", "blood_type" = "B+");
genetic_makeup_buffer = list("label" = "Buffer1:George Melons", "UI" = "3c300f11b5421ca7014d8", "SE" = "430431205660551642142504334461413202111310233445620533134255", "UE" = "6893e6a0b0076a41897776b10cc2b324", "name" = "George Melons", "blood_type" = "B+");
name = "old genetics data disk"
},
/obj/item/disk/data{
Expand Down
3 changes: 3 additions & 0 deletions code/__DEFINES/antagonists.dm
Expand Up @@ -72,3 +72,6 @@
#define CONTRACT_PAYOUT_LARGE 1
#define CONTRACT_PAYOUT_MEDIUM 2
#define CONTRACT_PAYOUT_SMALL 3

#define CONTRACT_UPLINK_PAGE_CONTRACTS "CONTRACTS"
#define CONTRACT_UPLINK_PAGE_HUB "HUB"
6 changes: 5 additions & 1 deletion code/__DEFINES/components.dm
Expand Up @@ -30,6 +30,10 @@
#define COMSIG_GLOB_MOB_DEATH "!mob_death" //mob died somewhere : (mob , gibbed)
#define COMSIG_GLOB_LIVING_SAY_SPECIAL "!say_special" //global living say plug - use sparingly: (mob/speaker , message)

// signals from globally accessible objects
/// from SSsun when the sun changes position : (azimuth)
#define COMSIG_SUN_MOVED "sun_moved"

//////////////////////////////////////////////////////////////////

// /datum signals
Expand Down Expand Up @@ -335,4 +339,4 @@
#define COMSIG_XENO_SLIME_CLICK_SHIFT "xeno_slime_click_shift" //from slime ShiftClickOn(): (/mob)
#define COMSIG_XENO_TURF_CLICK_SHIFT "xeno_turf_click_shift" //from turf ShiftClickOn(): (/mob)
#define COMSIG_XENO_TURF_CLICK_CTRL "xeno_turf_click_alt" //from turf AltClickOn(): (/mob)
#define COMSIG_XENO_MONKEY_CLICK_CTRL "xeno_monkey_click_ctrl" //from monkey CtrlClickOn(): (/mob)
#define COMSIG_XENO_MONKEY_CLICK_CTRL "xeno_monkey_click_ctrl" //from monkey CtrlClickOn(): (/mob)
2 changes: 1 addition & 1 deletion code/__DEFINES/misc.dm
Expand Up @@ -393,7 +393,7 @@ GLOBAL_LIST_INIT(pda_styles, list(MONO, VT, ORBITRON, SHARE))
#define ION_FILE "ion_laws.json"
#define PIRATE_NAMES_FILE "pirates.json"
#define REDPILL_FILE "redpill.json"

#define WANTED_FILE "wanted_message.json"

//Fullscreen overlay resolution in tiles.
#define FULLSCREEN_OVERLAY_RESOLUTION_X 15
Expand Down
4 changes: 3 additions & 1 deletion code/__DEFINES/nanites.dm
Expand Up @@ -8,4 +8,6 @@
#define NANITE_SHOCK_IMMUNE 1
#define NANITE_EMP_IMMUNE 2

#define NANITE_PROGRAM_LIMIT 20
#define NANITE_PROGRAM_LIMIT 20

#define COMSIG_NANITE_DELETE "nanite_delete"
3 changes: 3 additions & 0 deletions code/__DEFINES/power.dm
@@ -0,0 +1,3 @@
#define SOLAR_TRACK_OFF 0
#define SOLAR_TRACK_TIMED 1
#define SOLAR_TRACK_AUTO 2
1 change: 1 addition & 0 deletions code/__DEFINES/rust_g.dm
Expand Up @@ -2,6 +2,7 @@
#define RUST_G "rust_g"

#define rustg_dmi_strip_metadata(fname) call(RUST_G, "dmi_strip_metadata")(fname)
#define rustg_dmi_create_png(fname,width,height,data) call(RUST_G, "dmi_create_png")(fname,width,height,data)

#define rustg_git_revparse(rev) call(RUST_G, "rg_git_revparse")(rev)
#define rustg_git_commit_date(rev) call(RUST_G, "rg_git_commit_date")(rev)
Expand Down
3 changes: 2 additions & 1 deletion code/__HELPERS/_lists.dm
Expand Up @@ -388,6 +388,7 @@
for(var/datum/data/record/R in L)
if(R.fields[field] == value)
return R
return FALSE


//Move a single element from position fromIndex within a list, to position toIndex
Expand Down Expand Up @@ -588,4 +589,4 @@
if(l[i] != d[i])
return FALSE

return TRUE
return TRUE
3 changes: 2 additions & 1 deletion code/__HELPERS/_string_lists.dm
@@ -1,4 +1,5 @@
#define pick_list(FILE, KEY) (pick(strings(FILE, KEY)))
#define pick_list_weighted(FILE, KEY) (pickweight(strings(FILE, KEY)))
#define pick_list_replacements(FILE, KEY) (strings_replacement(FILE, KEY))
#define json_load(FILE) (json_decode(file2text(FILE)))

Expand Down Expand Up @@ -38,4 +39,4 @@ GLOBAL_VAR(string_filename_current_key)
if(fexists("[directory]/[filename]"))
GLOB.string_cache[filename] = json_load("[directory]/[filename]")
else
CRASH("file not found: [directory]/[filename]")
CRASH("file not found: [directory]/[filename]")
64 changes: 64 additions & 0 deletions code/__HELPERS/game.dm
Expand Up @@ -53,6 +53,28 @@
for(var/I in adjacent_turfs)
. |= get_area(I)

/**
* Get a bounding box of a list of atoms.
*
* Arguments:
* - atoms - List of atoms. Can accept output of view() and range() procs.
*
* Returns: list(x1, y1, x2, y2)
*/
/proc/get_bbox_of_atoms(list/atoms)
var/list/list_x = list()
var/list/list_y = list()
for(var/_a in atoms)
var/atom/a = _a
list_x += a.x
list_y += a.y
return list(
min(list_x),
min(list_y),
max(list_x),
max(list_y))


// Like view but bypasses luminosity check

/proc/get_hear(range, atom/source)
Expand Down Expand Up @@ -571,3 +593,45 @@
var/pressure = environment.return_pressure()
if(pressure <= LAVALAND_EQUIPMENT_EFFECT_PRESSURE)
. = TRUE

/proc/ispipewire(item)
var/static/list/pire_wire = list(
/obj/machinery/atmospherics,
/obj/structure/disposalpipe,
/obj/structure/cable
)
return (is_type_in_list(item, pire_wire))

// Find a obstruction free turf that's within the range of the center. Can also condition on if it is of a certain area type.
/proc/find_obstruction_free_location(var/range, var/atom/center, var/area/specific_area)
var/list/turfs = RANGE_TURFS(range, center)
var/list/possible_loc = list()

for(var/turf/found_turf in turfs)
var/area/turf_area = get_area(found_turf)

// We check if both the turf is a floor, and that it's actually in the area.
// We also want a location that's clear of any obstructions.
if (specific_area)
if (!istype(turf_area, specific_area))
continue

if (!isspaceturf(found_turf))
if (!is_blocked_turf(found_turf))
possible_loc.Add(found_turf)

// Need at least one free location.
if (possible_loc.len < 1)
return FALSE

return pick(possible_loc)

/proc/power_fail(duration_min, duration_max)
for(var/P in GLOB.apcs_list)
var/obj/machinery/power/apc/C = P
if(C.cell && SSmapping.level_trait(C.z, ZTRAIT_STATION))
var/area/A = C.area
if(GLOB.typecache_powerfailure_safe_areas[A.type])
continue

C.energy_fail(rand(duration_min,duration_max))
12 changes: 7 additions & 5 deletions code/__HELPERS/icons.dm
Expand Up @@ -1127,9 +1127,10 @@ GLOBAL_LIST_INIT(freon_color_matrix, list("#2E5E69", "#60A2A8", "#A1AFB1", rgb(0
if (!isicon(I))
if (isfile(thing)) //special snowflake
var/name = sanitize_filename("[generate_asset_name(thing)].png")
register_asset(name, thing)
if (!SSassets.cache[name])
register_asset(name, thing)
for (var/thing2 in targets)
send_asset(thing2, key, FALSE)
send_asset(thing2, key)
return "<img class='icon icon-misc' src=\"[url_encode(name)]\">"
var/atom/A = thing
if (isnull(dir))
Expand All @@ -1151,9 +1152,10 @@ GLOBAL_LIST_INIT(freon_color_matrix, list("#2E5E69", "#60A2A8", "#A1AFB1", rgb(0
I = icon(I, icon_state, dir, frame, moving)

key = "[generate_asset_name(I)].png"
register_asset(key, I)
if(!SSassets.cache[key])
register_asset(key, I)
for (var/thing2 in targets)
send_asset(thing2, key, FALSE)
send_asset(thing2, key)

return "<img class='icon icon-[icon_state]' src=\"[url_encode(key)]\">"

Expand Down Expand Up @@ -1199,4 +1201,4 @@ GLOBAL_LIST_INIT(freon_color_matrix, list("#2E5E69", "#60A2A8", "#A1AFB1", rgb(0
return icon2html(thing, target)

var/icon/I = getFlatIcon(thing)
return icon2html(I, target)
return icon2html(I, target)
7 changes: 6 additions & 1 deletion code/__HELPERS/radio.dm
@@ -1,6 +1,6 @@
// Ensure the frequency is within bounds of what it should be sending/receiving at
/proc/sanitize_frequency(frequency, free = FALSE)
. = round(frequency)
frequency = round(frequency)
if(free)
. = clamp(frequency, MIN_FREE_FREQ, MAX_FREE_FREQ)
else
Expand All @@ -12,3 +12,8 @@
/proc/format_frequency(frequency)
frequency = text2num(frequency)
return "[round(frequency / 10)].[frequency % 10]"

//Opposite of format, returns as a number
/proc/unformat_frequency(frequency)
frequency = text2num(frequency)
return frequency * 10
1 change: 1 addition & 0 deletions code/__HELPERS/roundend.dm
Expand Up @@ -327,6 +327,7 @@
roundend_report.set_content(content)
roundend_report.stylesheets = list()
roundend_report.add_stylesheet("roundend", 'html/browser/roundend.css')
roundend_report.add_stylesheet("font-awesome", 'html/font-awesome/css/all.min.css')
roundend_report.open(FALSE)

/datum/controller/subsystem/ticker/proc/personal_report(client/C, popcount)
Expand Down
2 changes: 2 additions & 0 deletions code/_globalvars/lists/poll_ignore.dm
Expand Up @@ -19,6 +19,7 @@
#define POLL_IGNORE_SHADE "shade"
#define POLL_IGNORE_IMAGINARYFRIEND "imaginary_friend"
#define POLL_IGNORE_SPLITPERSONALITY "split_personality"
#define POLL_IGNORE_CONTRACTOR_SUPPORT "contractor_support"


GLOBAL_LIST_INIT(poll_ignore_desc, list(
Expand All @@ -41,6 +42,7 @@ GLOBAL_LIST_INIT(poll_ignore_desc, list(
POLL_IGNORE_SHADE = "Shade",
POLL_IGNORE_IMAGINARYFRIEND = "Imaginary Friend",
POLL_IGNORE_SPLITPERSONALITY = "Split Personality",
POLL_IGNORE_CONTRACTOR_SUPPORT = "Contractor Support Unit"
))
GLOBAL_LIST_INIT(poll_ignore, init_poll_ignore())

Expand Down