forked from tgstation/tgstation
-
Notifications
You must be signed in to change notification settings - Fork 14
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #89 from Artemchik542/master
Принудительное удаление 95% контента попадающего под 6.21 КоАП
- Loading branch information
Showing
10 changed files
with
96 additions
and
12 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
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,19 @@ | ||
/datum/quirk/item_quirk/pride_pin | ||
name = "Patriotic Pin" // MASSMETA EDIT everythere replace [pride -> patriotic] | ||
desc = "Show off your patriotic with this changing patriotic pin!" | ||
icon = FA_ICON_RAINBOW | ||
value = 0 | ||
gain_text = span_notice("You feel patriotic.") // EDIT | ||
lose_text = span_danger("You feel only slightly less patriotic than before.") // EDIT | ||
medical_record_text = "Patient appears to be patriotic." | ||
|
||
/datum/quirk/item_quirk/pride_pin/add_unique(client/client_source) | ||
var/obj/item/clothing/accessory/patriotic/pin = new(get_turf(quirk_holder)) // EDIT | ||
|
||
var/pride_choice = client_source?.prefs?.read_preference(/datum/preference/choiced/pride_pin) || assoc_to_keys(GLOB.patriotic_flag_reskins)[1] // EDIT | ||
var/pride_reskin = GLOB.patriotic_flag_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)) |
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.patriotic_flag_reskins) // MASSMETA EDIT | ||
|
||
/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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,12 @@ | ||
/obj/item/clothing/shoes/sneakers/rainbow | ||
name = "rainbow shoes" | ||
desc = "Rainbow shoes." // MASSMETA EDIT | ||
icon_state = "rain_bow" | ||
inhand_icon_state = "rainbow_sneakers" | ||
|
||
greyscale_colors = null | ||
greyscale_config = null | ||
greyscale_config_inhand_left = null | ||
greyscale_config_inhand_right = null | ||
greyscale_config_worn = null | ||
flags_1 = NONE |
27 changes: 27 additions & 0 deletions
27
massmeta/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,27 @@ | ||
/// Reskins for the patriotic flag accessory, mapped by display name to icon state | ||
GLOBAL_LIST_INIT(patriotic_flag_reskins, list( | ||
"Russian flag" = "flag_russ", | ||
"Imperial flag" = "flag_imper", | ||
"China flag" = "flag_china", | ||
"German flag" = "flag_germ", | ||
"Serbian flag" = "flag_serb", | ||
"Kazakh flag" = "flag_kaz", | ||
"Iranian flag" = "flag_iran", | ||
"Cuban Pete" = "flag_cuba", | ||
)) | ||
|
||
/obj/item/clothing/accessory/patriotic | ||
name = "patriotic pin" | ||
desc = "A Nanotrasen holographic pin to show off your patriotic." | ||
icon = 'massmeta/icons/obj/clothing/accessories.dmi' | ||
worn_icon = 'massmeta/icons/mob/clothing/accessories.dmi' | ||
icon_state = "flag_russ" | ||
obj_flags = UNIQUE_RENAME | INFINITE_RESKIN | ||
|
||
/obj/item/clothing/accessory/patriotic/setup_reskinning() | ||
unique_reskin = GLOB.patriotic_flag_reskins | ||
if(!check_setup_reskinning()) | ||
return | ||
|
||
// We already register context regardless in Initialize. | ||
RegisterSignal(src, COMSIG_CLICK_ALT, PROC_REF(on_click_alt_reskin)) |
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,3 @@ | ||
/obj/structure/mirror/magic/pride | ||
name = "strange mirror" | ||
desc = "You look a little different in this mirror" |
Binary file not shown.
Binary file not shown.
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