mirror of
https://github.com/Bubberstation/Bubberstation.git
synced 2026-08-23 05:00:55 +01:00
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:
@@ -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"
|
||||
|
||||
Reference in New Issue
Block a user