Commit Graph
655 Commits
Author SHA1 Message Date
09e7f54a43 Convert most of /obj/machinery to use Initialize rather than New (#17845)
* Switch a bunch of /obj/machinery from /New to /Initialize

This is an easy and uncontroversial batch.
No globs, no late init, and stuff.

* Move more machinery to Initialize

This time the ones dealing with GLOB vars,
as well as some simpler ones i missed previously.

* More tricky New -> Initialize migrations

* The last of machinery Initialize conversion

* fixups

* Newscaster armor fix

* styling

* Comment on armor handling

* Move newscaster armor definition back to datum

* farie82 review

* kill extra .=

Co-authored-by: Farie82 <farie82@users.noreply.github.com>

* farie's review part 2

Co-authored-by: Farie82 <farie82@users.noreply.github.com>

Co-authored-by: Farie82 <farie82@users.noreply.github.com>
2022-06-29 08:33:52 +02:00
0f7a8707ef [Ready] Refactors stuns and status effects. (#17579)
* Fixes reviver runtime

* Confusion status effect

* Dizzy status effect

* Drowsiness status effect

* decaying -> transient

* Drunkenness status effect

* why use timer when SSfastprocessing work good

* stuns (mostly)

* weaken and immobalise

* stun/weaken times

* update_flags redundancies.

* Slowed()

* Silence + fixes transient decay

* Jittery

* sleeping

* Paralyze -> weaken

* Cult sluring

* paralyse

* Stammer

* slurring + projectile cleanups

* losebreath

* Hallucination

* forgor this

* eyeblurry

* eye blind

* Druggy

* affected didn't like my spacing

* review pass

* second review pass

* some cleanups

* documentation and signal framework

* confusion fix

* Fixes spec_stun

* rejuv fix

* removes a TODO

* conflicted myself

* fixes

* self review

* review

* removes TODOs

* adminfreeze

* TM fixes

* hallucination fix + others

* tones down alchol and runtime fixes

* confusion overlay suggestion

* more fixes

* runtime fix

* losebreath fix

* clamp => directional bounded sum

* steel review

* oops

Co-authored-by: SteelSlayer <42044220+SteelSlayer@users.noreply.github.com>

* reduces the dizziness cycle rate

* borg hotfix

* sanctified decursening

Co-authored-by: mochi <1496804+dearmochi@users.noreply.github.com>
Co-authored-by: SteelSlayer <42044220+SteelSlayer@users.noreply.github.com>
2022-05-24 16:35:26 +01:00
a5bc67cd43 Invasion of the moffs (#17000)
Co-authored-by: AffectedArc07 <25063394+AffectedArc07@users.noreply.github.com>
Co-authored-by: mochi <1496804+dearmochi@users.noreply.github.com>
2022-02-23 20:37:37 +01:00
Farie82andGitHub 3bf4df5484 Fix matter eater spamming chat when it can't cast (#17397) 2022-02-14 06:57:40 +01:00
QwertytofortyandGitHub dec12a6d94 fixes huds magically appearing when people go invisible from genes / reactive armor (#17327) 2022-02-12 10:54:25 +01:00
bc4651a716 Converts items / abilities that set alpha to zero, to use invisibility (#17280)
Co-authored-by: dearmochi <1496804+dearmochi@users.noreply.github.com>
2022-01-09 20:30:30 +01:00
576482907b Refactors spell targeting to delegate it to a targeting datum (#16552)
Co-authored-by: AffectedArc07 <25063394+AffectedArc07@users.noreply.github.com>
2021-12-13 17:40:36 +01:00
S34NandGitHub 41e22cf7e9 Fixes cloning and genetics consoles pointing to the machines (#17193) 2021-12-11 11:59:14 +01:00
variableundefinedandGitHub fa3fa1dc6a Merge pull request #16579 from FlattestGuitar/armor-defines
Adds defines for damage flags
2021-09-17 22:10:20 -05:00
variableundefinedandGitHub dd3cff98ae Change "abiotic items" message to be more clear (#16545)
* Change "abiotic items" message to be more clear

* Add missing period.
2021-09-09 23:20:13 +01:00
variableundefinedandGitHub c2664eec0d Merge pull request #16311 from S34NW/does-anyone-else-hate-genetics
Replaces genetics xray vision with other vision genes
2021-09-06 23:16:04 -05:00
Mieszko Jedrzejczak 559fa37756 add defines for damage flags 2021-08-20 21:09:21 +02:00
QwertytofortyandGitHub 5a4dd899a9 Fixes morph for slimes (#16472) 2021-08-02 12:20:09 -04:00
S34NW 1942cee972 eyeshine properly applied 2021-07-28 17:55:01 +01:00
3f6eac48d1 Fixes getting TK abilities when you shouldn't (#16300)
* fix

* oops

Co-authored-by: SteelSlayer <42044220+SteelSlayer@users.noreply.github.com>

* review

* oops

Co-authored-by: SteelSlayer <42044220+SteelSlayer@users.noreply.github.com>
2021-07-07 19:22:49 +01:00
S34NW 6bb8f30391 optimises flash protection 2021-07-06 14:23:18 +01:00
S34NW cce8b389c6 adds even more vision genes! 2021-07-05 23:59:15 +01:00
S34NandGitHub 9564c2d7c1 Apply suggestions from code review 2021-07-05 23:04:14 +01:00
S34NW 705a013445 i do 2021-07-05 22:44:30 +01:00
Akira AkashiandGitHub 93a0b15834 capitalise the no-prints and x-ray deactivation messages (#16225)
* capitalise the no-prints deactivation message

* capatalise x-ray deactivation
2021-06-22 21:06:48 +01:00
SabreMLandGitHub 0b375de42c Removes the the vast majority of 'The the' from the the code (#15597)
* The the

* Some more

* Review 1

* A couple more
2021-06-20 10:20:32 -04:00
Farie82andGitHub dd0ef504e2 Fixes genetics gene changes not working (#16035) 2021-05-16 09:29:34 +01:00
joep van der velden fb18393662 Add some documentation 2021-05-06 22:45:14 +02:00
joep van der velden dbb153339f Optmizes handle_mutations_and_radiation
Saving about 90% CPU power on blank humanoids
2021-05-06 22:36:51 +02:00
Fox McCloudandGitHub 926d484277 Moves External Organs to Nullspace (#15548)
* Moves External Organs to Nullspace

* additions

* oops

* further cleanup
2021-03-03 21:34:49 +00:00
Fox McCloudandGitHub 75935ff876 Converts Eye Augments to Cybernetic Eyes (#15519)
* Converts Eye Augments to Cybernetic Eyes

* literally not used

* it helps when you properly include all the code

* flashlight eyes

* tweaks

* conflict resolution

* can't have two eyes

* order of operations matters here

* autosurgeon
2021-03-03 20:21:30 +00:00
Fox McCloudandGitHub 02b9445b9b Refactors DNA Mutations; Refactors Mutations to use Traits (#15483)
* Refactors Mutations

* traits

* more work

* styling fix

* yet even more work

* oh hush

* almost there

* it continues yet further

* and that's genetics done

* and that's it folks

* last bit and golem fixup

* oof

* oops

* tweaks and fixes

* styling
2021-02-21 21:25:19 +00:00
Fox McCloudandGitHub de795c4e31 Radiation Refactor (#15331)
* First Commit

* visible radiation and engine goggles

* correction

* t-ray fix

* further adjustments and fixups

* gieger addition and cleaning fixup

* yet more fixes

* styling fixes

* fixes

* human glowing fix

* do the merge conflict avoidance dance

* Update supermatter.dm

* supermatter rads

* mapping in

* radiation doors

* yeah yeah line endings

* clean up

* styling issues

* showers
2021-01-24 22:03:13 +00:00
98ce4aa1a5 Makes mindread not list non carbon mobs (#15193)
Co-authored-by: joep van der velden <15887760+farie82@users.noreply.github.com>
2020-12-28 09:37:28 +00:00
Sean WilliamsandGitHub 5774092784 Rework of chav text replacement (#15058)
* Rework of chav disability text replacement

<!-- Write **BELOW** The Headers and **ABOVE** The comments else it may not be viewable. -->
<!-- You can view Contributing.MD for a detailed description of the pull request process. -->

## What Does This PR Do
Replaces individual replacetext() calls with one regex function and a list.
Adds more chav terms, updates disused terms.
Stops replacetext() changing terms in the middle of other words, now only changes whole words.
<!-- Include a small to medium description of what your PR changes. Document every changes or this may delay review or even discourage maintainers from merging your PR! -->

## Why It's Good For The Game
Little things like this add immersion and variety, so having a few extra changes at minimal performance cost helps.

Matches found in the middle of words no longer get replaced, so you don't end up looking like a tool by saying "com**mate**d" instead of "com**man**d"

Tidying up old code to include regex also makes the code easier to maintain.

<!-- Please add a short description of why you think these changes would benefit the game. If you can't justify it in words, it might not be worth adding. -->

## Changelog
🆑
add: Added more chav words, innit.
del: Removed some old words.
tweak: Replaced many replacetext() calls with a single regex function, only changes whole words.
/🆑

<!-- Both 🆑's are required for the changelog to work! You can put your name to the right of the first 🆑 if you want to overwrite your GitHub username as author ingame. -->
<!-- You can use multiple of the same prefix (they're only used for the icon ingame) and delete the unneeded ones. Despite some of the tags, changelogs should generally represent how a player might be affected by the changes rather than a summary of the PR's contents. -->

* Update goon_disabilities.dm

* Stopped chavlinks being global

Moved the chavlinks list into the chav disability datum

* ACTUALLY stopped chavlinks being global

* Tidying

Im a moron and forgot to move my comment with the lst

* Incorporated farie82's suggestion

changed rep_test to replace_speech

* Tweaks to replacement list

Removed dupes, added more -ed words, redone "you" and "your"
2020-12-14 11:37:44 +00:00
AffectedArc07 54dd2765b4 Converts all tgui_ to ui_ 2020-11-21 12:10:58 +00:00
joep van der velden b586a90257 Makes pods work with the force_eject_occupant proc 2020-10-29 00:08:52 +01:00
AffectedArc07andGitHub 2c37ae8fd0 The road to Initialize() stability - Enforcing parent call on New(), Initialize() and Destroy() (#14719)
* The road to Initialize() stability

* Fixes sanity, for now
2020-10-28 12:35:36 -04:00
TDSSSandGitHub 1133527469 hallucinations should now properly trigger (#14740) 2020-10-26 19:31:46 -04:00
IrenandGitHub a3d01c18f7 PR - Gender Update (#14406)
* PR - Gender Update

Gives Gender three states instead of two. This allows clones of tri-gendered species to properly carry their genders over to new bodies (e.g. Greys, Drask, etc.).

Tristate Gender Set Proc
Tristate Gender Get Proc
Fixes where Binary State was needed.

* Update update_icons.dm

Yeah, let's _not_ have Genderless folks get inconsistently gendered body part sprites (e.g. head, groin, torso mismatch).

* Update dna2.dm

* Update dna2.dm

* Update organ_icon.dm

* Update update_icons.dm

* Update dna2_helpers.dm

* Update organ_icon.dm

Readability (spacing)

* Update dna_injector.dm

* Update dna2.dm

* Changes made per Affected's requests.

Changes made per Affected's feedback.

* Update dna2.dm

Got our heads too deep in using this just for DNA_UI_GENDERr - returning the Set and Get procs to 0, 1, 2 as per Affected's request.

While in there, noticed some housekeeping items:
- reorganized the ranges so they flow numerically now
- changed the ranges so they don't overlap (line 205 having been the worst)
- removed the "else" statement from line 222 since we're using ASSERTS. There shouldn't be a value outside the range of 0 to 2 for this.
2020-10-21 09:45:44 -04:00
farie82andGitHub 2b638db8f4 Makes mindscan and remotetalk logged using SAY_LOG (#14617) 2020-10-17 13:19:08 -04:00
farie82andGitHub 8e8ad65906 Makes most targeted spells select a target on click with a radius (#13220)
* Basis

* Make most targeted spells use a click with radius instead of a list

* Fixes

* Selection code

* return ..()

* Auto targeting

* Forgot a comment change

* Merge issue fix
2020-09-18 10:30:32 -04:00
farie82andGitHub 67e6cf5079 Scan mind and Project mind now use vision to determine the naming in the target list (#12963)
* Scan mind and Project mind now use vision to determine the naming

* Copy pasta mistake fix

* logic fix with name dupe prevention

* Refactor ala review
2020-09-17 18:31:08 -04:00
mochi d8f949b434 Merge branch 'master' into tgui-medical 2020-09-15 12:46:30 +02:00
Kugamo b2239bb8fa implaments faster for loop logic 2020-09-02 10:22:45 -05:00
Kugamo 13d02fabb1 removes string2charlist(), fixes spacing 2020-09-02 10:10:32 -05:00
Kugamo c6b221d268 Fixes Wingdings 2020-09-02 09:51:27 -05:00
mochi c2a6934f1b TM polish pass 2 2020-09-01 12:30:15 +02:00
mochi 1ebb300071 Merge branch 'master' into tgui-medical 2020-08-18 09:29:47 +02:00
Kyep 13149fa93a Fixes runtimes from moving SSD/AFK people out of machines 2020-07-21 11:56:59 -07:00
dearmochiandGitHub d88f5ca2c0 Merge branch 'master' into tgui-medical 2020-07-12 11:47:47 +02:00
mochi aaee6b039d First polish pass 2020-07-12 11:46:42 +02:00
AffectedArc07 650c638d41 Removes semicolons 2020-07-11 18:51:45 +01:00
dearmochiandGitHub 19bf49394e Merge branch 'master' into tgui-medical 2020-07-10 21:20:00 +02:00
mochi 2c78bf0e8a TGUI Medical: DNA Modifier 2020-07-10 21:16:07 +02:00