Adds prefloading to bitrunning (#1551)

## About The Pull Request

Adds a new disky to bitrunning, which allows you to load any of your
prefslots in, and then spawn in the domain as that character.

Also, I asked the admins about this, believable character rules wont
apply inside bitrunning domains. So you can bring your meme chars there
as well.

## Why It's Good For The Game

People keep bullying me to add sex to bitrunning and who am I to say no

## Proof Of Testing

It seemed to work without deleting my prefs

## Changelog


🆑
add: Adds prefloading to bitrunning
/🆑

---------

Co-authored-by: Cyprex <35031555+Cyprex@users.noreply.github.com>
This commit is contained in:
Waterpig
2024-06-03 10:30:32 +02:00
committed by GitHub
co-authored by Cyprex
parent 67f70bfd62
commit 04484b817f
4 changed files with 70 additions and 2 deletions
@@ -36,9 +36,14 @@
return chosen_turf
/// Generates a new avatar for the bitrunner.
/obj/machinery/quantum_server/proc/generate_avatar(obj/structure/hololadder/wayout, datum/outfit/netsuit)
/obj/machinery/quantum_server/proc/generate_avatar(obj/structure/hololadder/wayout, datum/outfit/netsuit, datum/preferences/prefs, include_loadout = FALSE) // BUBBER EDIT - Prefs argument
var/mob/living/carbon/human/avatar = new(wayout.loc)
// BUBBER EDIT BEGIN - PREFS!
if(!isnull(prefs))
prefs.safe_transfer_prefs_to(avatar)
ADD_TRAIT(avatar, TRAIT_CANNOT_CRYSTALIZE, "Bitrunning") // Stops the funny ethereal bug
// BUBBER EDIT END
var/outfit_path = generated_domain.forced_outfit || netsuit
var/datum/outfit/to_wear = new outfit_path()
@@ -74,6 +79,8 @@
new /obj/item/flashlight,
)
if(include_loadout)
avatar.equip_outfit_and_loadout(new /datum/outfit(), prefs) // BUBBER EDIT - LOADOUTS
var/obj/item/card/id/outfit_id = avatar.wear_id
if(outfit_id)
outfit_id.assignment = "Bit Avatar"