Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
140 commits
Select commit Hold shift + click to select a range
d248f32
Adding Doe's crafted backpacks.
MistakeNot4892 Dec 4, 2024
6d73458
Added a large square woven basket.
MistakeNot4892 Dec 4, 2024
48f02aa
Generalised the name_prefix system.
MistakeNot4892 Dec 4, 2024
6286dff
Adding hay.
MistakeNot4892 Dec 4, 2024
e174d8c
Fix HE pipes lacking color
out-of-phaze Sep 28, 2024
071bbe0
Fix antag skill selector runtiming
out-of-phaze Sep 28, 2024
3a459cc
Rename temporaray.dm to temporary.dm
out-of-phaze Nov 28, 2024
1f3322c
Replace item and structure color sets with set_color
out-of-phaze Nov 28, 2024
df1c629
Merge pull request #4607 from MistakeNot4892/tweak/pipes
MistakeNot4892 Dec 7, 2024
c23b2c8
Automatic changelog generation [ci skip]
NebulaSS13Bot Dec 7, 2024
da85b88
Adding a large cauldron that cannot be picked up.
MistakeNot4892 Dec 7, 2024
7e9b86e
Adding a candelabra.
MistakeNot4892 Dec 7, 2024
dc46237
Adding a small circular rug.
MistakeNot4892 Dec 7, 2024
e6eb912
Added several wider pillars.
MistakeNot4892 Dec 7, 2024
1d54ca2
Adding gemstones and basic gemcutting.
MistakeNot4892 Dec 2, 2024
8ca7971
Removed deity mode.
MistakeNot4892 Dec 5, 2024
88d1e57
Adding Doe's room dividers.
MistakeNot4892 Dec 4, 2024
8a7982e
Merge pull request #4605 from MistakeNot4892/removal/deity
out-of-phaze Dec 7, 2024
be1e02c
Merge pull request #4600 from MistakeNot4892/feature/divider
out-of-phaze Dec 7, 2024
d2ec07c
Merge pull request #4601 from MistakeNot4892/feature/leatherpack
out-of-phaze Dec 7, 2024
9e2b6a0
Merge pull request #4602 from MistakeNot4892/rework/hay
out-of-phaze Dec 7, 2024
000cefa
Merge pull request #4603 from MistakeNot4892/feature/baskets
out-of-phaze Dec 7, 2024
076f629
Merge pull request #4593 from MistakeNot4892/feature/gemstones
out-of-phaze Dec 7, 2024
9e4b0f9
Fix banner merge skew
out-of-phaze Dec 7, 2024
4caefc3
Merge pull request #4620 from out-of-phaze/hotfix/mergeskew-12-7-24
out-of-phaze Dec 7, 2024
e6d6c44
Make cables use paint_color
out-of-phaze Nov 28, 2024
7eb2d72
Simplify shard alpha calculation
out-of-phaze Nov 28, 2024
7a9febd
Rewrite table icon code
out-of-phaze Nov 28, 2024
e11012a
Fix cable uniqueness test output
out-of-phaze Dec 7, 2024
1a62c5d
Removing wizard.
MistakeNot4892 Dec 5, 2024
3a46a3b
Removes unnecessary pronouns
out-of-phaze Dec 8, 2024
e34ae1b
Adding SSpathfinding to handle AStar pathfinding requests.
MistakeNot4892 Nov 2, 2024
c1e1e68
Adds a grandfather clock.
MistakeNot4892 Dec 7, 2024
c549d2f
Fixing issues with ammo magazine contents init.
MistakeNot4892 Dec 8, 2024
1a9c1db
Synthetics do not get hungry or thirsty.
MistakeNot4892 Dec 8, 2024
95774f3
Merge pull request #4613 from MistakeNot4892/feature/cauldron
out-of-phaze Dec 9, 2024
bc40151
Merge pull request #4616 from MistakeNot4892/feature/rug
out-of-phaze Dec 9, 2024
315c7ce
Merge pull request #4618 from MistakeNot4892/feature/pillars
out-of-phaze Dec 9, 2024
c69b251
Merge pull request #4614 from MistakeNot4892/feature/candlestand
out-of-phaze Dec 9, 2024
ef86cd4
Various clothing and equipment tweaks for Karzerfeste.
MistakeNot4892 Dec 7, 2024
5bf0757
Adding several low tech armor/weapon props.
MistakeNot4892 Dec 7, 2024
9122081
Cleaning up/rewriting target dummies.
MistakeNot4892 Dec 9, 2024
6cbf766
Removed slavers' den.
MistakeNot4892 Dec 9, 2024
9ee3068
Vendor prices now round to avoid partial worth issues.
MistakeNot4892 Dec 9, 2024
6d879fa
Automatic changelog generation [ci skip]
NebulaSS13Bot Dec 10, 2024
98fd5f5
Merge pull request #4621 from out-of-phaze/codequality/ghost-pronouns
MistakeNot4892 Dec 10, 2024
c30b529
Merge pull request #4617 from MistakeNot4892/feature/clock
out-of-phaze Dec 10, 2024
e9eb150
Merge pull request #4627 from MistakeNot4892/fix/ammo
out-of-phaze Dec 10, 2024
6567c6f
Merge pull request #4612 from MistakeNot4892/map/shaded_hills
out-of-phaze Dec 10, 2024
33ebefc
Update code/datums/config/config_types/config_mode.dm
MistakeNot4892 Dec 11, 2024
c2e44ed
crutch
Greenjoe12345 Dec 11, 2024
29de947
Merge pull request #4635 from Greenjoe12345/loadoutcrutch
out-of-phaze Dec 11, 2024
4e44316
Fix table colors
out-of-phaze Dec 11, 2024
d726126
Merge pull request #4632 from MistakeNot4892/fix/vendor
out-of-phaze Dec 11, 2024
a48c4b9
Merge pull request #4630 from MistakeNot4892/removal/abolitionists
out-of-phaze Dec 11, 2024
02495f8
Reworking necklaces and rings to use Doe's new icons.
MistakeNot4892 Dec 2, 2024
2454c77
Merge pull request #4609 from out-of-phaze/fix/all-the-colors
MistakeNot4892 Dec 11, 2024
30f1ff9
Augments now keep their intended material costs and don't end up full…
MistakeNot4892 Dec 9, 2024
0e8657c
Meat and nutriment should no longer cause organ damage on ingestion.
MistakeNot4892 Dec 11, 2024
8860265
Merge pull request #4629 from MistakeNot4892/fix/meat
out-of-phaze Dec 11, 2024
e2f91e9
Merge pull request #4592 from MistakeNot4892/feature/jewellery
out-of-phaze Dec 11, 2024
5291d29
Merge pull request #4628 from MistakeNot4892/fix/synthfood
out-of-phaze Dec 11, 2024
daa5d74
Added material alteration flag to grandfather clock.
MistakeNot4892 Dec 11, 2024
6662830
Adding various fancy goods from Doe's icon set.
MistakeNot4892 Dec 2, 2024
47992bb
More robust handling for slapcrafting holder creation.
MistakeNot4892 Dec 9, 2024
cd115a0
Merge pull request #4606 from MistakeNot4892/removal/wizard
out-of-phaze Dec 12, 2024
8dd039a
Remove remaining hooks
out-of-phaze Dec 5, 2024
bb79c46
Remove redundant multitool extension Topic defines
out-of-phaze Dec 6, 2024
7635c33
Consolidate ghost mob files with only one proc each
out-of-phaze Dec 6, 2024
da2fbfc
Remove unused item worth define
out-of-phaze Dec 6, 2024
0b9bea4
Bump Del count for comments
out-of-phaze Dec 11, 2024
2d69b12
Add guard for mobs destroyed in handle_environment
out-of-phaze Dec 11, 2024
38aa9d3
Adjust counts in check-paths.sh
out-of-phaze Dec 12, 2024
06f584a
Merge branch 'staging' of github.com:NebulaSS13/Nebula into devupdate
MistakeNot4892 Dec 12, 2024
6d605ea
Merge pull request #4640 from MistakeNot4892/devupdate
MistakeNot4892 Dec 13, 2024
c252f04
Reloacing/cleaning up some bodytype logic.
MistakeNot4892 Dec 13, 2024
7c188b4
Merge pull request #4302 from MistakeNot4892/feature/astarautomove
out-of-phaze Dec 13, 2024
cd7da77
Merge pull request #4615 from MistakeNot4892/feature/dummy
out-of-phaze Dec 13, 2024
66be40f
Merge pull request #4637 from MistakeNot4892/fix/meat2
out-of-phaze Dec 13, 2024
30d996e
Merge pull request #4631 from MistakeNot4892/fix/slapcrafting
out-of-phaze Dec 13, 2024
f7f02b8
Remove unnecessary uses of usr in onclick code
out-of-phaze Dec 11, 2024
b7b6dab
Remove unnecessary uses of usr in screenobj code
out-of-phaze Dec 11, 2024
985f0c1
Remove unnecessary uses of usr in machinery folder
out-of-phaze Dec 11, 2024
d93303d
Remove unnecessary uses of usr in objects folder
out-of-phaze Dec 11, 2024
68a223d
Remove unnecessary uses of usr in datums folder
out-of-phaze Dec 11, 2024
c122b4e
Remove unnecessary uses of usr in preferences
out-of-phaze Dec 11, 2024
775e345
Remove unnecessary uses of usr in modpacks
out-of-phaze Dec 11, 2024
ac7009d
Remove unnecessary uses of usr in mob code
out-of-phaze Dec 11, 2024
c750c27
Remove unnecessary uses of usr in projectile code
out-of-phaze Dec 11, 2024
525eddf
Remove unnecessary uses of usr in reagent code
out-of-phaze Dec 11, 2024
0f78949
Remove unnecessary uses of usr in modular computers
out-of-phaze Dec 11, 2024
23aa0f2
Remove unnecessary uses of usr in paperwork code
out-of-phaze Dec 11, 2024
a5b3bb4
Remove unnecessary uses of usr in power/machinery code
out-of-phaze Dec 11, 2024
92832d0
Remove unnecessary uses of usr in vehicle code
out-of-phaze Dec 11, 2024
12e20b7
Remove unnecessary uses of usr in shuttle code
out-of-phaze Dec 11, 2024
6362ba6
Remove unnecessary uses of usr in miscellaneous code
out-of-phaze Dec 11, 2024
6189684
Remove unnecessary uses of usr in OnTopic overrides
out-of-phaze Dec 11, 2024
7948dbc
Merge pull request #4636 from out-of-phaze/codequality/no-usr
MistakeNot4892 Dec 14, 2024
fbd8205
Merge pull request #4610 from out-of-phaze/codequality/old-audit-again
MistakeNot4892 Dec 14, 2024
9c068f7
Cleaning up some submap archetype code, allowing maps to override sub…
MistakeNot4892 Dec 6, 2024
912cf24
Tweaking biogenerator/seed extractor attackby().
MistakeNot4892 Dec 15, 2024
d8d0151
Merge pull request #4638 from MistakeNot4892/feature/clock
out-of-phaze Dec 15, 2024
4fdb9f4
Merge pull request #4594 from MistakeNot4892/feature/doeicons
out-of-phaze Dec 15, 2024
6c5009e
Readding eye_offset.
MistakeNot4892 Dec 15, 2024
e33cd11
Fixing issues with adjusting clothing not updating mob icon.
MistakeNot4892 Dec 15, 2024
1611b60
Merge pull request #4611 from MistakeNot4892/tweak/submaps
out-of-phaze Dec 16, 2024
694628f
Moved various fire procs to /atom level as stubs, consistent name/set…
MistakeNot4892 Dec 15, 2024
646054c
Relaxing default click cooldowns after feedback from Scav.
MistakeNot4892 Dec 17, 2024
3f34489
Fixes to fabricator intake.
MistakeNot4892 Dec 17, 2024
cc9569a
Dirt fixes.
MistakeNot4892 Dec 17, 2024
b813112
Updated persistence handler to handle dirt.
MistakeNot4892 Dec 17, 2024
ea3b1a8
Shaded Hills will default to all in hand instead of none for job cash.
MistakeNot4892 Dec 17, 2024
42794e1
Adds lockpicks to crafting.
MistakeNot4892 Dec 17, 2024
382e4b9
Added skill checks and cooldown setting to lockpicking.
MistakeNot4892 Dec 17, 2024
32e1bcb
Applying end table alpha/color fix.
MistakeNot4892 Dec 17, 2024
ca72a10
Merge pull request #4648 from NebulaSS13/staging
MistakeNot4892 Dec 17, 2024
44ac852
Merge pull request #4646 from MistakeNot4892/fix/rolldown
out-of-phaze Dec 17, 2024
39d4960
Moving standard SS13 jobs and departments into a modpack.
MistakeNot4892 Dec 18, 2024
ea354a6
Merge pull request #4645 from MistakeNot4892/tweak/atom_fires
out-of-phaze Dec 18, 2024
81a65fe
Ignore .DS_Store
Lohikar Dec 18, 2024
9422575
Merge pull request #4650 from Lohikar/i_use_osx_btw
out-of-phaze Dec 18, 2024
978c441
Merge pull request #4643 from MistakeNot4892/fix/biogenerator
out-of-phaze Dec 18, 2024
4039035
Struts are now largely replaced by rods.
MistakeNot4892 Dec 18, 2024
40c0703
Merge pull request #4641 from MistakeNot4892/tweak/bodytype
out-of-phaze Dec 19, 2024
8d0a65b
Merge pull request #4647 from MistakeNot4892/tweak/cooldown
out-of-phaze Dec 19, 2024
75f6d6c
Add particle-based rain
out-of-phaze Dec 19, 2024
5c03472
Fix strings that misspell separate as seperate
noelle-lavenza Dec 10, 2024
bf0700f
Update cabinet sprites
noelle-lavenza Dec 10, 2024
ecbae5b
Add wattle, daubed, plastered, and timber-framed walls
noelle-lavenza Dec 10, 2024
053047b
Initial 516 support
HeyBanditoz Dec 20, 2024
04fadbe
Merge pull request #4651 from MistakeNot4892/removal/struts
out-of-phaze Dec 20, 2024
71ad741
Merge pull request #4655 from HeyBanditoz/516_pt0
out-of-phaze Dec 20, 2024
edeec6a
Merge pull request #4654 from out-of-phaze/feature/particle-rain
MistakeNot4892 Dec 20, 2024
95d62d8
Automatic changelog generation for PR #4654 [ci skip]
NebulaSS13Bot Dec 20, 2024
d6cdb60
Automatic changelog generation [ci skip]
NebulaSS13Bot Dec 21, 2024
6370fb7
Merge pull request #4634 from noelle-lavenza/feature/wattle-walls
MistakeNot4892 Dec 21, 2024
93508b1
Merge pull request #4649 from MistakeNot4892/rework/standard_jobs
out-of-phaze Dec 21, 2024
da7527e
Merge branch 'staging' of github.com:NebulaSS13/Nebula into stagingup…
MistakeNot4892 Dec 21, 2024
1c8d5de
Merge pull request #4663 from MistakeNot4892/devupdate
MistakeNot4892 Dec 21, 2024
bce1a3c
Merge branch 'dev' of github.com:NebulaSS13/Nebula into fork/pyrelight
MistakeNot4892 Dec 21, 2024
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
The table of contents is too big for display.
Diff view
Diff view
  •  
  •  
  •  
6 changes: 5 additions & 1 deletion .gitignore
Original file line number Diff line number Diff line change
@@ -1,5 +1,4 @@
# ignore misc BYOND files
Thumbs.db
*.log
*.int
*.rsc
Expand All @@ -21,6 +20,11 @@ atupdate
config/*
sql/test_db

# misc OS garbage
Thumbs.db
Thumbs.db:encryptable
.DS_Store

# vscode
.vscode/*
*.code-workspace
Expand Down
2 changes: 2 additions & 0 deletions code/__defines/ai.dm
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,8 @@
#define STANCE_ATTACKING /decl/mob_controller_stance/attacking
#define STANCE_TIRED /decl/mob_controller_stance/tired
#define STANCE_CONTAINED /decl/mob_controller_stance/contained
#define STANCE_BUSY /decl/mob_controller_stance/busy

//basically 'do nothing'
#define STANCE_COMMANDED_STOP /decl/mob_controller_stance/commanded/stop
//follows a target
Expand Down
23 changes: 4 additions & 19 deletions code/__defines/gamemode.dm
Original file line number Diff line number Diff line change
Expand Up @@ -33,26 +33,11 @@
#define DEFAULT_TELECRYSTAL_AMOUNT 130
#define IMPLANT_TELECRYSTAL_AMOUNT(x) (round(x * 0.49)) // If this cost is ever greater than half of DEFAULT_TELECRYSTAL_AMOUNT then it is possible to buy more TC than you spend

/////////////////
////WIZARD //////
/////////////////
// SPELL FLAGS
#define Z2NOCAST BITFLAG(0) //if this is added, the spell can't be cast at centcomm
#define INCLUDEUSER BITFLAG(1) //does the spell include the caster in its target selection?
#define IGNOREDENSE BITFLAG(2) //are dense turfs ignored in selection?

/* WIZARD SPELL FLAGS */
#define GHOSTCAST BITFLAG(0) //can a ghost cast it?
#define NEEDSCLOTHES BITFLAG(1) //does it need the wizard garb to cast? Nonwizard spells should not have this
#define NEEDSHUMAN BITFLAG(2) //does it require the caster to be human?
#define Z2NOCAST BITFLAG(3) //if this is added, the spell can't be cast at centcomm
#define NO_SOMATIC BITFLAG(4) //spell will go off if the person is incapacitated or stunned
#define IGNOREPREV BITFLAG(5) //if set, each new target does not overlap with the previous one
//The following flags only affect different types of spell, and therefore overlap
//Targeted spells
#define INCLUDEUSER BITFLAG(6) //does the spell include the caster in its target selection?
#define SELECTABLE BITFLAG(7) //can you select each target for the spell?
#define NOFACTION BITFLAG(8) //Don't do the same as our faction
#define NONONFACTION BITFLAG(9) //Don't do people other than our faction
//AOE spells
#define IGNOREDENSE BITFLAG(10) //are dense turfs ignored in selection?
#define IGNORESPACE BITFLAG(11) //are space turfs ignored in selection?
//End split flags
#define CONSTRUCT_CHECK BITFLAG(12) //used by construct spells - checks for nullrods
#define NO_BUTTON BITFLAG(13) //spell won't show up in the HUD with this
Expand Down
5 changes: 4 additions & 1 deletion code/__defines/structures.dm
Original file line number Diff line number Diff line change
@@ -1 +1,4 @@
#define STRUCTURE_FLAG_SURFACE BITFLAG(0)
// Structure counts as a surface for the purposes of placing items on.
#define STRUCTURE_FLAG_SURFACE BITFLAG(0)
// Structure takes damage from thrown objects colliding with it.
#define STRUCTURE_FLAG_THROWN_DAMAGE BITFLAG(1)
1 change: 1 addition & 0 deletions code/__defines/subsystem-priority.dm
Original file line number Diff line number Diff line change
Expand Up @@ -39,6 +39,7 @@
#define SS_PRIORITY_GHOST_IMAGES 10 // Updates ghost client images.
#define SS_PRIORITY_ZCOPY 10 // Builds appearances for Z-Mimic.
#define SS_PRIORITY_PROJECTILES 10 // Projectile processing!
#define SS_PRIORITY_PATHFINDING 10 // Processing pathfinding requests

// SS_BACKGROUND
#define SS_PRIORITY_OBJECTS 100 // processing_objects processing.
Expand Down
4 changes: 3 additions & 1 deletion code/__defines/topic.dm
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,8 @@
#define TOPIC_HANDLED BITFLAG(0)
#define TOPIC_REFRESH BITFLAG(1)
#define TOPIC_UPDATE_PREVIEW BITFLAG(2)
// use to force a browse() call, unblocking some rsc operations
/// Return this to force a browse() call, unblocking some rsc operations
#define TOPIC_HARD_REFRESH BITFLAG(3)
/// Return this to indicate the window associated with this Topic() call should be closed.
#define TOPIC_CLOSE BITFLAG(4)
#define TOPIC_REFRESH_UPDATE_PREVIEW (TOPIC_HARD_REFRESH|TOPIC_UPDATE_PREVIEW)
8 changes: 4 additions & 4 deletions code/__globals.dm
Original file line number Diff line number Diff line change
@@ -1,15 +1,15 @@
// Defined here due to being used immediately below.
#define GET_DECL(D) (ispath(D, /decl) ? (decls_repository.fetched_decls[D] || decls_repository.get_decl(D)) : null)
#define IMPLIED_DECL GET_DECL(__IMPLIED_TYPE__)

// Defined here due to compile order; overrides in macros make the compiler complain.
/decl/global_vars
var/static/list/protected_vars = list("protected_vars") // No editing the protected list!
/decl/global_vars/Initialize()
. = ..()
mark_protected_vars()
/decl/global_vars/proc/mark_protected_vars()
return
/hook/startup/proc/mark_protected_vars()
var/decl/global_vars/global_vars = GET_DECL(/decl/global_vars)
global_vars.mark_protected_vars()
return TRUE

#define GLOBAL_GETTER(NAME, TYPE, VAL) \
var/global##TYPE/##NAME; \
Expand Down
8 changes: 3 additions & 5 deletions code/_global_vars/lists/flavor.dm
Original file line number Diff line number Diff line change
Expand Up @@ -115,15 +115,13 @@ GLOBAL_GETTER(cable_colors, /list, SetupCableColors())
/proc/SetupCableColors()
. = list()

var/list/valid_cable_coils = typesof(/obj/item/stack/cable_coil)
for(var/ctype in list(
var/list/valid_cable_coils = typesof(/obj/item/stack/cable_coil) - typesof(
/obj/item/stack/cable_coil/single,
/obj/item/stack/cable_coil/cut,
/obj/item/stack/cable_coil/cyborg,
/obj/item/stack/cable_coil/fabricator,
/obj/item/stack/cable_coil/random
))
valid_cable_coils -= typesof(ctype)
)

var/special_name_mappings = list(/obj/item/stack/cable_coil = "Red")
for(var/coil_type in valid_cable_coils)
Expand All @@ -132,6 +130,6 @@ GLOBAL_GETTER(cable_colors, /list, SetupCableColors())
var/obj/item/stack/cable_coil/C = coil_type
if(!initial(C.can_have_color))
continue
var/color = initial(C.color)
var/color = initial(C.paint_color) || initial(C.color)
.[name] = color
. = sortTim(., /proc/cmp_text_asc)
23 changes: 23 additions & 0 deletions code/_global_vars/lists/jewellery.dm
Original file line number Diff line number Diff line change
@@ -0,0 +1,23 @@
var/global/list/random_jewellery_material_types = list(
/decl/material/solid/metal/gold,
/decl/material/solid/metal/silver,
/decl/material/solid/metal/copper,
/decl/material/solid/metal/platinum,
/decl/material/solid/metal/steel,
/decl/material/solid/organic/bone,
/decl/material/solid/organic/wood
)
var/global/list/random_jewellery_gem_types = list(
/obj/item/gemstone/baguette/topaz,
/obj/item/gemstone/baguette/sapphire,
/obj/item/gemstone/baguette/ruby,
/obj/item/gemstone/hexagon/topaz,
/obj/item/gemstone/hexagon/sapphire,
/obj/item/gemstone/hexagon/ruby,
/obj/item/gemstone/octagon/topaz,
/obj/item/gemstone/octagon/sapphire,
/obj/item/gemstone/octagon/ruby,
/obj/item/gemstone/round/topaz,
/obj/item/gemstone/round/sapphire,
/obj/item/gemstone/round/ruby
)
2 changes: 1 addition & 1 deletion code/_helpers/global_lists.dm
Original file line number Diff line number Diff line change
Expand Up @@ -62,7 +62,7 @@ var/global/list/string_slot_flags = list(
. = new /mob/living/human/dummy/mannequin()
mannequins_[ckey] = .

/hook/global_init/proc/makeDatumRefLists()
/proc/makeDatumRefLists()
// Keybindings
for(var/KB in subtypesof(/datum/keybinding))
var/datum/keybinding/keybinding = KB
Expand Down
8 changes: 0 additions & 8 deletions code/_helpers/time.dm
Original file line number Diff line number Diff line change
Expand Up @@ -72,10 +72,6 @@ var/global/next_duration_update = 0
var/global/last_round_duration = 0
var/global/round_start_time = 0

/hook/roundstart/proc/start_timer()
round_start_time = world.time
return 1

/proc/ticks2readable(tick_time)
var/hours = round(tick_time / (1 HOUR))
var/minutes = round((tick_time % (1 HOUR)) / (1 MINUTE))
Expand Down Expand Up @@ -109,10 +105,6 @@ var/global/round_start_time = 0
next_duration_update = world.time + 1 MINUTES
return last_round_duration

/hook/startup/proc/set_roundstart_hour()
roundstart_hour = rand(0, 23)
return TRUE

var/global/midnight_rollovers = 0
var/global/rollovercheck_last_timeofday = 0
/proc/update_midnight_rollover()
Expand Down
2 changes: 2 additions & 0 deletions code/_helpers/unsorted.dm
Original file line number Diff line number Diff line change
Expand Up @@ -169,8 +169,10 @@ Turf and target are seperate in case you want to teleport some distance from a t
return 1
return 0

#if DM_VERSION < 516
/proc/sign(x)
return x!=0?x/abs(x):0
#endif

/proc/getline(atom/M,atom/N)//Ultra-Fast Bresenham Line-Drawing Algorithm
var/px=M.x //starting x
Expand Down
6 changes: 3 additions & 3 deletions code/_helpers/washing.dm
Original file line number Diff line number Diff line change
Expand Up @@ -2,8 +2,8 @@
if(!istype(washing))
return
var/mob/living/L = washing
if(L.on_fire)
if(L.is_on_fire())
L.visible_message("<span class='danger'>A cloud of steam rises up as the water hits \the [L]!</span>")
L.ExtinguishMob()
L.fire_stacks = -20 //Douse ourselves with water to avoid fire more easily
L.extinguish_fire()
L.adjust_fire_intensity(-20) //Douse ourselves with water to avoid fire more easily
washing.clean()
46 changes: 23 additions & 23 deletions code/_onclick/ai.dm
Original file line number Diff line number Diff line change
Expand Up @@ -60,7 +60,7 @@

if(silicon_camera.in_camera_mode)
silicon_camera.camera_mode_off()
silicon_camera.captureimage(A, usr)
silicon_camera.captureimage(A, src)
return

A.add_hiddenprint(src)
Expand Down Expand Up @@ -118,10 +118,10 @@
I have no idea why it was in atoms.dm instead of respective files.
*/

/atom/proc/AICtrlAltClick()
/atom/proc/AICtrlAltClick(mob/living/silicon/user)

/obj/machinery/door/airlock/AICtrlAltClick() // Electrifies doors.
if(usr.incapacitated())
/obj/machinery/door/airlock/AICtrlAltClick(mob/living/silicon/user) // Electrifies doors.
if(user.incapacitated())
return
if(!electrified_until)
// permanent shock
Expand All @@ -131,62 +131,62 @@
Topic(src, list("command"="electrify_permanently", "activate" = "0"))
return 1

/atom/proc/AICtrlShiftClick()
/atom/proc/AICtrlShiftClick(mob/living/silicon/user)
return

/atom/proc/AIShiftClick()
/atom/proc/AIShiftClick(mob/living/silicon/user)
return

/obj/machinery/door/airlock/AIShiftClick() // Opens and closes doors!
if(usr.incapacitated())
/obj/machinery/door/airlock/AIShiftClick(mob/living/silicon/user) // Opens and closes doors!
if(user.incapacitated())
return
if(density)
Topic(src, list("command"="open", "activate" = "1"))
else
Topic(src, list("command"="open", "activate" = "0"))
return 1

/atom/proc/AICtrlClick()
/atom/proc/AICtrlClick(mob/living/silicon/user)
return FALSE

/obj/machinery/door/airlock/AICtrlClick() // Bolts doors
if(usr.incapacitated())
/obj/machinery/door/airlock/AICtrlClick(mob/living/silicon/user) // Bolts doors
if(user.incapacitated())
return FALSE
if(locked)
Topic(src, list("command"="bolts", "activate" = "0"))
else
Topic(src, list("command"="bolts", "activate" = "1"))
return TRUE

/obj/machinery/power/apc/AICtrlClick() // turns off/on APCs.
if(usr.incapacitated())
/obj/machinery/power/apc/AICtrlClick(mob/living/silicon/user) // turns off/on APCs.
if(user.incapacitated())
return FALSE
Topic(src, list("breaker"="1"))
return TRUE

/obj/machinery/turretid/AICtrlClick() //turns off/on Turrets
if(usr.incapacitated())
/obj/machinery/turretid/AICtrlClick(mob/living/silicon/user) //turns off/on Turrets
if(user.incapacitated())
return FALSE
Topic(src, list("command"="enable", "value"="[!enabled]"))
return TRUE

/atom/proc/AIAltClick(var/atom/A)
return AltClick(A)
/atom/proc/AIAltClick(mob/living/silicon/user)
return AltClick(user)

/obj/machinery/turretid/AIAltClick() //toggles lethal on turrets
if(usr.incapacitated())
/obj/machinery/turretid/AIAltClick(mob/living/silicon/user) //toggles lethal on turrets
if(user.incapacitated())
return
Topic(src, list("command"="lethal", "value"="[!lethal]"))
return 1

/obj/machinery/atmospherics/binary/pump/AIAltClick()
return AltClick()
/obj/machinery/atmospherics/binary/pump/AIAltClick(mob/living/silicon/user)
return AltClick(user)

/atom/proc/AIMiddleClick(var/mob/living/silicon/user)
return 0

/obj/machinery/door/airlock/AIMiddleClick() // Toggles door bolt lights.
if(usr.incapacitated())
/obj/machinery/door/airlock/AIMiddleClick(mob/living/silicon/user) // Toggles door bolt lights.
if(user.incapacitated())
return
if(..())
return
Expand Down
10 changes: 5 additions & 5 deletions code/_onclick/click.dm
Original file line number Diff line number Diff line change
Expand Up @@ -108,7 +108,7 @@
if(holding == A) // Handle attack_self
holding.attack_self(src)
trigger_aiming(TARGET_CAN_CLICK)
usr.update_inhand_overlays(FALSE)
update_inhand_overlays(FALSE)
return 1

//Atoms on your person
Expand All @@ -124,10 +124,10 @@
var/resolved = holding.resolve_attackby(A, src, params)
if(!resolved && A && holding)
holding.afterattack(A, src, 1, params) // 1 indicates adjacency
setClickCooldown(DEFAULT_ATTACK_COOLDOWN)
setClickCooldown(DEFAULT_QUICK_COOLDOWN)
else
if(ismob(A)) // No instant mob attacking
setClickCooldown(DEFAULT_ATTACK_COOLDOWN)
setClickCooldown(DEFAULT_QUICK_COOLDOWN)
UnarmedAttack(A, TRUE)

trigger_aiming(TARGET_CAN_CLICK)
Expand All @@ -151,10 +151,10 @@
var/resolved = holding.resolve_attackby(A, src, params)
if(!resolved && A && holding)
holding.afterattack(A, src, 1, params) // 1: clicking something Adjacent
setClickCooldown(DEFAULT_ATTACK_COOLDOWN)
setClickCooldown(DEFAULT_QUICK_COOLDOWN)
else
if(ismob(A)) // No instant mob attacking
setClickCooldown(DEFAULT_ATTACK_COOLDOWN)
setClickCooldown(DEFAULT_QUICK_COOLDOWN)
UnarmedAttack(A, TRUE)

trigger_aiming(TARGET_CAN_CLICK)
Expand Down
Loading
Loading