-
Notifications
You must be signed in to change notification settings - Fork 232
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
11 changed files
with
113 additions
and
18 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,19 +1,28 @@ | ||
// /datum/quirk/item_quirk/pride_pin | ||
// name = "Pride Pin" | ||
// desc = "Show off your pride with this changing pride pin!" | ||
// icon = FA_ICON_RAINBOW | ||
// value = 0 | ||
// gain_text = span_notice("You feel fruity.") | ||
// lose_text = span_danger("You feel only slightly less fruity than before.") | ||
// medical_record_text = "Patient appears to be fruity." | ||
/datum/quirk/item_quirk/pride_pin | ||
name = "Pride Pin" | ||
desc = "Show off your pride with this changing pride pin!" | ||
icon = FA_ICON_RAINBOW | ||
value = 0 | ||
//MONKESTATION EDIT START | ||
mob_trait = TRAIT_PRIDE_PIN | ||
quirk_flags = QUIRK_CHANGES_APPEARANCE | ||
gain_text = span_notice("You feel proud to be queer.") | ||
lose_text = span_danger("You decide to repress your feelings.") | ||
//MONKESTATION EDIT END | ||
|
||
// /datum/quirk/item_quirk/pride_pin/add_unique(client/client_source) | ||
// var/obj/item/clothing/accessory/pride/pin = new(get_turf(quirk_holder)) | ||
/datum/quirk/item_quirk/pride_pin/add_unique(client/client_source) | ||
var/obj/item/clothing/accessory/pride/pin = new(get_turf(quirk_holder)) | ||
|
||
// var/pride_choice = client_source?.prefs?.read_preference(/datum/preference/choiced/pride_pin) || assoc_to_keys(GLOB.pride_pin_reskins)[1] | ||
// var/pride_reskin = GLOB.pride_pin_reskins[pride_choice] | ||
var/pride_choice = client_source?.prefs?.read_preference(/datum/preference/choiced/pride_pin) || assoc_to_keys(GLOB.pride_pin_reskins)[1] | ||
var/pride_reskin = GLOB.pride_pin_reskins[pride_choice] | ||
|
||
// pin.current_skin = pride_choice | ||
// pin.icon_state = pride_reskin | ||
|
||
// give_item_to_holder(pin, list(LOCATION_BACKPACK = ITEM_SLOT_BACKPACK, LOCATION_HANDS = ITEM_SLOT_HANDS)) | ||
pin.current_skin = pride_choice | ||
pin.icon_state = pride_reskin | ||
//MONKESTATION EDIT START | ||
var/mob/living/carbon/human/H = quirk_holder | ||
if (istype(H)) | ||
var/obj/item/clothing/under/U = H.w_uniform | ||
if(U && U.attach_accessory(pin)) | ||
return | ||
//MONKESTATION EDIT END | ||
give_item_to_holder(pin, list(LOCATION_BACKPACK = ITEM_SLOT_BACKPACK, LOCATION_HANDS = ITEM_SLOT_HANDS)) |
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 @@ | ||
/datum/preference/choiced/pride_pin | ||
category = PREFERENCE_CATEGORY_SECONDARY_FEATURES | ||
savefile_key = "pride_pin" | ||
savefile_identifier = PREFERENCE_CHARACTER | ||
|
||
/datum/preference/choiced/pride_pin/init_possible_values() | ||
return assoc_to_keys(GLOB.pride_pin_reskins) | ||
|
||
/datum/preference/choiced/pride_pin/is_accessible(datum/preferences/preferences) | ||
if (!..(preferences)) | ||
return FALSE | ||
|
||
return "Pride Pin" in preferences.all_quirks | ||
|
||
/datum/preference/choiced/pride_pin/apply_to_human(mob/living/carbon/human/target, value) | ||
return |
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,43 @@ | ||
/obj/item/clothing/neck | ||
var/cover_accessories = TRUE | ||
|
||
/obj/item/clothing/neck/Initialize(mapload) | ||
. = ..() | ||
register_context() | ||
|
||
/obj/item/clothing/neck/alt_click_secondary(mob/user) | ||
. = ..() | ||
if(.) | ||
return | ||
if(!can_use(user)) | ||
return | ||
cover_accessories = !cover_accessories | ||
if(cover_accessories) | ||
to_chat(usr, span_notice("You adjust [src] to cover accessories.")) | ||
else | ||
to_chat(usr, span_notice("You adjust [src] to show accessories.")) | ||
|
||
user.update_clothing(ITEM_SLOT_NECK) | ||
update_appearance() | ||
|
||
/obj/item/clothing/neck/add_context(atom/source, list/context, obj/item/held_item, mob/living/user) | ||
. = ..() | ||
context[SCREENTIP_CONTEXT_ALT_RMB] = "[cover_accessories ? "Uncover" : "Cover"] accessories" | ||
return CONTEXTUAL_SCREENTIP_SET | ||
|
||
/obj/item/clothing/neck/worn_overlays(mutable_appearance/standing, isinhands = FALSE) | ||
. = ..() | ||
if(isinhands) | ||
return | ||
if(cover_accessories) | ||
return | ||
var/mob/living/carbon/human/wearer = loc | ||
if(!ishuman(wearer) || !wearer.w_uniform) | ||
return | ||
var/obj/item/clothing/under/undershirt = wearer.w_uniform | ||
if(!istype(undershirt) || !LAZYLEN(undershirt.attached_accessories)) | ||
return | ||
|
||
var/obj/item/clothing/accessory/displayed = undershirt.attached_accessories[1] | ||
if(displayed.above_suit) | ||
. += undershirt.accessory_overlay |
6 changes: 6 additions & 0 deletions
6
monkestation/code/modules/clothing/under/accessories/badges.dm
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,6 @@ | ||
/obj/item/clothing/accessory/pride/accessory_equipped(obj/item/clothing/under/clothes, mob/living/user) | ||
if(HAS_TRAIT(user, TRAIT_PRIDE_PIN)) | ||
user.add_mood_event("pride_pin", /datum/mood_event/pride_pin) | ||
|
||
/obj/item/clothing/accessory/pride/accessory_dropped(obj/item/clothing/under/clothes, mob/living/user) | ||
user.clear_mood_event("pride_pin") |
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
6 changes: 6 additions & 0 deletions
6
.../tgui/interfaces/PreferencesMenu/preferences/features/character_preferences/pride_pin.tsx
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,6 @@ | ||
import { FeatureChoiced, FeatureDropdownInput } from '../base'; | ||
|
||
export const pride_pin: FeatureChoiced = { | ||
name: 'Pride Pin', | ||
component: FeatureDropdownInput, | ||
}; |