Bitrunning loadout and name fixes (#1790)

## About The Pull Request

Loadouts load again, gamer names have been replaced by character names.

## Why It's Good For The Game

This is intended by what I created with the original bitrunning prefs

## Changelog

🆑
fix: Loadouts in bitrunning work again
fix: Names in bitrunning work again
/🆑
This commit is contained in:
Waterpig
2024-07-16 19:24:55 +00:00
committed by GitHub
parent cd6ef2a7f1
commit bff9fe01cc
2 changed files with 6 additions and 2 deletions
@@ -38,7 +38,7 @@
/// Generates a new avatar for the bitrunner.
/obj/machinery/quantum_server/proc/generate_avatar(turf/destination, datum/outfit/netsuit, datum/preferences/prefs, load_loadout = FALSE) // BUBBER EDIT - Prefs argument
/obj/machinery/quantum_server/proc/generate_avatar(turf/destination, datum/outfit/netsuit, datum/preferences/prefs, load_loadout = FALSE) // BUBBER EDIT - Prefs and loadout argument
var/mob/living/carbon/human/avatar = new(destination)
// BUBBER EDIT BEGIN - PREFS!
@@ -82,6 +82,9 @@
new /obj/item/flashlight,
)
if(load_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.registered_account = new()