24 Commits

Author SHA1 Message Date
Alan be39ae6253 Add IPC knockout chem and hunger hallucination. (#32177)
* Add IPC knockout chem and hunger hallucination.

* Apply suggestions from CRUNCH review

Co-authored-by: CRUNCH <143041327+CRUNCH-Borg@users.noreply.github.com>
Signed-off-by: Alan <alfalfascout@users.noreply.github.com>

---------

Signed-off-by: Alan <alfalfascout@users.noreply.github.com>
Co-authored-by: CRUNCH <143041327+CRUNCH-Borg@users.noreply.github.com>
2026-07-17 06:14:45 +00:00
kyunkyunkyun b0463d3c83 Convert most spans to defines (#31080)
* spanish?

* aaaagain

* keep maptext

* Update robot_items.dm

* Update span_defines.dm

* compiles

* Update silicon_mob.dm

* compile
2025-12-13 23:55:48 +00:00
Toastical 51c47d8342 Fix compiler errors for 1670 (#30874)
* stage 1

* hud alist

* mobs and parry

* stage ?

* we dont even need an alist here
2025-11-11 10:38:24 +00:00
kyunkyunkyun 10f2e67e65 Cleanups and tweaks observer code (#30250)
* observer cleanup

* this

* bit more

* Update tgui.bundle.js
2025-09-05 05:54:22 +00:00
Contrabang 1504ed98be massive burndown (#29894) 2025-07-27 20:52:39 +00:00
PollardTheDragon d631b7f38b [PTBF] Hallucination - Meet the Sniper (#27579)
* Boom, headshot.

* If spacing

* Actually adds the hallucination to the list

* Spacing, moved fire to async, images, second hallucination for blood on hit

* Invisibility define

* Bullet fires, image

* Hit messages

* Boom, headshot

* Blood splatter has color now

* Proc ref

* Damage and target fix

* More efficient bump check

* Better List Appending

Co-authored-by: DGamerL <108773801+DGamerL@users.noreply.github.com>
Signed-off-by: PollardTheDragon <144391971+PollardTheDragon@users.noreply.github.com>

* Better list appending

Co-authored-by: DGamerL <108773801+DGamerL@users.noreply.github.com>
Signed-off-by: PollardTheDragon <144391971+PollardTheDragon@users.noreply.github.com>

* Knockdowm application

Co-authored-by: DGamerL <108773801+DGamerL@users.noreply.github.com>
Signed-off-by: PollardTheDragon <144391971+PollardTheDragon@users.noreply.github.com>

* Loc to turf

Co-authored-by: DGamerL <108773801+DGamerL@users.noreply.github.com>
Signed-off-by: PollardTheDragon <144391971+PollardTheDragon@users.noreply.github.com>

* Fixes knockdown

* Proper knockdown

Co-authored-by: DGamerL <108773801+DGamerL@users.noreply.github.com>
Signed-off-by: PollardTheDragon <144391971+PollardTheDragon@users.noreply.github.com>

* Range_Edge_Turfs

* Capital Var

* Better target turf detection

Co-authored-by: Luc <89928798+lewcc@users.noreply.github.com>
Signed-off-by: PollardTheDragon <144391971+PollardTheDragon@users.noreply.github.com>

* Better failure handling. Reverts change in RANGE_EDGE_TURFS

* Somehow a xeno got in. Purged it.

* Handles lack of client in target

* Removed extraneous debug log

---------

Signed-off-by: PollardTheDragon <144391971+PollardTheDragon@users.noreply.github.com>
Co-authored-by: DGamerL <108773801+DGamerL@users.noreply.github.com>
Co-authored-by: Luc <89928798+lewcc@users.noreply.github.com>
2025-01-31 15:57:50 +00:00
Paul ad4e5a66f7 [PTBF] Hallucination: The Backrooms (#27710)
* add backrooms hallucination

* mapmerge

* fix some backrooms issues and add some error handling stuff

* change backrooms carpet

* remove code that isn't doing anything

* tick new backrooms file

* try a new method with movement

* don't smooth corners

* fix red carpet hiding under backrooms carpet

* fix multiple turfs

* accidentally removed important code tracking items, oops

* implement new solution to the backrooms clone thing

* hmm so that's what the icon does

* indentation machine broke

* remove the tucked away spawn locations

* add comment for follow_movement

* revert oversight (the bar can keep its bevvies)

* put the thing back in that I wasn't supposed to remove

* Update code/modules/hallucinations/effects/backrooms.dm

Co-authored-by: Luc <89928798+lewcc@users.noreply.github.com>
Signed-off-by: Paul <90473506+pwbokie@users.noreply.github.com>

* Update code/modules/hallucinations/effects/backrooms.dm

Co-authored-by: Luc <89928798+lewcc@users.noreply.github.com>
Signed-off-by: Paul <90473506+pwbokie@users.noreply.github.com>

* fix missing comma

* code improvement tweaks from DLG

* add a fade out and in

---------

Signed-off-by: Paul <90473506+pwbokie@users.noreply.github.com>
Co-authored-by: Luc <89928798+lewcc@users.noreply.github.com>
2025-01-25 13:27:39 +00:00
DGamerL 3e3837da54 Removes some baaaad hallucinations (#27984) 2025-01-22 21:19:31 +00:00
Luc c6e1dd6387 [PTBF] Adds hallucination effects to medical and reagent scanners (#27616)
* finally revenge on all those evil doctors

* Adds medical machinery to the hallucination list

* forgor

* spacing

* Update code/game/objects/items/devices/scanners.dm

Co-authored-by: Contrabang <91113370+Contrabang@users.noreply.github.com>
Signed-off-by: Luc <89928798+lewcc@users.noreply.github.com>

* bbetter docs

* Improved health shuffle, add some other silly things for being dead

---------

Signed-off-by: Luc <89928798+lewcc@users.noreply.github.com>
Signed-off-by: Burzah <116982774+Burzah@users.noreply.github.com>
Co-authored-by: Contrabang <91113370+Contrabang@users.noreply.github.com>
Co-authored-by: Burzah <116982774+Burzah@users.noreply.github.com>
2025-01-14 16:08:27 +00:00
Taurtura 5b2d211da9 [PTBF] Adds a new hallucination, Blind Rushers! (#27717)
* adds the hallucination

* makes sure the hallucination looks at the player correctly

* spellin fix

* oh yeah this is much better- wait why are there only two of you now

* A bunch of Gatcha's and DGamer's reviews

* remove is_text stuff because it's not needed at all

* latest reviews + hallucination list reviews

* Update code/modules/hallucinations/effects/blind_rush_hallucination.dm

Co-authored-by: DGamerL <108773801+DGamerL@users.noreply.github.com>
Signed-off-by: Taurtura <141481662+Taurtura@users.noreply.github.com>

* Update code/modules/hallucinations/effects/blind_rush_hallucination.dm

Co-authored-by: DGamerL <108773801+DGamerL@users.noreply.github.com>
Signed-off-by: Taurtura <141481662+Taurtura@users.noreply.github.com>

* adds last hallucination to list

* Update code/modules/hallucinations/effects/blind_rush_hallucination.dm

Co-authored-by: DGamerL <108773801+DGamerL@users.noreply.github.com>
Signed-off-by: Taurtura <141481662+Taurtura@users.noreply.github.com>

---------

Signed-off-by: Taurtura <141481662+Taurtura@users.noreply.github.com>
Signed-off-by: Luc <89928798+lewcc@users.noreply.github.com>
Co-authored-by: DGamerL <108773801+DGamerL@users.noreply.github.com>
Co-authored-by: Luc <89928798+lewcc@users.noreply.github.com>
2025-01-11 04:03:27 +00:00
BiancaWilkson 699788c035 [PTBF] Wavy Vision (#27674)
* Initial commit

* Finished it up

* adds a define for clarity

* actually adds it to hallucinating

---------

Signed-off-by: Luc <89928798+lewcc@users.noreply.github.com>
Co-authored-by: Luc <89928798+lewcc@users.noreply.github.com>
2025-01-10 20:41:17 +00:00
asciodev 74a5c0d0af [PTBF] Adds blob hallucinations in dark areas (#27722)
* [PTBF] Adds blob hallucinations in dark areas

This hallucination looks for dark, unobstructed tiles within view of the
hallucinating target, and gradually expands a blob from one of those
tiles. It also spawns a blob zombie nearby. If the blob zombie knocks
the target down, the target will hallucinate becoming a blob zombie.

* Blob hallucination icon fix/change, add vomit sfx

Blob zombies now appropriately spawn their heads, and as requested in PR
review, the first blob spawned will have a core icon, and will be
accompanied by a vomit sound effect, like actual blobs. Additionally,
the blob zombie will no longer attack the target after already once
knocking them down.

* Apply suggestions from code review

Remove unnecessary nulls
Change return signature of blob_zombie#think to match convention
Set blob_zombie's name in typedef instead of initializer
Declare source_turf in loop body in blob#expand
Add nullchecks and safety check for deleted targets in blob#Destroy
Format blob hallucination colors list
Return qdel hint in blob#Initialize instead of qdeling self

Co-authored-by: Luc <89928798+lewcc@users.noreply.github.com>
Signed-off-by: asciodev <81930475+asciodev@users.noreply.github.com>

* Prevent blob zombie hallucination name from being overwritten when created

Signed-off-by: asciodev <81930475+asciodev@users.noreply.github.com>

* DM doesn't like parentheses on their own lines apparently

* Enable dynamic blob hallucination expansion count

Co-authored-by: Drsmail <60036448+Drsmail@users.noreply.github.com>

---------

Signed-off-by: asciodev <81930475+asciodev@users.noreply.github.com>
Co-authored-by: Luc <89928798+lewcc@users.noreply.github.com>
Co-authored-by: Drsmail <60036448+Drsmail@users.noreply.github.com>
2025-01-10 19:38:50 +00:00
Bm0n 1110903044 [PTBF] Adds doppelganger hallucination (#27628)
* commit

* ok this works

* guh

* i need a mapload for this

* ok

* Update code/modules/hallucinations/effects/moderate.dm

Co-authored-by: DGamerL <108773801+DGamerL@users.noreply.github.com>
Signed-off-by: Bm0n <92271472+Bm0n@users.noreply.github.com>

* destroy stuff

* this is broken

* fix

* Update code/modules/hallucinations/effects/moderate.dm

Co-authored-by: Luc <89928798+lewcc@users.noreply.github.com>
Signed-off-by: Bm0n <92271472+Bm0n@users.noreply.github.com>

---------

Signed-off-by: Bm0n <92271472+Bm0n@users.noreply.github.com>
Co-authored-by: Bmon <no@email.com>
Co-authored-by: DGamerL <108773801+DGamerL@users.noreply.github.com>
Co-authored-by: Luc <89928798+lewcc@users.noreply.github.com>
2025-01-10 19:38:37 +00:00
BeagleGaming1 7ed5829208 [PTBF] Adds grenade hallucinations (#27605)
* initial

* that part never worked

* doc

* requested changes

* Update code/modules/hallucinations/effects/moderate.dm

Co-authored-by: Luc <89928798+lewcc@users.noreply.github.com>
Signed-off-by: BeagleGaming1 <56142455+BeagleGaming1@users.noreply.github.com>

* Update code/modules/hallucinations/effects/moderate.dm

Co-authored-by: Luc <89928798+lewcc@users.noreply.github.com>
Signed-off-by: BeagleGaming1 <56142455+BeagleGaming1@users.noreply.github.com>

* requested changes

---------

Signed-off-by: BeagleGaming1 <56142455+BeagleGaming1@users.noreply.github.com>
Co-authored-by: Luc <89928798+lewcc@users.noreply.github.com>
2025-01-10 03:19:34 +00:00
MisterMovie 57c3b9b960 [PTBF] Adds custom hallucination descriptions (#27651)
* adds custom hallucination descriptions

* removes useless code comments

* fixes indentation

* a couple of fixes

* Fixes pronoun helper

* more code fixes

* forgot something...

* updates a sentence

* hallucination can actually roll now, increases probability

* fixes indentation

* removes empty line

* resolves merge conflict

---------

Signed-off-by: MisterMovie <44909173+Accinator50@users.noreply.github.com>
2025-01-10 02:33:46 +00:00
ExusA f63e40231e [PTBF] Adds a new, vent-based hallucination (#27619)
* Adds a new 'vent peek' hallucination.

* Remove blank space

* Apply review changes

Co-authored-by: DGamerL <108773801+DGamerL@users.noreply.github.com>
Signed-off-by: ExusA <67055922+ExusA@users.noreply.github.com>

* Apply Review Changes

* Add code comment

Adds a commented summary of the hallucination

---------

Signed-off-by: ExusA <67055922+ExusA@users.noreply.github.com>
Co-authored-by: DGamerL <108773801+DGamerL@users.noreply.github.com>
2025-01-10 02:31:27 +00:00
DGamerL 5cd21a0b7d Makes the xeno pounce a manager. Also enables it again (#27656)
* Rewrites xeno pounce

* Not yet

* Adds it to the list

* Autodoc
2025-01-06 16:33:24 +00:00
DGamerL e9e16645e1 Adds hallucination managers (#27482)
* Adds hallucination managers

* Contra + Lewc review

* Contra review

* Initial comment enhancement
2024-12-02 21:41:42 +00:00
DGamerL a44f9ca128 (Hopefully) Fixes the runtime where a hallucination tries to pick from an empty list (#24276)
* This was an RNG PITA to test

* Also does energy sword
2024-02-24 18:25:24 +00:00
AffectedArc07 e91b6c94f7 Renames QDEL_LIST to QDEL_LIST_CONTENTS (#20006)
* Renames QDEL_LIST to QDEL_LIST_CONTENTS

* derp
2022-12-29 14:28:40 +00:00
S34N 667dd5d4ac 515 Compatibility (#19636)
* 515 compat

* double spaces

* Callback documentation, aa review

* spacing

* NAMEOF_STATIC

* big beta
2022-11-08 23:08:40 +00:00
Charlie 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
SteelSlayer 7131a3f2e2 Fixes Dreamchecker warnings in the codebase (#17422) 2022-02-23 08:36:02 +01:00
dearmochi 712721fbc6 [READY] Reworks and Refactors Hallucinations (#15360)
* Hallucination rework start

* Chaser/Attacker, Abduction

* Moderates

* Majors

* saber alter

* address SteelSlayer

* Fix admin logging and runtime

* put hallucination logging on ATKLOG_ALL
2021-07-13 14:27:14 +01:00