mirror of
https://github.com/Aurorastation/Aurora.3.git
synced 2026-07-20 04:17:33 +01:00
no relative pathing (#16234)
* the voices win in the end * cleanup * changelog * secure.dm hates me * make_exact_fit() in initialize instead of whatever was happening before
This commit is contained in:
@@ -6,7 +6,7 @@
|
||||
sort_category = "Suits and Overwear"
|
||||
cost = 1
|
||||
|
||||
datum/gear/suit/colorvest
|
||||
/datum/gear/suit/colorvest
|
||||
display_name = "colorable vest"
|
||||
path = /obj/item/clothing/suit/storage/toggle/brown_jacket/sleeveless/colorable
|
||||
flags = GEAR_HAS_NAME_SELECTION | GEAR_HAS_DESC_SELECTION | GEAR_HAS_COLOR_SELECTION
|
||||
|
||||
@@ -240,19 +240,19 @@
|
||||
*/
|
||||
var/datum/gear_tweak/social_credit/social_credit_tweak = new()
|
||||
|
||||
datum/gear_tweak/social_credit/get_contents(var/metadata)
|
||||
/datum/gear_tweak/social_credit/get_contents(var/metadata)
|
||||
return "Social Credit Score: [metadata]"
|
||||
|
||||
datum/gear_tweak/social_credit/get_default()
|
||||
/datum/gear_tweak/social_credit/get_default()
|
||||
return 5
|
||||
|
||||
datum/gear_tweak/social_credit/get_metadata(var/user, var/metadata)
|
||||
/datum/gear_tweak/social_credit/get_metadata(var/user, var/metadata)
|
||||
var/credit_score = input(user, "Set the credit score your passport will display, refer to the wiki to gauge it. (It will be slightly randomized to simulate Nralakk calculations.)", "Social Credit Score") as null|num
|
||||
if(credit_score)
|
||||
return round(credit_score, 0.01)
|
||||
return metadata
|
||||
|
||||
datum/gear_tweak/social_credit/tweak_item(var/obj/item/clothing/accessory/badge/passport/nralakk/PP, var/metadata)
|
||||
/datum/gear_tweak/social_credit/tweak_item(var/obj/item/clothing/accessory/badge/passport/nralakk/PP, var/metadata)
|
||||
if(!istype(PP))
|
||||
return
|
||||
PP.credit_score = metadata + pick(-0.01, 0, 0.01)
|
||||
|
||||
Reference in New Issue
Block a user