42 Commits

Author SHA1 Message Date
VMSolidus 1fbead50af Mob Ref Cleanup Part 3 (#22599)
Part 3 of the Mob Destroy Refactor, this time going through the entire
list of every ref stored up to a mob/human, and (attempting) to verify
and cleanup every possible circular ref. This PR also fixes some
mistakes made with cleaning up UI elements, namely that tgui's really
don't like it when you qdel them, and screen objects also weren't always
clearing their own references if Qdel'ed directly. There were several
niche situations too where circle refs might be retained by a mob. I
also found an issue where static lights were only cleaned up on
/atom/movable/ but actually existed farther up the chain on /atom. I
don't know if any /atoms that aren't /atom/movable ever get static
lights, but the fact that they can be needs to be correctly accounted
for.

I can't possibly have gotten all of them, but this is every single one I
could find after 3 hours of work.
2026-06-11 10:47:56 +00:00
SleepyGemmy 8464424c7e Death and Unconscious Messages (#22321)
adds a death message, changes the brain damage message to output in the
chat, and tweaks the unconscious message to display in a chat examine
box.

death
<img width="820" height="38" alt="image"
src="https://github.com/user-attachments/assets/caff6bf0-1f8f-49fa-a763-98b7c8b0afc6"
/>

brain damage
<img width="820" height="58" alt="image"
src="https://github.com/user-attachments/assets/94eb57a5-244f-4f89-81ba-24923214ee0d"
/>

unconscious
<img width="820" height="58" alt="image"
src="https://github.com/user-attachments/assets/2e384f8a-86a9-4624-ae57-138d85747846"
/>
2026-04-27 00:12:56 +00:00
VMSolidus 27256917c6 Actual Fixes For Organs (#21269)
So after a long time spent digging really deep into the code, and going
over numbers passing into this with a fine comb, I discovered that this
entire time, Mobs were being affected by a bug that was largely
unnoticed for over a year due to mobs not doing anything that would
directly interact with said bug. Right up until I started refactoring
organs.

Seconds_per_tick that was being passed to mobs was actually
ticks_per_second, it was inverted for mobs and only for mobs, everything
else worked just fine with time deltas. But when I started making organs
use time deltas, I got blindsided by organs doing nonsensical things
that seemingly did not match up with what my models were predicting.
Case in point, livers.

So you can now get drunk again with this PR. I've actually gone around
and tested this PR too.
<img width="527" height="114" alt="image"
src="https://github.com/user-attachments/assets/a9f92233-fe2a-406d-9ddd-104c069bbc3d"
/>

<img width="601" height="165" alt="image"
src="https://github.com/user-attachments/assets/6f6877f3-edd2-441b-9ea2-a29d816558ee"
/>

And verifying in a dev environment that brain math is now sensible
again:
<img width="1474" height="814" alt="image"
src="https://github.com/user-attachments/assets/07634d23-bfaa-477e-a64f-322bb0a3f3ec"
/>
2025-08-30 10:46:33 +00:00
VMSolidus ae65bd22a0 Refactor Brain Math (#20711)
This PR fixes an issue where characters were experiencing brain damage
at rates that were sometimes inconsistent depending on player population
and server performance. To accomplish this, it makes it so that brain
damage taken is no longer a random amount per second that fluctuates
based on server performance, and is instead an amount of damage per
second that scales with the previous conditions, but is "tick
invariant", meaning it no longer changes if for instance you have 75
players online causing server lag.

The benefit of this is particularly noticeable in the extreme ends of
lowpop as well as high pop. It'll no longer cause brain-damage at
hyperspeed if theres' only 10 people online.
2025-07-26 12:02:09 +00:00
ASmallCuteCat 8dfd9850c5 Removes a duplicate word (#20425)
Removes a duplicate word from the big red text you see in your chatlog
when you're close to dying.
2025-02-03 07:40:28 +00:00
Fluffy a3a4d46fa7 Hitby refactor (#19624)
Refactored hitby to be in line with TG's version.
Refactored item weight defines to a more clear naming scheme, also in
line with TG's version.
Refactored how the movement bumps are handled, ported signals to handle
them, in preparation for the movement update.
Fixed disposal hit bouncing the hitting atom on the wall.
Items do not push other items anymore if they are tiny.
2024-07-28 20:52:08 +00:00
Fluffy 3dc4cce9c2 Minor span refactoring (#19177)
Minor span refactoring
2024-05-19 16:37:29 +00:00
Geeves 86d3b89a52 Simple Mob Notifications (#19102)
* Tweaked some messages to be based on time since last message, instead
of being based on probability. This includes low blood messages,
infected liver messages, fever messages, and some drug messages.
2024-05-15 17:09:49 +00:00
Cody Brittain c01768e45c Assisted organ sprites, and assisted brains (#19087)
This PR adds several sprites for assisted organs, which previously
lacked any sprites at all. In addition, this adds an assisted brain,
which is now available to pick in character creation. Long-term, I'd
like to look into adding assisted implants into the medical gameplay
loop, but for now these are character-creation only. "Mechanical"
prosthetic brains are not possible, and have been excised entirely.

### Asset Licenses
The following assets that **have not** been created by myself are
included in this PR:

| Path | Original Author | License |
| --- | --- | --- |
| icons/obj/organs/organs.dmi | Mechoid (Polaris) | CC-BY-SA |

---------

Co-authored-by: Cody Brittain <cbrittain10@live.com>
2024-05-09 15:08:00 +00:00
Matt Atlas fec6dbe24f Adjusts the force of all items to be multiplied. (#18708)
* force balancing?

* force

* cl & maglight nerf

---------

Co-authored-by: DreamySkrell <>
Co-authored-by: Matt Atlas <liermattia@gmail.com>
2024-03-24 17:10:31 +00:00
Fluffy 2455785fd9 Bots revamp (#18649)
* revamp logic

* ui, navbeacons

* JPS, buildable navbeacons, heap, more pain

* sdf

* sdaf

* Update html/changelogs/fluffyghost-botsnavbeaconspath.yml

Co-authored-by: Ben <91219575+Ben10083@users.noreply.github.com>
Signed-off-by: Fluffy <65877598+FluffyGhoster@users.noreply.github.com>

* sdf

* sd

* SSmove_manager, navbeacon and cleanbot fixes

* sdaf

* swap most mobs to use movement loops

* dfgs

---------

Signed-off-by: Fluffy <65877598+FluffyGhoster@users.noreply.github.com>
Co-authored-by: Ben <91219575+Ben10083@users.noreply.github.com>
2024-03-21 20:11:56 +00:00
Fluffy 9afe761db3 Some refactors, DMDoc and UT (#18365)
* dsfa

* accessories fix

* fixed "has been hit by" message with intent check

* sdfa
2024-02-12 15:32:23 +00:00
Matt Atlas 4423d03f2f Adds examine boxes. (#18370)
* Adds examine boxes.

* lint

* what kind of dreams did you dream?

* unlimited

* midgardsormr

* sdsd

* fixes

---------

Co-authored-by: Matt Atlas <liermattia@gmail.com>
2024-02-11 21:58:20 +00:00
Matt Atlas 12487c94bb Updates SDQL2 to the latest TG version and adds variable protection. (#17997)
* SDQL2 update

* fix that verb

* cl

* fix that

* toworld

* this is pointless

* update info

* siiiiick..

* vv edit update

* fix that

* fix editing vars

* fix VV

* discord protection

---------

Co-authored-by: Matt Atlas <liermattia@gmail.com>
2023-12-25 17:10:35 +00:00
Cody Brittain ce5ac79e3c Split examine verb and function, and improve it (#17251)
* Split examine verb and function, and include adjacency and distance checking in examine function

* Fix various issues

* Update code/modules/mob/examinations.dm

Co-authored-by: SleepyGemmy <99297919+SleepyGemmy@users.noreply.github.com>

* Add required define vars

* Update code/game/objects/items/stacks/wrap.dm

Co-authored-by: SleepyGemmy <99297919+SleepyGemmy@users.noreply.github.com>

---------

Co-authored-by: SleepyGemmy <99297919+SleepyGemmy@users.noreply.github.com>
2023-09-09 08:07:36 +00:00
Matt Atlas dd482c63af Update the codebase to 515. (#15553)
* Update the codebase to 515.

* edit that

* WHOOPS

* maor

* maybe works

* libcall and shit

* do that too

* remove that

* auxtools isnt updated so get rid of it

* actually remove auxtools lol

Co-authored-by: Matt Atlas <liermattia@gmail.com>
2023-01-23 21:21:37 +01:00
SleepyGemmy 06227e9256 Fixes Faulty Indentation in Brain Code (#14586) 2022-08-10 18:45:13 -03:00
Matt Atlas 7c2a3e193a Zombie tweaks/buffs/nerfs. (#14324) 2022-06-20 17:40:53 +02:00
Matt Atlas 93f2d894e7 Removes stunning from headshots. (#14155) 2022-06-10 13:01:00 +02:00
sadkermit 79372075e8 Recreational Drug & Toxins Tweaks & Additions (#13129)
This took way too long.
2022-04-08 16:38:18 +02:00
VisVirific 1b1a0d420d Blood Loss Messages Tweak (#13123) 2022-02-11 17:42:09 -03:00
Matt Atlas 4559ff2494 Raises pain thresholds, hopefully reduces lethality a bit, nerfs painkillers. (#11969) 2021-07-30 11:54:57 +02:00
Geeves 80fe5ab11b MMI: Braincase (#12005) 2021-06-08 19:39:46 -03:00
Doxxmedearly e231381688 Removes Brain Traumas (#11558) 2021-03-31 12:56:49 -03:00
Matt Atlas 80be3d88e1 Another set of brainmed adjustment & miscellaneous things. (#11354) 2021-03-05 23:35:58 +01:00
Matt Atlas 13af6304be Makes the groin into a non-vital organ, changes to stance handling, bloody feet bugfix. (#11195) 2021-02-18 14:22:35 +01:00
Wowzewow (Wezzy) 307c214541 makes w_class use defines (#9848) 2020-09-06 17:37:56 -03:00
sadkermit 36dc8a5220 Chemical Improvements & Tweaks: Side-effects, overdoses, and more. (#9708) 2020-09-01 14:29:40 +02:00
Matt Atlas 574ba1eb9b Reducing overall lethality and nerfing lasers a bit. (#9691) 2020-08-19 10:22:44 +02:00
Matt Atlas 0811c51203 Yet more brainmed tweaks (#9254) 2020-07-04 22:27:25 +02:00
Matt Atlas b132f4509b Overhauls pain message/status displaying, fixes oxyloss. (#9173)
Pain message/status displaying has been unified into custom_pain. This might cause some weirdness with when people go unconscious or get paralysis from excessive pain.

Oxyloss has been fixed and so has the oxygen damage overlay, which is now back. I'm not sure of the actual impact this has on damage.

Also added a fullscreen BIG RED overlay when you have BIG PAIN.
2020-06-27 17:47:15 +03:00
Matt Atlas d403ee314d More combat/gun/medical tweaks. (#8615) 2020-04-19 14:28:33 +02:00
Wowzewow (Wezzy) b9b42f4f8f Janitor, hydroponics and medical inhands (#8456) 2020-03-21 13:36:49 +01:00
mikomyazaki 7aa0e6475b Drain blood works properly even if a target Skrell goes to Srom during. (#8027)
Skrell in Srom will still get messages about memory loss due to brain damage done to their real body.
2020-01-17 07:56:51 +01:00
Matt Atlas 1567673e9a Many brainmed changes. (#7967) 2020-01-12 16:44:26 +01:00
Matt Atlas e25dbf0f27 Fixes borers and antag spawning. (#7917)
Fixed bughunt for real.
    Bughunt now tries to spawn four mercenaries and two borers.
    Added some more intro text to Renegade.
2020-01-05 11:39:42 +02:00
Matt Atlas a02e6e7e81 Adds Bughunt, Incursion, Spy vs Spy, Tower Defense (#7698)
rscadd: "Added three new gamemodes: Tower Defense, Bughunt, Spy vs. Spy."
    rscadd: "Bughunt, mercenary and borer, needs twenty required players and five required enemies."
    tweak: "Borers have received some miscellaneous fixes and tweaks across the board. They should overall work better now."
    rscadd: "Borers can now awaken psionics in their hosts. Maybe it's not a bad idea to get a brain slug after all..."
    rscadd: "Spy vs. Spy, traitor and renegade, needs four required players."
    tweak: "Changed how renegades work a bit. You're not traitors! You're paranoid people who smuggled a gun to work and are working to keep themselves safe."
    rscadd: "Tower Defense, mercenary, heist and ninjas, needs thirty required players and ten required enemies. Good luck!"
2020-01-04 17:47:02 +02:00
Matt Atlas fb078a207b More harddel fixes. (#7861)
Silicons, brainmobs and mannequins should now delete properly.
2020-01-04 02:56:10 +01:00
Matt Atlas 37abd8f771 Brainmed Code Quality + Organ Scarring (#7645)
Organ scarring has been made into a better system.

New healthdoll.

Other misc code cleanup attempts.

Fixes #7647
2019-12-14 00:10:53 +02:00
Matt Atlas df0cd6189a Brainmed Update (#7502)
gamer time.
2019-12-10 20:41:15 +02:00
Matt Atlas 88a319a574 Splitting human life into organs + removes the advanced operating table (#7473) 2019-11-25 07:23:16 +01:00
Matt Atlas 5da2a9c24b Splits organs into organ/internal (#7441) 2019-11-20 23:07:10 +01:00