Skip to content

Commit

Permalink
a lot fixes and folders movements
Browse files Browse the repository at this point in the history
  • Loading branch information
Artemchik542 committed Jun 20, 2024
1 parent a73297f commit c9aecf6
Show file tree
Hide file tree
Showing 14 changed files with 49 additions and 17 deletions.
2 changes: 1 addition & 1 deletion code/__DEFINES/sprite_accessories.dm
Original file line number Diff line number Diff line change
Expand Up @@ -12,4 +12,4 @@
/// Uses the species's mutant color for the hair color
#define USE_MUTANT_COLOR "use_mutant_color"
/// Uses the species's fixed mutant color for the hair color
#define USE_FIXED_MUTANT_COLOR "use_fixed_mutant_color"
#define USE_FIXED_MUTANT_COLOR "use_fixed_mutant_color"
File renamed without changes.
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ GLOBAL_LIST_INIT(advanced_hardsuit_allowed, typecacheof(list(
/obj/item/melee/baton,
/obj/item/reagent_containers/spray/pepper,
/obj/item/restraints/handcuffs,
/obj/item/tank/internals,
/obj/item/tank/internals
)))

GLOBAL_LIST_INIT(security_hardsuit_allowed, typecacheof(list(
Expand All @@ -20,5 +20,5 @@ GLOBAL_LIST_INIT(security_hardsuit_allowed, typecacheof(list(
/obj/item/melee/baton,
/obj/item/reagent_containers/spray/pepper,
/obj/item/restraints/handcuffs,
/obj/item/tank/internals,
/obj/item/tank/internals
)))
Original file line number Diff line number Diff line change
@@ -1,2 +1,3 @@
//defines files
#include "inventory.dm"
#include "butt_furrt.dm"
4 changes: 4 additions & 0 deletions code/__DEFINES/~meta_defines/readme.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
Это основной файл куда будут складываться все наши модульные добавления для defines.
Добавлять только:
Дефайны (.dm файлами)
Сам этот файл добавлен в tgstation.dme
12 changes: 6 additions & 6 deletions code/__HELPERS/chat_filter.dm
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
/// Given a text, will return what word is on the IC filter, with the reason.
/// Returns null if the message is OK.
/proc/is_ic_filtered(message)
if (config.ic_filter_regex?.Find_char(lowertext(message))) //MASSMETA EDIT
if (config.ic_filter_regex?.Find_char(LOWER_TEXT(message))) //MASSMETA EDIT
var/matched_group = GET_MATCHED_GROUP(config.ic_filter_regex)
return list(
matched_group,
Expand All @@ -17,7 +17,7 @@
/// Given a text, will return what word is on the soft IC filter, with the reason.
/// Returns null if the message is OK.
/proc/is_soft_ic_filtered(message)
if (config.soft_ic_filter_regex?.Find_char(lowertext(message))) //MASSMETA EDIT
if (config.soft_ic_filter_regex?.Find_char(LOWER_TEXT(message))) //MASSMETA EDIT CHANGE - ORIGINAL: .Find(message)
var/matched_group = GET_MATCHED_GROUP(config.soft_ic_filter_regex)
return list(
matched_group,
Expand All @@ -29,7 +29,7 @@
/// Given a text, will return what word is on the OOC filter, with the reason.
/// Returns null if the message is OK.
/proc/is_ooc_filtered(message)
if (config.ooc_filter_regex?.Find_char(lowertext(message))) //MASSMETA EDIT
if (config.ooc_filter_regex?.Find_char(LOWER_TEXT(message))) //MASSMETA EDIT CHANGE - ORIGINAL: .Find(message)
var/matched_group = GET_MATCHED_GROUP(config.ooc_filter_regex)
return list(matched_group, config.shared_filter_reasons[matched_group])

Expand All @@ -38,7 +38,7 @@
/// Given a text, will return that word is on the soft OOC filter, with the reason.
/// Returns null if the message is OK.
/proc/is_soft_ooc_filtered(message)
if (config.soft_ooc_filter_regex?.Find_char(lowertext(message))) //MASSMETA EDIT
if (config.soft_ooc_filter_regex?.Find_char(LOWER_TEXT(message))) //MASSMETA EDIT CHANGE - ORIGINAL: .Find(message)
var/matched_group = GET_MATCHED_GROUP(config.soft_ooc_filter_regex)
return list(matched_group, config.soft_shared_filter_reasons[matched_group])

Expand All @@ -64,7 +64,7 @@
/// Given a text, will return what word is on the IC filter, ignoring words allowed on the PDA, with the reason.
/// Returns null if the message is OK.
/proc/is_ic_filtered_for_pdas(message)
if (config.ic_outside_pda_filter_regex?.Find_char(lowertext(message))) //MASSMETA EDIT
if (config.ic_outside_pda_filter_regex?.Find_char(LOWER_TEXT(message))) //MASSMETA EDIT CHANGE - ORIGINAL: .Find(message)
var/matched_group = GET_MATCHED_GROUP(config.ic_outside_pda_filter_regex)
return list(
matched_group,
Expand All @@ -76,7 +76,7 @@
/// Given a text, will return what word is on the soft IC filter, ignoring words allowed on the PDA, with the reason.
/// Returns null if the message is OK.
/proc/is_soft_ic_filtered_for_pdas(message)
if (config.soft_ic_outside_pda_filter_regex?.Find_char(lowertext(message))) //MASSMETA EDIT
if (config.soft_ic_outside_pda_filter_regex?.Find_char(LOWER_TEXT(message))) //MASSMETA EDIT CHANGE - ORIGINAL: .Find(message)
var/matched_group = GET_MATCHED_GROUP(config.soft_ic_outside_pda_filter_regex)
return list(
matched_group,
Expand Down
10 changes: 10 additions & 0 deletions code/__HELPERS/~meta_helpers/modular_meta_helpers.dme
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
/*
*
* Это основной файл куда будут складываться все наши модульные добавления для хелперов.
* Добавлять только:
* Хелперы (.dm файлами)
* Сам этот файл добавлен в tgstation.dme
*
*/

//helpers files
4 changes: 4 additions & 0 deletions code/__HELPERS/~meta_helpers/readme.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
Это основной файл куда будут складываться все наши модульные добавления для helpers.
Добавлять только:
Хелперы (.dm файлами)
Сам этот файл добавлен в tgstation.dme
7 changes: 4 additions & 3 deletions code/modules/projectiles/ammunition/ballistic/rifle.dm
Original file line number Diff line number Diff line change
Expand Up @@ -7,13 +7,14 @@
caliber = CALIBER_STRILKA310
projectile_type = /obj/projectile/bullet/strilka310

// massmeta edit
// MASSMETA EDIT REMOVAL BEGIN - mosin return
/*
/obj/item/ammo_casing/strilka310/Initialize(mapload)
. = ..()
/obj/item/ammo_casing/strilka310/Initialize(mapload)
. = ..()
AddElement(/datum/element/caseless)
*/
// MASSMETA EDIT REMOVAL END

/obj/item/ammo_casing/strilka310/surplus
name = ".310 Strilka surplus bullet casing"
Expand Down
2 changes: 1 addition & 1 deletion code/modules/surgery/organs/external/tails.dm
Original file line number Diff line number Diff line change
Expand Up @@ -216,4 +216,4 @@
/datum/bodypart_overlay/mutant/tail_spines/can_draw_on_bodypart(mob/living/carbon/human/human)
. = ..()
if(human.wear_suit && (human.wear_suit.flags_inv & HIDEJUMPSUIT))
return FALSE
return FALSE
6 changes: 5 additions & 1 deletion massmeta/includes.dm → massmeta/modular_meta.dme
Original file line number Diff line number Diff line change
@@ -1,4 +1,7 @@
//master files
//modular files


//master files (unsorted, TODO: need modularization)
#include "code\_globalvars\lists\names.dm"
#include "code\__HELPERS\names.dm"
#include "interface\interface.dm"
Expand Down Expand Up @@ -104,3 +107,4 @@
#include "code\modules\reagents\chemistry\reagents\drinks\glass_styles\sodas.dm"
#include "code\modules\reagents\reagent_containers\cups\soda.dm"
#include "code\modules\reagents\reagent_dispenser.dm"

7 changes: 7 additions & 0 deletions massmeta/readme.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
Это основной файл куда будут складываться все наши модульные добавления.
Добавлять только:
* Модули (.dme файлами)
Сам этот файл добавлен в tgstation.dme

Все Defines лежат в папке "code\__DEFINES\~meta_defines\"
Все Helpers лежат в папке "code\__HELPERS\~meta_helpers\"
2 changes: 1 addition & 1 deletion strings/massmeta/italian_replacement_ru.json
Original file line number Diff line number Diff line change
Expand Up @@ -84,7 +84,7 @@
"хуйня": "дерьмо",
"чил": "дерьмо",
"щитсек": "инвалид",
"щитсеки": "инвалиды",
"щитсеки": "инвалиды"
}


Expand Down
5 changes: 3 additions & 2 deletions tgstation.dme
Original file line number Diff line number Diff line change
Expand Up @@ -392,7 +392,7 @@
#include "code\__DEFINES\traits\declarations.dm"
#include "code\__DEFINES\traits\macros.dm"
#include "code\__DEFINES\traits\sources.dm"
#include "code\__DEFINES\~massmeta_defines\_defines_include.dm"
#include "code\__DEFINES\~meta_defines\modular_meta_defines.dme" //MASSMETA EDIT ADDITION (all massmeta defines only here)
#include "code\__HELPERS\_auxtools_api.dm"
#include "code\__HELPERS\_lists.dm"
#include "code\__HELPERS\_planes.dm"
Expand Down Expand Up @@ -507,6 +507,7 @@
#include "code\__HELPERS\paths\sssp.dm"
#include "code\__HELPERS\sorts\helpers.dm"
#include "code\__HELPERS\sorts\sort_instance.dm"
#include "code\__HELPERS\~meta_helpers\modular_meta_helpers.dme" //MASSMETA EDIT ADDITION (all massmeta helpers only here)
#include "code\_globalvars\_regexes.dm"
#include "code\_globalvars\admin.dm"
#include "code\_globalvars\arcade.dm"
Expand Down Expand Up @@ -6240,5 +6241,5 @@
#include "interface\fonts\spess_font.dm"
#include "interface\fonts\tiny_unicode.dm"
#include "interface\fonts\vcr_osd_mono.dm"
#include "massmeta\includes.dm"
#include "massmeta\modular_meta.dme" //MASSMETA EDIT ADDITION (all massmeta modules only here)
// END_INCLUDE

0 comments on commit c9aecf6

Please sign in to comment.