Skip to content

Commit 39e904e

Browse files
committed
Merge branch 'dev-sierra' of https://github.com/Rochehendson/SierraBay12 into dev-sierra
2 parents 74a84a6 + e7fedef commit 39e904e

File tree

296 files changed

+19015
-2033
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

296 files changed

+19015
-2033
lines changed

baystation12.dme

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -94,6 +94,7 @@
9494
#include "code\__defines\~mods\items_clothing.dm"
9595
#include "code\__defines\~mods\mechs.dm"
9696
#include "code\__defines\~mods\misc.dm"
97+
#include "code\__defines\~mods\mobs.dm"
9798
#include "code\__defines\~mods\rust_g.dm"
9899
#include "code\__defines\~mods\tg_signals.dm"
99100
#include "code\__defines\~mods\~master_defines.dm"
@@ -3444,6 +3445,7 @@
34443445
#include "mods\_master_files\code\modules\events\gravity.dm"
34453446
#include "mods\_master_files\code\modules\maps\map_template.dm"
34463447
#include "mods\_master_files\code\modules\mob\living\life.dm"
3448+
#include "mods\_master_files\code\modules\mob\living\carbon\viruses.dm"
34473449
#include "mods\_master_files\code\modules\mob\living\carbon\human\human_helpers.dm"
34483450
#include "mods\_master_files\code\modules\mob\new_player\new_player.dm"
34493451
#include "mods\_master_files\code\modules\multiz\turf.dm"

code/__defines/MC.dm

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -107,28 +107,28 @@ if(Datum.is_processing) {\
107107
****/
108108

109109
/// The subsystem's Initialize() will not be called.
110-
#define SS_NO_INIT FLAG(0)
110+
#define SS_NO_INIT FLAG_01
111111

112112
/// The subsystem's fire() will not be called. This is preferable to can_fire = FALSE because it will not be added to the MC's list of active systems.
113-
#define SS_NO_FIRE FLAG(1)
113+
#define SS_NO_FIRE FLAG_02
114114

115115
/// The subsystem runs on spare CPU time, after all non-background subsystems have run that tick. Priority is considered against other SS_BACKGROUND subsystems.
116-
#define SS_BACKGROUND FLAG(2)
116+
#define SS_BACKGROUND FLAG_03
117117

118118
/// The subsystem does not tick check and should not run unless enough time can be guaranteed or it must to stay current.
119-
#define SS_NO_TICK_CHECK FLAG(3)
119+
#define SS_NO_TICK_CHECK FLAG_04
120120

121121
/// Treat the value of the subsystem's wait as ticks, not time. Forces it to run in the first tick. Implicitly has all runlevels. Ignores SS_BACKGROUND if set. Intended for systems that act like a mini-MC, like timers.
122-
#define SS_TICKER FLAG(4)
122+
#define SS_TICKER FLAG_05
123123

124124
/// Attempt to keep the subsystem's timing real-world regular by adjusting fire timing to be earlier the later it previously ran.
125-
#define SS_KEEP_TIMING FLAG(5)
125+
#define SS_KEEP_TIMING FLAG_06
126126

127127
/// Calculate the subsystem's next fire time from when it finished, not when it started.
128-
#define SS_POST_FIRE_TIMING FLAG(6)
128+
#define SS_POST_FIRE_TIMING FLAG_07
129129

130130
/// Run Shutdown() on server shutdown so the SS can finalize state.
131-
#define SS_NEEDS_SHUTDOWN FLAG(7)
131+
#define SS_NEEDS_SHUTDOWN FLAG_08
132132

133133

134134
/****

code/__defines/__initialization.dm

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@
77
#define INITIALIZE_HINT_LATELOAD 2 //Call LateInitialize
88
#define INITIALIZE_HINT_QDEL 3 //Call qdel on the atom
99

10-
#define ATOM_FLAG_INITIALIZED FLAG(0) // The atom has been initialized. Also see flags.dm
10+
#define ATOM_FLAG_INITIALIZED FLAG_01
1111

1212
//type and all subtypes should always call Initialize in New()
1313
#define INITIALIZE_IMMEDIATE(X) ##X/New(loc, ...){\

code/__defines/__renderer.dm

Lines changed: 8 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,6 @@
1616
1717
FLOAT_PLANE = -32767
1818
*/
19-
2019
#define LOWEST_PLANE -200
2120

2221
#define CLICKCATCHER_PLANE -100
@@ -139,35 +138,37 @@
139138
#define OBFUSCATION_LAYER 5.2
140139
#define BASE_AREA_LAYER 999
141140

142-
#define OBSERVER_PLANE 200
141+
#define GAME_PLANE_FOV_HIDDEN 2 //[SIERRA-ADD] - VISION CONE
142+
#define GAME_PLANE_ABOVE_FOV 3 //[SIERRA-ADD] - VISION CONE
143+
#define OBSERVER_PLANE 4 //[SIERRA-EDIT] - VISION CONE (2 became 4)
143144

144-
#define LIGHTING_PLANE 300 // For Lighting. - The highest plane (ignoring all other even higher planes)
145+
#define LIGHTING_PLANE 5 // For Lighting. - The highest plane (ignoring all other even higher planes) //[SIERRA-EDIT] - VISION CONE (3 became 5)
145146
#define LIGHTBULB_LAYER 0
146147
#define LIGHTING_LAYER 1
147148
#define ABOVE_LIGHTING_LAYER 2
148149

149-
#define EFFECTS_ABOVE_LIGHTING_PLANE 400 // For glowy eyes, laser beams, etc. that shouldn't be affected by darkness
150+
#define EFFECTS_ABOVE_LIGHTING_PLANE 6 // For glowy eyes, laser beams, etc. that shouldn't be affected by darkness //[SIERRA-EDIT] - VISION CONE (4 became 6)
150151
#define EYE_GLOW_LAYER 1
151152
#define BEAM_PROJECTILE_LAYER 2
152153
#define SUPERMATTER_WALL_LAYER 3
153154
#define SPEECH_INDICATOR_LAYER 4
154155

155-
#define FULLSCREEN_PLANE 500 // for fullscreen overlays that do not cover the hud.
156+
#define FULLSCREEN_PLANE 7 // for fullscreen overlays that do not cover the hud. //[SIERRA-EDIT] - VISION CONE (5 became 7)
156157

157158
#define FULLSCREEN_LAYER 0
158159
#define DAMAGE_LAYER 1
159160
#define IMPAIRED_LAYER 2
160161
#define BLIND_LAYER 3
161162
#define CRIT_LAYER 4
162163

163-
#define HUD_PLANE 600
164+
#define HUD_PLANE 8 //[SIERRA-EDIT] - VISION CONE (6 became 8)
164165
#define UNDER_HUD_LAYER 0
165166
#define HUD_BASE_LAYER 2
166167
#define HUD_ITEM_LAYER 3
167168
#define HUD_ABOVE_ITEM_LAYER 4
168169
#define HUD_ABOVE_HUD_LAYER 5
169170

170-
#define RUNECHAT_PLANE 7
171+
#define RUNECHAT_PLANE 9 //[SIERRA-EDIT] - VISION CONE (7 became 9)
171172

172173
/// This plane masks out lighting, to create an "emissive" effect for e.g glowing screens in otherwise dark areas.
173174
#define EMISSIVE_PLANE 700

code/__defines/_renderer.dm

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -9,17 +9,17 @@
99

1010

1111
/// Main renderers are expected to always be on mobs with clients.
12-
#define RENDERER_MAIN FLAG(0)
12+
#define RENDERER_MAIN FLAG_01
1313

1414
/**
1515
* Shared renderers have a single instance and are added/removed instead of created/deleted.
1616
* Many renderers can be shared - only ones that depend on the state of the mob seeing them,
1717
* such as effects with preferences, require an owner.
1818
*/
19-
#define RENDERER_SHARED FLAG(1)
19+
#define RENDERER_SHARED FLAG_02
2020

2121
/// Renderers with non-default setup behavior in hook/startup/proc/setup_renderers.
22-
#define RENDERER_SHARED_CUSTOM FLAG(2)
22+
#define RENDERER_SHARED_CUSTOM FLAG_03
2323

2424

2525
/// The base /renderer definition and defaults.
@@ -31,7 +31,7 @@
3131
blend_mode = BLEND_OVERLAY
3232

3333
/// A bitfield of RENDERER_* defines.
34-
var/renderer_flags = EMPTY_BITFIELD
34+
var/renderer_flags = FLAGS_OFF
3535

3636
/// The compositing renderer this renderer belongs to.
3737
var/group = RENDER_GROUP_FINAL

code/__defines/admin.dm

Lines changed: 26 additions & 26 deletions
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,11 @@
11
// A set of constants used to determine which type of mute an admin wishes to apply.
2-
#define MUTE_IC FLAG(0)
3-
#define MUTE_OOC FLAG(1)
4-
#define MUTE_PRAY FLAG(2)
5-
#define MUTE_ADMINHELP FLAG(3)
6-
#define MUTE_DEADCHAT FLAG(4)
7-
#define MUTE_AOOC FLAG(5)
8-
#define MUTE_ALL (~EMPTY_BITFIELD)
2+
#define MUTE_IC FLAG_01
3+
#define MUTE_OOC FLAG_02
4+
#define MUTE_PRAY FLAG_03
5+
#define MUTE_ADMINHELP FLAG_04
6+
#define MUTE_DEADCHAT FLAG_05
7+
#define MUTE_AOOC FLAG_06
8+
#define MUTE_ALL FLAGS_ON
99

1010
// Some constants for DB_Ban
1111
#define BANTYPE_PERMA 1
@@ -17,31 +17,31 @@
1717
#define ROUNDSTART_LOGOUT_REPORT_TIME 6000 // Amount of time (in deciseconds) after the rounds starts, that the player disconnect report is issued.
1818

1919
// Admin permissions.
20-
#define R_BUILDMODE FLAG(0)
21-
#define R_ADMIN FLAG(1)
22-
#define R_BAN FLAG(2)
23-
#define R_FUN FLAG(3)
24-
#define R_SERVER FLAG(4)
25-
#define R_DEBUG FLAG(5)
26-
#define R_POSSESS FLAG(6)
27-
#define R_PERMISSIONS FLAG(7)
28-
#define R_STEALTH FLAG(8)
29-
#define R_REJUVINATE FLAG(9)
30-
#define R_VAREDIT FLAG(10)
31-
#define R_SOUNDS FLAG(11)
32-
#define R_SPAWN FLAG(12)
33-
#define R_MOD FLAG(13)
20+
#define R_BUILDMODE FLAG_01
21+
#define R_ADMIN FLAG_02
22+
#define R_BAN FLAG_03
23+
#define R_FUN FLAG_04
24+
#define R_SERVER FLAG_05
25+
#define R_DEBUG FLAG_06
26+
#define R_POSSESS FLAG_07
27+
#define R_PERMISSIONS FLAG_08
28+
#define R_STEALTH FLAG_09
29+
#define R_REJUVINATE FLAG_10
30+
#define R_VAREDIT FLAG_11
31+
#define R_SOUNDS FLAG_12
32+
#define R_SPAWN FLAG_13
33+
#define R_MOD FLAG_14
3434
// [SIERRA-EDIT] - XENO WHITELIST
3535
//#define R_HOST FLAG(14) // SIERRA-EDIT - ORIGINAL
36-
#define R_XENO FLAG(14)
37-
#define R_HOST FLAG(15)
36+
#define R_XENO FLAG_15
37+
#define R_HOST FLAG_16
3838
// [SIERRA-EDIT]
3939
#define R_INVESTIGATE (R_ADMIN | R_MOD)
4040
#define R_MAXPERMISSION R_HOST
4141

42-
#define ADDANTAG_PLAYER FLAG(0) // Any player may call the add antagonist vote.
43-
#define ADDANTAG_ADMIN FLAG(1) // Any player with admin privilegies may call the add antagonist vote.
44-
#define ADDANTAG_AUTO FLAG(2) // The add antagonist vote is available as an alternative for transfer vote.
42+
#define ADDANTAG_PLAYER FLAG_01 // Any player may call the add antagonist vote.
43+
#define ADDANTAG_ADMIN FLAG_02 // Any player with admin privilegies may call the add antagonist vote.
44+
#define ADDANTAG_AUTO FLAG_03 // The add antagonist vote is available as an alternative for transfer vote.
4545

4646
#define TICKET_CLOSED 0 // Ticket has been resolved or declined
4747
#define TICKET_OPEN 1 // Ticket has been created, but not responded to

code/__defines/chemistry.dm

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -44,8 +44,8 @@
4444
#define CE_STIMULANT "stimulants" // Makes it harder to disarm someone
4545

4646
//reagent flags
47-
#define IGNORE_MOB_SIZE FLAG(0)
48-
#define AFFECTS_DEAD FLAG(1)
47+
#define IGNORE_MOB_SIZE FLAG_01
48+
#define AFFECTS_DEAD FLAG_02
4949

5050
#define HANDLE_REACTIONS(_reagents) SSchemistry.active_reagents[_reagents] = TRUE
5151
#define UNQUEUE_REACTIONS(_reagents) SSchemistry.active_reagents -= _reagents

code/__defines/damage_organs.dm

Lines changed: 28 additions & 28 deletions
Original file line numberDiff line numberDiff line change
@@ -19,38 +19,38 @@
1919
#define AIR_DAMAGE_MODIFIER 2.025 // More means less damage from hot air scalding lungs, less = more damage. (default 2.025)
2020

2121
// Organ defines.
22-
#define ORGAN_CUT_AWAY FLAG(0) // The organ is in the process of being surgically removed.
23-
#define ORGAN_BLEEDING FLAG(1) // The organ is currently bleeding.
24-
#define ORGAN_BROKEN FLAG(2) // The organ is broken.
25-
#define ORGAN_DEAD FLAG(3) // The organ is necrotic.
26-
#define ORGAN_MUTATED FLAG(4) // The organ is unusable due to genetic damage.
27-
#define ORGAN_ARTERY_CUT FLAG(6) // The organ has had its artery cut.
28-
#define ORGAN_TENDON_CUT FLAG(7) // The organ has had its tendon cut.
29-
#define ORGAN_DISFIGURED FLAG(8) // The organ is scarred/disfigured. Alters whether or not the face can be recognised.
30-
#define ORGAN_SABOTAGED FLAG(9) // The organ will explode if exposed to EMP, if prosthetic.
31-
#define ORGAN_ASSISTED FLAG(10) // The organ is partially prosthetic. No mechanical effect.
32-
#define ORGAN_ROBOTIC FLAG(11) // The organ is robotic. Changes numerous behaviors, search BP_IS_ROBOTIC for checks.
33-
#define ORGAN_BRITTLE FLAG(12) // The organ takes additional blunt damage. If robotic, cannot be repaired through normal means.
34-
#define ORGAN_CRYSTAL FLAG(13) // The organ does not suffer laser damage, but shatters on droplimb.
35-
#define ORGAN_CONFIGURE FLAG(14) // The organ has an extra configuration step for surgery that it handles itself.
22+
#define ORGAN_CUT_AWAY FLAG_01 // The organ is in the process of being surgically removed.
23+
#define ORGAN_BLEEDING FLAG_02 // The organ is currently bleeding.
24+
#define ORGAN_BROKEN FLAG_03 // The organ is broken.
25+
#define ORGAN_DEAD FLAG_04 // The organ is necrotic.
26+
#define ORGAN_MUTATED FLAG_05 // The organ is unusable due to genetic damage.
27+
#define ORGAN_ARTERY_CUT FLAG_07 // The organ has had its artery cut.
28+
#define ORGAN_TENDON_CUT FLAG_08 // The organ has had its tendon cut.
29+
#define ORGAN_DISFIGURED FLAG_09 // The organ is scarred/disfigured. Alters whether or not the face can be recognised.
30+
#define ORGAN_SABOTAGED FLAG_10 // The organ will explode if exposed to EMP, if prosthetic.
31+
#define ORGAN_ASSISTED FLAG_11 // The organ is partially prosthetic. No mechanical effect.
32+
#define ORGAN_ROBOTIC FLAG_12 // The organ is robotic. Changes numerous behaviors, search BP_IS_ROBOTIC for checks.
33+
#define ORGAN_BRITTLE FLAG_13 // The organ takes additional blunt damage. If robotic, cannot be repaired through normal means.
34+
#define ORGAN_CRYSTAL FLAG_14 // The organ does not suffer laser damage, but shatters on droplimb.
35+
#define ORGAN_CONFIGURE FLAG_15 // The organ has an extra configuration step for surgery that it handles itself.
3636

3737
// Flags for proc/take_organ_damage
38-
#define ORGAN_DAMAGE_SHARP FLAG(0) // Damage should be treated as sharp when applied
39-
#define ORGAN_DAMAGE_EDGE FLAG(1) // Damage should be treated as edged when applied
40-
#define ORGAN_DAMAGE_FLESH_ONLY FLAG(2) // Damage should not be applied to robotic organs
41-
#define ORGAN_DAMAGE_ROBOT_ONLY FLAG(3) // Damage should not be applied to flesh organs
42-
#define ORGAN_DAMAGE_SILICON_EMP FLAG(4) // Damage should be treated as bypassing armor for silicons
38+
#define ORGAN_DAMAGE_SHARP FLAG_01 // Damage should be treated as sharp when applied
39+
#define ORGAN_DAMAGE_EDGE FLAG_02 // Damage should be treated as edged when applied
40+
#define ORGAN_DAMAGE_FLESH_ONLY FLAG_03 // Damage should not be applied to robotic organs
41+
#define ORGAN_DAMAGE_ROBOT_ONLY FLAG_04 // Damage should not be applied to flesh organs
42+
#define ORGAN_DAMAGE_SILICON_EMP FLAG_05 // Damage should be treated as bypassing armor for silicons
4343

4444
// Organ flag defines.
45-
#define ORGAN_FLAG_CAN_AMPUTATE FLAG(0) // The organ can be amputated.
46-
#define ORGAN_FLAG_CAN_BREAK FLAG(1) // The organ can be broken.
47-
#define ORGAN_FLAG_CAN_GRASP FLAG(2) // The organ contributes to grasping.
48-
#define ORGAN_FLAG_CAN_STAND FLAG(3) // The organ contributes to standing.
49-
#define ORGAN_FLAG_HAS_TENDON FLAG(4) // The organ can have its tendon cut.
50-
#define ORGAN_FLAG_FINGERPRINT FLAG(5) // The organ has a fingerprint.
51-
#define ORGAN_FLAG_GENDERED_ICON FLAG(6) // The icon state for this organ appends _m/_f.
52-
#define ORGAN_FLAG_HEALS_OVERKILL FLAG(7) // The organ heals from overkill damage.
53-
#define ORGAN_FLAG_DEFORMED FLAG(8) // The organ is permanently disfigured.
45+
#define ORGAN_FLAG_CAN_AMPUTATE FLAG_01 // The organ can be amputated.
46+
#define ORGAN_FLAG_CAN_BREAK FLAG_02 // The organ can be broken.
47+
#define ORGAN_FLAG_CAN_GRASP FLAG_03 // The organ contributes to grasping.
48+
#define ORGAN_FLAG_CAN_STAND FLAG_04 // The organ contributes to standing.
49+
#define ORGAN_FLAG_HAS_TENDON FLAG_05 // The organ can have its tendon cut.
50+
#define ORGAN_FLAG_FINGERPRINT FLAG_06 // The organ has a fingerprint.
51+
#define ORGAN_FLAG_GENDERED_ICON FLAG_07 // The icon state for this organ appends _m/_f.
52+
#define ORGAN_FLAG_HEALS_OVERKILL FLAG_08 // The organ heals from overkill damage.
53+
#define ORGAN_FLAG_DEFORMED FLAG_09 // The organ is permanently disfigured.
5454

5555
// Droplimb types.
5656
#define DROPLIMB_EDGE 0

code/__defines/dna.dm

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -28,15 +28,15 @@
2828
#define mSmallsize 110 // Table climbing.
2929

3030
// disabilities
31-
#define NEARSIGHTED FLAG(0)
32-
#define EPILEPSY FLAG(1)
33-
#define COUGHING FLAG(2)
34-
#define NERVOUS FLAG(3)
31+
#define NEARSIGHTED FLAG_01
32+
#define EPILEPSY FLAG_02
33+
#define COUGHING FLAG_03
34+
#define NERVOUS FLAG_04
3535

3636
// sdisabilities
37-
#define BLINDED FLAG(0)
38-
#define MUTED FLAG(1)
39-
#define DEAFENED FLAG(2)
37+
#define BLINDED FLAG_01
38+
#define MUTED FLAG_02
39+
#define DEAFENED FLAG_03
4040

4141
// The way blocks are handled badly needs a rewrite, this is horrible.
4242
// Too much of a project to handle at the moment, TODO for later.

code/__defines/doors.dm

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -9,10 +9,10 @@
99

1010
// Flags for `/obj/machinery/door/airlock/var/paintable`
1111
/// The main airlock body is paintable.
12-
#define AIRLOCK_PAINTABLE_MAIN FLAG(0)
12+
#define AIRLOCK_PAINTABLE_MAIN FLAG_01
1313
/// The stripe decal is paintable.
14-
#define AIRLOCK_PAINTABLE_STRIPE FLAG(1)
14+
#define AIRLOCK_PAINTABLE_STRIPE FLAG_02
1515
/// Other detailing is paintable.
16-
#define AIRLOCK_PAINTABLE_DETAIL FLAG(2)
16+
#define AIRLOCK_PAINTABLE_DETAIL FLAG_03
1717
/// The window is paintable.
18-
#define AIRLOCK_PAINTABLE_WINDOW FLAG(3)
18+
#define AIRLOCK_PAINTABLE_WINDOW FLAG_04

0 commit comments

Comments
 (0)