-
-
Notifications
You must be signed in to change notification settings - Fork 538
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
PGFCSB/OSHA update: Various workplace hazards now are hazards #3387
Changes from all commits
ec4c776
7f44e89
31bbc79
50e86c9
0584462
205585a
0e5c49b
b0db41f
bfb5c49
109e294
65521fe
e72401d
8efcbbd
361b504
c491220
1031041
dc73e62
beb7563
cede190
974eb1d
c834e3a
81c7376
ab74cb3
3300ddb
d28e214
8591ca0
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -168,13 +168,13 @@ | |
|
||
//TANKS | ||
/// temperature in kelvins at which a tank will start to melt | ||
#define TANK_MELT_TEMPERATURE 1000000 | ||
#define TANK_MELT_TEMPERATURE 1000 + T0C | ||
/// Tank starts leaking | ||
#define TANK_LEAK_PRESSURE (30.*ONE_ATMOSPHERE) | ||
#define TANK_LEAK_PRESSURE (20 * ONE_ATMOSPHERE + 5) | ||
/// Tank spills all contents into atmosphere | ||
#define TANK_RUPTURE_PRESSURE (35.*ONE_ATMOSPHERE) | ||
#define TANK_RUPTURE_PRESSURE (20 * ONE_ATMOSPHERE) | ||
Comment on lines
+173
to
+175
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. 2023 kpa is less than the air pump, which fills to ~2533, so people trying to fill tanks with one can break them (source: experience). I'd think at the very least tanks should have warning labels for maximum pressure/temperature There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Good idea Probably on a examine() |
||
/// Boom 3x3 base explosion | ||
#define TANK_FRAGMENT_PRESSURE (40.*ONE_ATMOSPHERE) | ||
#define TANK_FRAGMENT_PRESSURE (25.*ONE_ATMOSPHERE) | ||
/// +1 for each SCALE kPa aboe threshold | ||
#define TANK_FRAGMENT_SCALE (6.*ONE_ATMOSPHERE) | ||
#define TANK_MAX_RELEASE_PRESSURE (ONE_ATMOSPHERE*3) | ||
|
@@ -337,6 +337,7 @@ | |
#define GAS_HYDROGEN "h2" | ||
#define GAS_CHLORINE "cl2" | ||
#define GAS_HYDROGEN_CHLORIDE "hcl" | ||
#define GAS_CO "co" | ||
|
||
#define GAS_FLAG_DANGEROUS (1<<0) | ||
#define GAS_FLAG_BREATH_PROC (1<<1) | ||
|
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -46,8 +46,6 @@ | |
var/mob/living/shooter | ||
|
||
/datum/component/pellet_cloud/Initialize(projectile_type=/obj/item/shrapnel, magnitude=5) | ||
if(!isammocasing(parent) && !isgrenade(parent) && !islandmine(parent) && !issupplypod(parent)) | ||
return COMPONENT_INCOMPATIBLE | ||
Comment on lines
-49
to
-50
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. please at least check that its an atom or obj |
||
|
||
if(magnitude < 1) | ||
stack_trace("Invalid magnitude [magnitude] < 1 on pellet_cloud, parent: [parent]") | ||
|
@@ -57,7 +55,7 @@ | |
|
||
if(isammocasing(parent)) | ||
num_pellets = magnitude | ||
else if(isgrenade(parent) || islandmine(parent) || issupplypod(parent)) | ||
else | ||
radius = magnitude | ||
|
||
/datum/component/pellet_cloud/Destroy(force, silent) | ||
|
@@ -76,7 +74,7 @@ | |
RegisterSignal(parent, COMSIG_GRENADE_PRIME, PROC_REF(create_blast_pellets)) | ||
else if(islandmine(parent)) | ||
RegisterSignal(parent, COMSIG_MINE_TRIGGERED, PROC_REF(create_blast_pellets)) | ||
else if(issupplypod(parent)) | ||
else | ||
RegisterSignal(parent, COMSIG_SUPPLYPOD_LANDED, PROC_REF(create_blast_pellets)) | ||
|
||
/datum/component/pellet_cloud/UnregisterFromParent() | ||
|
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -832,6 +832,29 @@ GLOBAL_VAR_INIT(embedpocalypse, FALSE) // if true, all items will be able to emb | |
if(isturf(location)) | ||
location.hotspot_expose(flame_heat, 5) | ||
|
||
if(!prob(1)) | ||
return | ||
|
||
for(var/dir in GLOB.cardinals) | ||
var/ruined_round = FALSE | ||
var/turf/test_turf = get_step(location, dir) | ||
for(var/obj/to_test as obj in test_turf.contents) | ||
if(istype(to_test, /obj/structure/reagent_dispensers/fueltank)) | ||
location.visible_message("<span class='userdanger'>A single ember from [src] drops gently onto [to_test]. Uh oh.</span>") | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. span macros |
||
to_test.fire_act() | ||
ruined_round = TRUE | ||
break | ||
if(istype(to_test, /obj/machinery/atmospherics/components/unary/tank)) | ||
location.visible_message("<span class='userdanger'>A flash fire forms around [src]!</span>") | ||
location.IgniteTurf(flame_heat/20) | ||
new /obj/effect/hotspot(location) | ||
ruined_round = TRUE | ||
break | ||
if(ruined_round) | ||
break | ||
|
||
|
||
|
||
/obj/item/proc/ignition_effect(atom/A, mob/user) | ||
if(get_temperature()) | ||
. = "<span class='notice'>[user] lights [A] with [src].</span>" | ||
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This is higher than the rupture pressure so tanks probably won't leak (for long) they'll just pop
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I removed tank leaking from internal tanks, it didn't seem to even work as intended and during testing it was like... meh honestly