Commit Graph

85 Commits

Author SHA1 Message Date
Spookerton 978f4511a5 examine signature changed to include distance
- distance is INFINITE, 0, or a positive integer based on get_dist() between
the examiner and examinee's turfs when they are on the same Z. When the
examiner is dead or a ghost, distance is always 0.
- also updates /examine( implementations to use it!
- adds w_class_to_name proc for reusing "It is a X item." examine behavior.
2024-01-31 13:49:52 +00:00
MistakeNot4892 a1092243ac Porting some Neb/Bay gluttony changes. 2023-07-31 22:16:42 +10:00
enbyfriend 7532593f15 Language transfer on brain removal bugfix (#9070)
* Language transfer on brain removal bugfix

Normally, when your brain is removed from your skull, you lose all your languages
This (hopefully) fixes that

* Update code/modules/organs/internal/brain.dm

---------

Co-authored-by: Spookerton <spkrtn@pm.me>
2023-05-28 10:56:20 -08:00
klorpa f445ffde0a Spelling Fixes (#8973)
* SpellingFixes

* OtherTypos

* OtherTypos
2023-04-08 21:39:28 -08:00
MistakeNot4892 db1a97868d Implementing movement system flags, fixing simplemob movement delays. 2023-03-12 01:22:03 +11:00
Frenjo 20cdc4b676 Converts move intents to /decl/move_intent (#8993)
* Converts move intents to /decl/move_intent

Adds /decl/move_intent/walk and /decl/move_intent/run.

Switches all move intent checks to use the new IS_RUNNING and IS_WALKING macros.

Renames and refactors /mob/living/proc/set_m_intent() to /mob/living/proc/set_move_intent(decl/move_intent/intent).

Removes the unnecessary /mob/var/m_int and associated code.

Updates all move intent setters to use set_move_intent().

* Swaps incorrect config values

Swaps incorrect move delays since I got them backwards somehow, oopsies.

* Adds suggested ?. operator

Compactifies two if statements using the ?. operator instead.
2023-03-04 14:28:10 -08:00
Atermonera d6d16811cc Revert "fixes a memory leak with mannequins and the issue that then comes with fixing it (#8942)"
This reverts commit 4bb5562d97.
2023-02-26 16:31:11 -08:00
Seris02 4bb5562d97 fixes a memory leak with mannequins and the issue that then comes with fixing it (#8942)
* fixes a memory leak with mannequins and the issue of non-derobotizing limbs on preference mannequins that comes with fixing it

* almost didn't see that
2023-02-18 21:35:54 -08:00
Seris02 80f18e557e fixes augments so you can't spam the fuck out of them 2022-12-26 18:17:02 +08:00
spookerton ffba11e5ab rename a bunch of atom flags 2022-10-18 09:36:41 +01:00
spookerton 3abdbbaa1c replaces atom.initialized with ATOM_INITIALIZED
refactors atom/var/flags to atom_flags and area_flags
moves NOBLOODY, NOBLUDGEON, and PHORONGUARD to item_flags instead of atom_flags
corrects various misapplied flags
2022-10-18 09:36:36 +01:00
atermonera c034848b53 Checks the no_clone modifier stored in DNA records as a path 2022-08-31 21:52:48 -08:00
atermonera 9d71839ac6 Removes devices 2022-04-17 19:14:43 -08:00
atermonera 7a9806d9b4 Removes weapons 2022-04-17 19:14:32 -08:00
spookerton 7eedbedba5 removes some legacy procs, adds some other procs
NUFC

removed add_lspace — unused
removed add_tspace — unused
removed invertHTML — unused
removed hsl2rgb — unimplemented

removed hex2num — replaced with define
removed num2hex — replaced with define
removed add_zero — replaced with pad_left
removed add_zero2 — replaced with pad_left
removes hex2rgb — replaced with behavior of rgb2num()
removes hex2rgb_r — replaced with behavior of rgb2num()
removes hex2rgb_g — replaced with behavior of rgb2num()
removes hex2rgb_b — replaced with behavior of rgb2num()
removes assorted inline list(rgb) > hex — replaced with behavior of rgb()
removes assorted inline rand > hex — replace with random_hex_text

added hex2num define
added num2hex define
added random_hex_text
added generate_padding
added pad_left
added pad_right
2022-04-03 14:19:45 +01:00
atermonera c7f1880394 Revert "What was supposed to be another straightforward major system overhaul that once again spiraled out of control (#8220)"
This reverts commit 4d8c43f106.
2022-03-29 16:01:32 -08:00
Cerebulon 122b75d789 Adds more alien organ sprites (#8442)
* Adds more alien organ sprites

* include skrell file

* Update code/modules/organs/subtypes/tajaran.dm

Co-authored-by: Spookerton <spkrtn@pm.me>

Co-authored-by: Spookerton <spkrtn@pm.me>
2022-03-20 11:22:26 -08:00
Atermonera 4d8c43f106 What was supposed to be another straightforward major system overhaul that once again spiraled out of control (#8220)
* get_tool_quality has numerical meaning

* Basic tools set tool quality

* Toolspeed is replaced by tool quality checks

* Addresses assorted results from live test

* Extra cleanup
2022-01-16 15:52:55 -08:00
MistakeNot4892 2f0a618d45 /atom New() => Initialize() [MDB IGNORE] (#8298)
* Find and replace argless atom New() to Initialize().

* Manual replacement of no-arg New() to Initialize().

* Manually replacing remaining New() overrides.

* Fixing linter issues with now-removed New() args.

* Tidying area init overrides.

* Porting Neb's atom subsystem.

* Trying to isolate init problems.

* Adjusting Init code post-test.

* Merging duplicate Initialize() procs.

* Merge resolution.
2021-11-14 00:09:14 -08:00
MarinaGryphon 593246b595 Linter diagnostics + bans non-var relative pathing (#8150)
* Linter diagnostics + bans non-var relative pathing

* Enable DreamChecker Annotations

* make it executable

* update hashFiles

* oops

* tries to fix it... again

* trying again

* path

* repath

* fix perms

* fixes weird capitalisation issue
2021-06-20 13:14:29 -09:00
Neerti fdabe51ee8 Linter Introduction + Cleanup (#8085)
* Adds linter defines to repo.

* Uncomments linter defines already in the code.

* Resolves unreachable code linter errors.

* Nukes decade+ old syndie specops code except for computer since that's mapped in?????

* Resolves procs has no parent linter error.

* Proc signature fixes

* Bad comments

* "In" danger

* Type safety

* Implied nested list abuse

* Top level ..() usage

* Sleepy coder typos

* Invalid kwargs calls

* Pointless returns

* Linter hacks (see full message)

Byond doesn't care and it has no effect but linter doesn't like var/proc
for holding references to procs, despite that it's valid byond code.

Also, the linter seems to have serious issues figuring out relative
proc names. This commit is a sort of take-it-or-leave-it thing. It's not
required, it just cuts down on warnings, but this code is valid DM code.

* WHATEVER THIS IS

* Trick dreamchecker linter into ignoring this file's sins in it's weird use of vars

* Fix list decoration syntax - Its a list, not list of lists

- To declare that a var is a list you can `var/list/blah = list()` syntax or the `var/blah[0]` syntax.  Both do exactly the same thing. But if you do `var/list/blah[0]` that is just like doing `var/list/list/blah = list()`

* Hopefully stops the ai holder subtype folder from going quantum and sometimes changes capitalization over time, and incidentally causing 20+ linter errors.

* Fixes unwrapped negated object in list linter error.

* Resolves colon-like list accessing linter error.

* Turns linter on in linter config.

* Fixes closet indentation properly and cleans up suit storage unit switch.

Co-authored-by: Aronai Sieyes <arokha@arokha.com>
Co-authored-by: Leshana <Leshana@users.noreply.github.com>
2021-05-25 18:17:26 -09:00
MistakeNot4892 b4632da349 Swaps emote(me) out for custom_emote(). 2021-04-30 16:21:27 +10:00
Atermonera 0c0dcb1738 Oops, I refactored Chemistry! (#8013)
Reorganizes Reagents dir structure
Refactors reactions to /decl
SSChemistry is no longer processing

Optimization isn't so optimized
Updates to distillery
New decl repository methods
Further tweaks
2021-04-20 18:31:49 -09:00
MistakeNot4892 826dfa3a6a Small cleanup from init PR. 2021-03-02 18:17:22 +11:00
Mechoid 8dc04048ed Adds the Restraining Bolt. (#7820)
* Adds the Restraining Bolt.

* Malfunction.
2021-02-28 14:02:12 -09:00
MistakeNot4892 b22a0568a3 Sideports a couple of init unit tests from Neb. (#7893)
* Sideports a couple of init unit tests from Neb.

* Trying to unfuck initialize logic.

* Removing del()s.

* Adjusting return values to Initialize().

* Moving some dangerous object logic from obj onto the two types that use it.

* Rolling back some init changes and commenting out initialized atom unit test.

* this comment formatting is a minor war crime

* Removed sleep() from signaler circuit Initialize().

* Additional Init fixes post-rebase.

* Uncomments subsystem test since that's passing.
2021-02-21 12:03:34 -09:00
Verkister ff847a08aa Makes simplemob braingibs not create brainmobs
Every single simplemob that was gibbed or butchered would spawn a new carbonmob inside their braingib.
2021-02-15 11:30:48 +02:00
Heroman ab855ca531 Fixes defib timers being 10 times as long as intended. 2021-01-24 09:47:56 +10:00
Mechoid 68b370be8a Fresh Meat, Leatherworking (#7629)
* Make Butchering more modular. Don't tell the demon lords.

* No guts no glory. That was far more work than expected to get organs to just process and work for butchering holy shit.

* Chitin and hides oh my.

* squeak. ..Why did this not fire on local?

* Squelch.

* Seven cubed livers, for the doctors in their sterile halls.

* Changeling

* Prep for Datums

* Fix Broken Broken Guns

* Redundancy

* F l a g s
2020-11-07 12:06:35 -08:00
Atermonera 74318869e3 Merge pull request #7668 from Mechoid/ReagentCyclingCycler
Actually commit the reagent cycler's entire gimmick.
2020-09-21 09:47:42 -07:00
SubberTheFabulous 3b1fe3fabc Adds two new augments to Traitor uplink (#7642)
* Adds two new antag augments

* Adds two new antag augments

* Adds two new antag augments

* Adds two new antag augments

* Adds two new antag augments

* Adds two new antag augments

* Adds two new antag augments

* Adds two new antag augments

* Changelog

* Adds two new antag augments; Satisfies Travis

* Pleases Travis, except competently

* Adds two new antag augments; with less incompetence

* Adds two new antag augments; with less incompetence
2020-09-20 03:47:56 -07:00
Mechoid 0e494b404a Actually commit the reagent cycler's entire gimmick. 2020-09-16 15:57:58 -07:00
Mechoid 85d13382df FBP Internal Components (#7445)
* Starts work on FBP components

* Complete

* Map

* Tweakening.

* P r e c i s i o n

* P r e c i s i o n Engineering
2020-08-20 18:39:46 -07:00
Cyantime 2d4a71d1da Fix promethean core revival flavor text (#7422)
* Fix promethean revival flavor text

* fix whoopsie
2020-08-06 21:14:57 -07:00
Aronai Sieyes 6c6644f86c Rewrite examine() to pass a list around (#7038) 2020-04-29 13:42:16 -07:00
Neerti 8a03168d95 Stasis QoL (#6923) 2020-04-06 21:38:22 -07:00
Atermonera 6f2aec58c5 Merge pull request #6906 from Meghan-Rossi/lungfix
Fix runtimes in lungs.dm
2020-03-27 00:17:32 -07:00
Meghan-Rossi 01b6114c01 Fix runtimes in lungs.dm
Prevents lungs with null owner from causing runtimes.  Lungs can have null owner if they are removed and also sometimes seem to end up with null owner during unit testing, at least downstream.  This sometimes at random causes travis to fail the tests.
2020-03-26 02:17:15 +00:00
Mechoid c7ba2a8e4b Antag Uplink Expansion (#6788)
* Adds Energy Daggerpens, Thieves gloves and Buzzer Ring.

* Updoot

* fixfix weakfire

* Extra Touches

* chlgongog

* Fix antag injector cases.
2020-03-16 21:21:41 -07:00
Arokha Sieyes 5b15917d32 to_chat replacing stream operator 2020-02-17 13:14:08 -05:00
Mechoid a1f785d282 Update augment.dm 2020-01-23 15:43:25 -08:00
Mechoid 6cd803be7e Augments that deploy items can no longer be used when strapped to a bed or other lying-restraint. 2020-01-19 14:24:46 -08:00
Mechoid 58e2ce2fb4 Change various global species lists to GLOB versions. 2019-12-05 23:55:22 -08:00
Mechoid 32984cf27f Update brain.dm 2019-10-22 17:00:00 -07:00
Mechoid e9a3ce34d3 Why 2019-10-22 16:53:03 -07:00
Mechoid e2e870f2b4 Medical Expansion (#6465)
* Starts work on the Medical Expansion.

* Further Work

* Save Everything!

* Large volume of things.

* Log of Change

* I'm an idiot.

* Kidney assisted sprites. They didn't exist, for some reason.

* Fixfix

* Fixfix

* Update encased.dm

* Update glass.dm

* Update Chemistry-Reagents.dm

I am once more an idiot.

* Split augs.

* Fixfix
2019-10-19 19:27:39 -08:00
Anewbe babda8e54d Merge pull request #6079 from Mechoid/AugmentPreWork
Augment Work
2019-06-16 19:58:15 -05:00
Mechoid 8fa53f6611 Starts work on Pulse-based Reagent Processing. 2019-04-13 23:52:33 -07:00
Mechoid ae6bd7faf0 My vision is augmented. Yours can be too. 2019-04-13 13:28:19 -07:00
Heroman ed69123d74 Stops decay on promethean core 2019-04-08 05:02:21 +10:00