-
Notifications
You must be signed in to change notification settings - Fork 283
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
A bunch of quirk refactors + improvements (#4642)
* A bunch of quirk refactors + improvements * Fix a runtime with the heterochromatic quirk (usually during credits) * properly clone heterochromatic and phobia, dont clone junkie/smoker, prevent runtimes in bilingual * fix test failures related to clown disbelief * Add some medical record text, exclude some others from scans, and sort variables * okay this ain't needed * ??? * okay im just trying to see wtf is going on with CI now * lmao of fucking course * yeah fuck it lets visually align all of those bc why not * Fix invalid args being passed to `on_clone` * move sign language to `add()` * fix clowns not believing in themselves * get rid of `QUIRK_BRIGHT_EYES` * change filename to avoid conflict with #4140 hopefully??
- Loading branch information
Showing
72 changed files
with
871 additions
and
849 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,12 @@ | ||
/// Used to get a random closed and non-secure locker on the station z-level, created for the Stowaway trait. | ||
/proc/get_unlocked_closed_locker() | ||
var/list/eligible_lockers = list() | ||
for(var/obj/structure/closet/closet as anything in GLOB.closets) | ||
if(QDELETED(closet) || closet.opened || istype(closet, /obj/structure/closet/secure_closet)) | ||
continue | ||
var/turf/closet_turf = get_turf(closet) | ||
if(!closet_turf || !is_station_level(closet_turf.z) || !is_safe_turf(closet_turf, dense_atoms = TRUE)) | ||
continue | ||
eligible_lockers += closet | ||
if(length(eligible_lockers)) | ||
return pick(eligible_lockers) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,16 @@ | ||
#define UWUIFY_ACREPLACE_KEY "uwuify" | ||
|
||
/// uwuifies text, used by fluffy tongue quirk and the cyborg UwU-speak "upgrade" | ||
/proc/uwuify_text(text) | ||
var/static/acreplace_setup = FALSE | ||
if(!acreplace_setup) | ||
//yeah i just precalculated all combinations | ||
rustg_setup_acreplace( \ | ||
UWUIFY_ACREPLACE_KEY, \ | ||
list( "ne", "Ne", "nE", "NE", "nu", "Nu", "nU", "NU", "na", "Na", "nA", "NA", "no", "No", "nO", "NO", "ove", "Ove", "oVe", "OVe", "ovE", "OvE", "oVE", "OVE", "r", "R", "l", "L"), \ | ||
list("nye", "Nye", "nYe", "NYe", "nyu", "Nyu", "nYu", "NYu", "nya", "Nya", "nYa", "NYa", "nyo", "Nyo", "nYo", "NYo", "uv", "Uv", "uV", "UV", "uv", "Uv", "uV", "UV", "w", "W", "w", "W") \ | ||
) | ||
acreplace_setup = TRUE | ||
return rustg_acreplace(UWUIFY_ACREPLACE_KEY, "[text]") | ||
|
||
#undef UWUIFY_ACREPLACE_KEY |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.