Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Возвращает кол-во подпольных сумок как было раньше (5 штук) #96

Closed
wants to merge 3 commits into from
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
7 changes: 4 additions & 3 deletions code/__DEFINES/DNA.dm
Original file line number Diff line number Diff line change
Expand Up @@ -60,11 +60,12 @@
#define DNA_MOTH_MARKINGS_BLOCK 13
#define DNA_MUSHROOM_CAPS_BLOCK 14
#define DNA_POD_HAIR_BLOCK 15
#define DNA_MUTANT_COLOR_SECONDARY_BLOCK 16 //Add secondary color for species MASSMETA EDIT
#define DNA_MONKEY_TAIL_BLOCK 16
#define DNA_MUTANT_COLOR_SECONDARY_BLOCK 17 //MASSMETA ADDITION

//#define DNA_FEATURE_BLOCKS 16
#define DNA_FEATURE_BLOCKS 17 // add +1 new DNA BLOCK
#define DNA_MONKEY_TAIL_BLOCK 16
#define DNA_FEATURE_BLOCKS 17 // add +1 new DNA BLOCK (secondary color for liz)



#define DNA_SEQUENCE_LENGTH 4
Expand Down
4 changes: 3 additions & 1 deletion code/__DEFINES/sprite_accessories.dm
Original file line number Diff line number Diff line change
@@ -1,8 +1,10 @@
// ~color source defines for sprite accessories
/// Color of the sprite accessory will match the owner's mutant color, which is granted by certain species
#define MUTANT_COLOR "mutant_color"

///Secondary color of the sprite accessory will match the owner's mutant secondary color, which is granted by certain species
#define MUTANT_COLOR_SECONDARY "mutant_color_secondary" // MASSMETA EDIT
#define MUTANT_COLOR_SECONDARY "mutant_color_secondary" // MASSMETA ADDITION

/// Color of the sprite accessory will match the owner's hair color
#define HAIR_COLOR "hair_color"
/// Color of the sprite accessory will match the owner's facial hair color
Expand Down
6 changes: 3 additions & 3 deletions code/__DEFINES/traits/declarations.dm
Original file line number Diff line number Diff line change
Expand Up @@ -144,12 +144,12 @@ Remember to update _globalvars/traits.dm if you're adding/removing/renaming trai
#define TRAIT_USES_SKINTONES "uses_skintones"
/// Species with this trait use mutant colors for coloration
#define TRAIT_MUTANT_COLORS "mutcolors"

/// Species with this trait use second mutant colors for coloration
#define TRAIT_MUTANT_COLORS_SECONDARY "mutcolors_secondary" // MASSMETA EDIT
#define TRAIT_MUTANT_COLORS_SECONDARY "mutcolors_secondary" // MASSMETA ADDITION

/// Species with this trait have mutant colors that cannot be chosen by the player, nor altered ingame by external means
#define TRAIT_FIXED_MUTANT_COLORS "fixed_mutcolors"
/// Species with this trait have second mutant colors that cannot be chosen by the player, nor altered ingame by external means
#define TRAIT_FIXED_MUTANT_COLORS_SECONDARY "fixed_mutcolors_secondary" // MASSMETA EDIT
/// Species with this trait have a haircolor that cannot be chosen by the player, nor altered ingame by external means
#define TRAIT_FIXED_HAIRCOLOR "fixed_haircolor"
/// Humans with this trait won't get bloody hands, nor bloody feet
Expand Down
3 changes: 1 addition & 2 deletions code/_globalvars/traits/_traits.dm
Original file line number Diff line number Diff line change
Expand Up @@ -222,7 +222,6 @@ GLOBAL_LIST_INIT(traits_by_type, list(
"TRAIT_FIST_MINING" = TRAIT_FIST_MINING,
"TRAIT_FIXED_HAIRCOLOR" = TRAIT_FIXED_HAIRCOLOR,
"TRAIT_FIXED_MUTANT_COLORS" = TRAIT_FIXED_MUTANT_COLORS,
"TRAIT_FIXED_MUTANT_COLORS_SECONDARY" = TRAIT_FIXED_MUTANT_COLORS_SECONDARY, // MASSMETA EDIT
"TRAIT_FLESH_DESIRE" = TRAIT_FLESH_DESIRE,
"TRAIT_FLOORED" = TRAIT_FLOORED,
"TRAIT_FORBID_MINING_SHUTTLE_CONSOLE_OUTSIDE_STATION" = TRAIT_FORBID_MINING_SHUTTLE_CONSOLE_OUTSIDE_STATION,
Expand Down Expand Up @@ -310,7 +309,7 @@ GLOBAL_LIST_INIT(traits_by_type, list(
"TRAIT_MULTIZ_SUIT_SENSORS" = TRAIT_MULTIZ_SUIT_SENSORS,
"TRAIT_MUSICIAN" = TRAIT_MUSICIAN,
"TRAIT_MUTANT_COLORS" = TRAIT_MUTANT_COLORS,
"TRAIT_MUTANT_COLORS_SECONDARY" = TRAIT_MUTANT_COLORS_SECONDARY, // MASSMETA EDIT
"TRAIT_MUTANT_COLORS_SECONDARY" = TRAIT_MUTANT_COLORS_SECONDARY, //MASSMETA ADDITION
"TRAIT_MUTE" = TRAIT_MUTE,
"TRAIT_NAIVE" = TRAIT_NAIVE,
"TRAIT_NEARSIGHTED_CORRECTED" = TRAIT_NEARSIGHTED_CORRECTED,
Expand Down
3 changes: 1 addition & 2 deletions code/_globalvars/traits/admin_tooling.dm
Original file line number Diff line number Diff line change
Expand Up @@ -80,7 +80,6 @@ GLOBAL_LIST_INIT(admin_visible_traits, list(
"TRAIT_FIST_MINING" = TRAIT_FIST_MINING,
"TRAIT_FIXED_HAIRCOLOR" = TRAIT_FIXED_HAIRCOLOR,
"TRAIT_FIXED_MUTANT_COLORS" = TRAIT_FIXED_MUTANT_COLORS,
"TRAIT_FIXED_MUTANT_COLORS_SECONDARY" = TRAIT_FIXED_MUTANT_COLORS_SECONDARY, // MASSMETA EDIT
"TRAIT_FLOORED" = TRAIT_FLOORED,
"TRAIT_FORCED_STANDING" = TRAIT_FORCED_STANDING,
"TRAIT_FREERUNNING" = TRAIT_FREERUNNING,
Expand Down Expand Up @@ -127,7 +126,7 @@ GLOBAL_LIST_INIT(admin_visible_traits, list(
"TRAIT_MORBID" = TRAIT_MORBID,
"TRAIT_MUSICIAN" = TRAIT_MUSICIAN,
"TRAIT_MUTANT_COLORS" = TRAIT_MUTANT_COLORS,
"TRAIT_MUTANT_COLORS_SECONDARY" = TRAIT_MUTANT_COLORS_SECONDARY, // MASSMETA EDIT
"TRAIT_MUTANT_COLORS_SECONDARY" = TRAIT_MUTANT_COLORS_SECONDARY, //MASSMETA ADDITION
"TRAIT_MUTE" = TRAIT_MUTE,
"TRAIT_NAIVE" = TRAIT_NAIVE,
"TRAIT_NEVER_WOUNDED" = TRAIT_NEVER_WOUNDED,
Expand Down
2 changes: 1 addition & 1 deletion code/controllers/subsystem/minor_mapping.dm
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ SUBSYSTEM_DEF(minor_mapping)
return SS_INIT_NO_NEED
#else
trigger_migration(CONFIG_GET(number/mice_roundstart))
place_satchels(satchel_amount = 2)
place_satchels(satchel_amount = 5) // MASSMETA EDIT 2 -> 5
return SS_INIT_SUCCESS
#endif

Expand Down
8 changes: 0 additions & 8 deletions code/datums/bodypart_overlays/bodypart_overlay.dm
Original file line number Diff line number Diff line change
Expand Up @@ -15,14 +15,6 @@
. = get_image(layer, limb)
color_image(., layer, limb)

// Edit START (secondary color)

///Wrapper for getting the proper secondary image, colored and everything
/datum/bodypart_overlay/proc/get_extended_overlay(layer, obj/item/bodypart/limb) // MASSMETA EDIT
return

//Edit END

///Generate the image. Needs to be overriden
/datum/bodypart_overlay/proc/get_image(layer, obj/item/bodypart/limb)
CRASH("Get image needs to be overridden")
Expand Down
14 changes: 0 additions & 14 deletions code/datums/bodypart_overlays/mutant_bodypart_overlay.dm
Original file line number Diff line number Diff line change
Expand Up @@ -23,20 +23,6 @@
draw_color = "#[random_color()]"
imprint_on_next_insertion = FALSE

// Edit START (secondary color)

/datum/bodypart_overlay/mutant/get_extended_overlay(layer, obj/item/bodypart/limb) // MASSMETA EDIT
layer = bitflag_to_layer(layer)
var/passed_color = sprite_datum.color_src ? draw_color : null
var/mob/living/carbon/human/owner = limb.owner
if(!owner)
return
var/datum/species/owner_species = owner.dna.species

return owner_species.return_accessory_layer(-layer, sprite_datum, owner, passed_color)

// Edit END

///Grab a random sprite
/datum/bodypart_overlay/mutant/proc/randomize_sprite()
sprite_datum = get_random_appearance()
Expand Down
22 changes: 11 additions & 11 deletions code/datums/dna.dm
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@ GLOBAL_LIST_INIT(identity_block_lengths, list(
*/
GLOBAL_LIST_INIT(features_block_lengths, list(
"[DNA_MUTANT_COLOR_BLOCK]" = DNA_BLOCK_SIZE_COLOR,
"[DNA_MUTANT_COLOR_SECONDARY_BLOCK]" = DNA_BLOCK_SIZE_COLOR, // MASSMETA EDIT
"[DNA_MUTANT_COLOR_SECONDARY_BLOCK]" = DNA_BLOCK_SIZE_COLOR, // MASSMETA ADDITION
"[DNA_ETHEREAL_COLOR_BLOCK]" = DNA_BLOCK_SIZE_COLOR,
))

Expand Down Expand Up @@ -209,10 +209,10 @@ GLOBAL_LIST_INIT(total_uf_len_by_block, populate_total_uf_len_by_block())
if(features["mcolor"])
L[DNA_MUTANT_COLOR_BLOCK] = sanitize_hexcolor(features["mcolor"], include_crunch = FALSE)

// Add secondary species color
// MASSMETA ADDITION (secondary color for liz)
if(features["mcolor_secondary"])
L[DNA_MUTANT_COLOR_SECONDARY_BLOCK] = sanitize_hexcolor(features["mcolor_secondary"], include_crunch = FALSE) // MASSMETA EDIT
// Edit End
L[DNA_MUTANT_COLOR_SECONDARY_BLOCK] = sanitize_hexcolor(features["mcolor_secondary"], include_crunch = FALSE)
// EDIT END

if(features["ethcolor"])
L[DNA_ETHEREAL_COLOR_BLOCK] = sanitize_hexcolor(features["ethcolor"], include_crunch = FALSE)
Expand Down Expand Up @@ -361,10 +361,10 @@ GLOBAL_LIST_INIT(total_uf_len_by_block, populate_total_uf_len_by_block())
if(DNA_MUTANT_COLOR_BLOCK)
set_uni_feature_block(blocknumber, sanitize_hexcolor(features["mcolor"], include_crunch = FALSE))

// Add secondary color for species
// MASSMETA ADDITOION (secondary color for liz)
if(DNA_MUTANT_COLOR_SECONDARY_BLOCK)
set_uni_feature_block(blocknumber, sanitize_hexcolor(features["mcolor_secondary"], include_crunch = FALSE)) // MASSMETA EDIT
// Edit End
set_uni_feature_block(blocknumber, sanitize_hexcolor(features["mcolor_secondary"], include_crunch = FALSE))
// EDIT END

if(DNA_ETHEREAL_COLOR_BLOCK)
set_uni_feature_block(blocknumber, sanitize_hexcolor(features["ethcolor"], include_crunch = FALSE))
Expand Down Expand Up @@ -484,7 +484,7 @@ GLOBAL_LIST_INIT(total_uf_len_by_block, populate_total_uf_len_by_block())
features |= GLOB.species_prototypes[species_type].randomize_features()

features["mcolor"] = "#[random_color()]"
features["mcolor_secondary"] = "#[random_color()]" // MASSMETA EDIT
features["mcolor_secondary"] = "#[random_color()]" // MASSMETA ADDITION

update_dna_identity()

Expand Down Expand Up @@ -664,10 +664,10 @@ GLOBAL_LIST_INIT(total_uf_len_by_block, populate_total_uf_len_by_block())
if(dna.features["mcolor"])
dna.features["mcolor"] = sanitize_hexcolor(get_uni_feature_block(features, DNA_MUTANT_COLOR_BLOCK))

// Add secondary color for species
// MASSMETA ADDITION (secondary color for liz)
if(dna.features["mcolor_secondary"])
dna.features["mcolor_secondary"] = sanitize_hexcolor(get_uni_feature_block(features, DNA_MUTANT_COLOR_SECONDARY_BLOCK)) // MASSMETA EDIT
// Edit End
dna.features["mcolor_secondary"] = sanitize_hexcolor(get_uni_feature_block(features, DNA_MUTANT_COLOR_SECONDARY_BLOCK))
// EDIT END

if(dna.features["ethcolor"])
dna.features["ethcolor"] = sanitize_hexcolor(get_uni_feature_block(features, DNA_ETHEREAL_COLOR_BLOCK))
Expand Down
19 changes: 9 additions & 10 deletions code/modules/mob/living/carbon/human/_species.dm
Original file line number Diff line number Diff line change
Expand Up @@ -703,11 +703,12 @@ GLOBAL_LIST_EMPTY(features_by_species)
switch(accessory.color_src)
if(MUTANT_COLOR)
accessory_overlay.color = fixed_mut_color || source.dna.features["mcolor"]
// Edit START (secondary color)
if(MUTANT_COLOR_SECONDARY) // MASSMETA EDIT
if(fixed_mut_color)
accessory_overlay.color = fixed_mut_color || source.dna.features["mcolor_secondary"]
// Edit END

// MASSMETA ADIDITION (secondary color for liz)
if(MUTANT_COLOR_SECONDARY)
accessory_overlay.color = fixed_mut_color || source.dna.features["mcolor_secondary"]
// EDIT END

if(HAIR_COLOR)
accessory_overlay.color = get_fixed_hair_color(source) || source.hair_color
if(FACIAL_HAIR_COLOR)
Expand All @@ -718,12 +719,10 @@ GLOBAL_LIST_EMPTY(features_by_species)
accessory_overlay.color = forced_colour
standing += accessory_overlay

// Edit START (secondary color)

if(length(accessory.external_slots)) // MASSMETA EDIT
// MASSMETA ADDITION (secondary color for liz)
if(length(accessory.external_slots))
standing += return_accessory_layer(layer, accessory, source, accessory_overlay.color)

// Edit END
// EDIT END

if(accessory.hasinner)
var/mutable_appearance/inner_accessory_overlay = mutable_appearance(accessory.icon, layer = -layer)
Expand Down
2 changes: 1 addition & 1 deletion code/modules/mob/living/carbon/human/dummy.dm
Original file line number Diff line number Diff line change
Expand Up @@ -102,7 +102,7 @@ INITIALIZE_IMMEDIATE(/mob/living/carbon/human/dummy)

/proc/create_consistent_human_dna(mob/living/carbon/human/target)
target.dna.features["mcolor"] = COLOR_VIBRANT_LIME
target.dna.features["mcolor_secondary"] = COLOR_VIBRANT_LIME // secondary color MASSMETA EDIT
target.dna.features["mcolor_secondary"] = COLOR_VIBRANT_LIME //MASSMETA ADDITION (secondary color for liz) no clue what it does acctually
target.dna.features["ethcolor"] = COLOR_WHITE
target.dna.features["body_markings"] = get_consistent_feature_entry(SSaccessories.body_markings_list)
target.dna.features["ears"] = get_consistent_feature_entry(SSaccessories.ears_list)
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
id = SPECIES_LIZARD
inherent_traits = list(
TRAIT_MUTANT_COLORS,
TRAIT_MUTANT_COLORS_SECONDARY, // Add secondary color MASSMETA EDIT
TRAIT_MUTANT_COLORS_SECONDARY, // MASSMETA ADDITION (secondary color for liz)
TRAIT_TACKLING_TAILED_DEFENDER,
)
inherent_biotypes = MOB_ORGANIC|MOB_HUMANOID|MOB_REPTILE
Expand Down Expand Up @@ -158,7 +158,7 @@ Lizard subspecies: ASHWALKERS
mutantbrain = /obj/item/organ/internal/brain/primitive
inherent_traits = list(
TRAIT_MUTANT_COLORS,
TRAIT_MUTANT_COLORS_SECONDARY, // Add secondary color MASSMETA EDIT
TRAIT_MUTANT_COLORS_SECONDARY, // MASSMETA ADDITION (secondary color for liz)
TRAIT_VIRUSIMMUNE,
TRAIT_FORBID_MINING_SHUTTLE_CONSOLE_OUTSIDE_STATION,
)
Expand Down
8 changes: 3 additions & 5 deletions code/modules/surgery/bodyparts/_bodyparts.dm
Original file line number Diff line number Diff line change
Expand Up @@ -1060,13 +1060,11 @@
if(overlay.layers & external_layer)
. += overlay.get_overlay(external_layer, src)

// Edit START (secondary color)

if(overlay.get_extended_overlay(external_layer, src)) // MASSMETA EDIT
// MASSMETA ADDITION (secondary color for liz)
if(overlay.get_extended_overlay(external_layer, src))
for(var/mutable_appearance/item as anything in overlay.get_extended_overlay(external_layer, src))
. += item

// Edit END
// EDIT END

return .

Expand Down
33 changes: 14 additions & 19 deletions code/modules/surgery/organs/external/tails.dm
Original file line number Diff line number Diff line change
Expand Up @@ -79,25 +79,6 @@
organ_owner.add_mood_event("tail_lost", /datum/mood_event/tail_lost)
organ_owner.add_mood_event("tail_balance_lost", /datum/mood_event/tail_balance_lost)

/obj/item/organ/external/tail/proc/wag(mob/living/carbon/organ_owner, start = TRUE, stop_after = 0)
if(!(wag_flags & WAG_ABLE))
return

if(start)
if(start_wag(organ_owner) && stop_after)
addtimer(CALLBACK(src, PROC_REF(wag), organ_owner, FALSE), stop_after, TIMER_STOPPABLE|TIMER_DELETE_ME)
else
stop_wag(organ_owner)

// Edit START

owner.update_body_parts() // MASSMETA EDIT
if(ishuman(owner))
var/mob/living/carbon/human/human = owner
human.update_mutant_bodyparts()

// Edit END

///We need some special behaviour for accessories, wrapped here so we can easily add more interactions later
///Accepts an optional timeout after which we remove the tail wagging
///Returns false if the wag worked, true otherwise
Expand All @@ -116,6 +97,13 @@
if(tail_spines_overlay) //if there are spines, they should wag with the tail
tail_spines_overlay.wagging = TRUE
organ_owner.update_body_parts()

// MASSMETA ADDITION (second color for liz)
if(ishuman(owner) && HAS_TRAIT(organ_owner, TRAIT_MUTANT_COLORS_SECONDARY))
var/mob/living/carbon/human/human = owner
human.update_mutant_bodyparts()
// EDIT END

RegisterSignal(organ_owner, COMSIG_LIVING_DEATH, PROC_REF(owner_died))
return TRUE

Expand All @@ -142,6 +130,13 @@
return succeeded

organ_owner.update_body_parts()

// MASSMETA ADDITION (second color for liz)
if(ishuman(owner) && HAS_TRAIT(organ_owner, TRAIT_MUTANT_COLORS_SECONDARY))
var/mob/living/carbon/human/human = owner
human.update_mutant_bodyparts()
// EDIT END

UnregisterSignal(organ_owner, COMSIG_LIVING_DEATH)
return succeeded

Expand Down
3 changes: 3 additions & 0 deletions massmeta/code/datums/bodypart_overlays/bodypart_overlay.dm
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
// MASSMETA ADDITION (secondary color for liz)
/datum/bodypart_overlay/proc/get_extended_overlay(layer, obj/item/bodypart/limb)
return
11 changes: 11 additions & 0 deletions massmeta/code/datums/bodypart_overlays/mutant_bodypart_overlay.dm
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
// MASSMETA ADDITION (secondary color for liz)

/datum/bodypart_overlay/mutant/get_extended_overlay(layer, obj/item/bodypart/limb)
layer = bitflag_to_layer(layer)
var/passed_color = sprite_datum.color_src ? draw_color : null
var/mob/living/carbon/human/owner = limb.owner
if(!owner)
return
var/datum/species/owner_species = owner.dna.species

return owner_species.return_accessory_layer(-layer, sprite_datum, owner, passed_color)
Original file line number Diff line number Diff line change
Expand Up @@ -5,12 +5,11 @@
relevant_inherent_trait = TRAIT_MUTANT_COLORS_SECONDARY

/datum/preference/color/mutant_color_secondary/is_accessible(datum/preferences/preferences)
if (!..(preferences))
// color box in prefs TGUI will be appear only if user choose Colored Belly
if (!..(preferences) || preferences.read_preference(/datum/preference/choiced/lizard_body_markings) != "Color Belly")
return FALSE

var/species_type = preferences.read_preference(/datum/preference/choiced/species)
var/datum/species/species = new species_type
return !(TRAIT_FIXED_MUTANT_COLORS_SECONDARY in species.inherent_traits)
return TRUE

/datum/preference/color/mutant_color_secondary/create_default_value()
return sanitize_hexcolor("[pick("7F", "FF")][pick("7F", "FF")][pick("7F", "FF")]")
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@
/datum/sprite_accessory/body_markings/cbelly
icon = 'massmeta/icons/mob/species/lizard/multipart.dmi'
name = "Color Belly"
external_slots = list(ORGAN_SLOT_EXTERNAL_TAIL, ORGAN_SLOT_EXTERNAL_SNOUT)
external_slots = list(ORGAN_SLOT_EXTERNAL_TAIL)
icon_state = "cbelly"
gender_specific = 1
color_src = MUTANT_COLOR_SECONDARY
Binary file modified massmeta/icons/mob/species/lizard/multipart.dmi
Binary file not shown.
8 changes: 7 additions & 1 deletion massmeta/includes.dm
Original file line number Diff line number Diff line change
Expand Up @@ -76,20 +76,26 @@
#include "code\game\objects\structures\crates_lockers\crates\large.dm"
#include "code\modules\cargo\packs\imports.dm"

//species secondary color
//species secondary color (for liz)
#include "code\modules\client\preferences\species_features\mutants_color_secondary.dm"
#include "code\modules\mob\dead\new_player\sprite_accessories\multi_part.dm"
#include "code\modules\mob\living\carbon\human\accessory_helpers.dm"
#include "code\datums\bodypart_overlays\bodypart_overlay.dm"
#include "code\datums\bodypart_overlays\mutant_bodypart_overlay.dm"
//#include "code\datums\sprite_accessories.dm"

//features
#include "features\additional_circuit\includes.dm"
#include "features\hardsuits\code\_jetpack.dm"
#include "features\hardsuits\code\armor.dm"
#include "features\hardsuits\code\hardsuit.dm"
#include "features\hardsuits\code\helmet.dm"
#include "features\hardsuits\code\space_suit_beacon.dm"

//buts
#include "code\modules\surgery\organs\internal\butts\butts.dm"
#include "code\modules\surgery\organs\internal\butts\butts_init.dm"

//gay removal (6.21 КоАП РФ)
#include "code\modules\clothing\under\accessories\badges.dm"
#include "code\modules\clothing\shoes\sneakers.dm"
Expand Down
Loading
Loading