Skip to content

Commit

Permalink
Merge pull request #144 from Artemchik542/ci_suite-module-folder-check
Browse files Browse the repository at this point in the history
Система тестов для модульных файлов (раунд 3)
  • Loading branch information
homexp13 authored Jul 5, 2024
2 parents 8bb5803 + 1976c2a commit d4b9949
Show file tree
Hide file tree
Showing 30 changed files with 855 additions and 437 deletions.
8 changes: 6 additions & 2 deletions .github/workflows/ci_suite.yml
Original file line number Diff line number Diff line change
Expand Up @@ -86,13 +86,17 @@ jobs:
run: ':'
- name: Run Grep Checks
if: steps.linter-setup.conclusion == 'success' && !cancelled()
run: bash tools/ci/check_grep.sh
run: |
bash tools/ci/check_grep.sh
bash massmeta/tools/massmeta_check_grep.sh # MASSMETA EDIT ADDITION - checking modular_meta code
- name: Ticked File Enforcement
if: steps.linter-setup.conclusion == 'success' && !cancelled()
run: |
bash tools/massmeta_check_grep.sh # MASSMETA EDIT ADDITION - checking modular_meta code
tools/bootstrap/python tools/ticked_file_enforcement/ticked_file_enforcement.py < tools/ticked_file_enforcement/schemas/tgstation_dme.json
tools/bootstrap/python tools/ticked_file_enforcement/ticked_file_enforcement.py < tools/ticked_file_enforcement/schemas/unit_tests.json
tools/bootstrap/python massmeta/tools/ticked_file_enforcement/ticked_file_enforcement.py < massmeta/tools/ticked_file_enforcement/schemas/modular_meta_defines.json # MASSMETA EDIT ADDITION - modular defines tick enforcement
tools/bootstrap/python massmeta/tools/ticked_file_enforcement/ticked_file_enforcement.py < massmeta/tools/ticked_file_enforcement/schemas/modular_meta_master.json # MASSMETA EDIT ADDITION - modular master tick enforcement
tools/bootstrap/python massmeta/tools/ticked_file_enforcement/ticked_file_enforcement.py < massmeta/tools/ticked_file_enforcement/schemas/modular_meta.json # MASSMETA EDIT ADDITION - modular tick enforcement
- name: Check Define Sanity
if: steps.linter-setup.conclusion == 'success' && !cancelled()
run: tools/bootstrap/python -m define_sanity.check
Expand Down
2 changes: 1 addition & 1 deletion code/__DEFINES/~meta_defines_include.dm
Original file line number Diff line number Diff line change
@@ -1 +1 @@
#include "..\..\massmeta\~meta_defines\meta_defines_all.dm"
#include "..\..\massmeta\modular_meta_defines.dm"
31 changes: 29 additions & 2 deletions massmeta/features/additional_circuit/readme.md
Original file line number Diff line number Diff line change
@@ -1,3 +1,30 @@
# Credits
## Module ID: ADDITIONAL_CIRCUITS

Jake Park
### Description:

Добавляет микросхемы для "Циркуитов".


### TG Proc/File Changes:

- N/A


### Modular Overrides:

- N/A


### Defines:

- N/A


### Included files that are not contained in this module:

- N/A


### Credits:

- N/A
5 changes: 5 additions & 0 deletions massmeta/features/hardsuits/includes.dm
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
#include "code\_jetpack.dm"
#include "code\armor.dm"
#include "code\hardsuit.dm"
#include "code\helmet.dm"
#include "code\space_suit_beacon.dm"
30 changes: 30 additions & 0 deletions massmeta/features/hardsuits/readme.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,30 @@
## Module ID: HARDSUITS

### Description:

Добавляет Космические костюмы (hardsuit). Делает их досупным для выдора игроку помимо Мод-костюма (mod-suit).


### TG Proc/File Changes:

TODO:


### Modular Overrides:

TODO:


### Defines:

- ~meta_defines/inventory.dm


### Included files that are not contained in this module:

- N/A


### Credits:

- N/A
16 changes: 16 additions & 0 deletions massmeta/features/readme.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,16 @@
## Тут лежат все наши НОВЫЕ модульные файлы, каждый в своем модуле. У каждого такого модуля должно быть своё уникальное название.

### Каждый модуль должен строиться по след. структуре:

| Папка/Файл | Описание |
| --------------- | ------------------------------------------------- |
| **code/** | весь ваш модульный код |
| **icon/** | все ваши модульные иконки или картинки |
| **sound/** | все ваши модульный аудио файлы |
| **string/** | все ваши модульный файлы строк .txt .json |
| **includes.dm** | файл инклюдов всех ваших файлов в папке **code/** |
| **readme.md** | полная документация к модулю |

⚠️ В каждом модуле обязан быть хотя бы файл **readme.dm**! ⚠️

⚠️ Если в модуле присутсвтует какой-либо код в папке **code/**, то обязательно должен быть файл инклюдов этого кода в **includes.dm**! ⚠️
32 changes: 32 additions & 0 deletions massmeta/features/revert_glasses/readme.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,32 @@
## Module ID: REVERT_GLASSES

### Description:

Возвращает солнцезащитным очкам и всем худам на основе этих очков защиту от сварки.
Было спровоцированно PR'ом: ...?


### TG Proc/File Changes:

- N/A


### Modular Overrides:

- massmeta/code/modules/clothing/glasses/_glasses.dm
- massmeta/code/modules/clothing/glasses/hud.dm


### Defines:

- N/A


### Included files that are not contained in this module:

- N/A


### Credits:

- N/A
Original file line number Diff line number Diff line change
Expand Up @@ -16,11 +16,11 @@
carbon_target.apply_damage(rand(20, 40), BRUTE, BODY_ZONE_L_LEG, wound_bonus = rand(35,60), forced = TRUE)
carbon_target.apply_damage(rand(20, 40), BRUTE, BODY_ZONE_R_LEG, wound_bonus = rand(35,60), forced = TRUE)
carbon_target.emote("scream")
var/list/phrase = world.file2list("massmeta/strings/balls_phrases.txt")
var/list/phrase = world.file2list("massmeta/features/smites/string/balls_phrases.txt")
carbon_target.say(pick(phrase))
carbon_target.Paralyze(15 SECONDS)

playsound(target, 'massmeta/sounds/smites/testicular_torsion.ogg', 60)
playsound(target, 'massmeta/features/smites/sound/testicular_torsion.ogg', 60)
carbon_target.visible_message(
span_danger("You can see [carbon_target]'s balls being crushed by an unknown force! You can feel the pain just by looking at it."),
span_userdanger("You can feel like your balls are being crushed!"),
Expand Down
1 change: 1 addition & 0 deletions massmeta/features/smites/includes.dm
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
#include "code\testicular_torsion.dm"
30 changes: 30 additions & 0 deletions massmeta/features/smites/readme.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,30 @@
## Module ID: TESTICULAR_TORSION

### Description:

Добавляет админский Смайт "Testicular torsion".


### TG Proc/File Changes:

- N/A


### Modular Overrides:

- N/A


### Defines:

- N/A


### Included files that are not contained in this module:

- N/A


### Credits:

- N/A
File renamed without changes.
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
/obj/item/clothing/glasses/sunglasses
flash_protect = FLASH_PROTECTION_WELDER
Original file line number Diff line number Diff line change
@@ -1,9 +1,3 @@
/obj/item/clothing/glasses/sunglasses
flash_protect = FLASH_PROTECTION_WELDER

/obj/item/clothing/glasses/hud/spacecop
flash_protect = FLASH_PROTECTION_WELDER

/obj/item/clothing/glasses/hud/health/sunglasses
flash_protect = FLASH_PROTECTION_WELDER

Expand All @@ -12,3 +6,6 @@

/obj/item/clothing/glasses/hud/security/sunglasses
flash_protect = FLASH_PROTECTION_WELDER

/obj/item/clothing/glasses/hud/spacecop
flash_protect = FLASH_PROTECTION_WELDER
3 changes: 3 additions & 0 deletions massmeta/master_files/readme.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
## Тут лежат все наши Модульные Перепределения кода /TG/Station.

⚠️ Обязательно соблюдайте Иерархию папок файловой системы оффов ТГ! ⚠️
41 changes: 17 additions & 24 deletions massmeta/modular_meta.dm
Original file line number Diff line number Diff line change
@@ -1,18 +1,25 @@
/*
*
* Это основной файл куда будут складываться все наши модульные добавления.
* Добавлять только:
* Модули (.dm файлами)
* Сам этот файл добавлен в tgstation.dme
*
*Все Defines файлы лежат в папке "~meta_defines\", однако там идет переопределение пути для того чтобы не ругались тесты.
*
*/
* Это основной файл куда будут складываться все наши модульные добавления.
* Добавлять только:
* Модули (.dm файлами)
* Сам этот файл добавлен в tgstation.dme
*
* Все Defines файлы лежат в папке "~meta_defines\"
*
* Все файлы должны быть в алфавитном порядке
*/

//modular files
// Modular files (covered with tests)

// BEGIN_INCLUDE
#include "features\additional_circuit\includes.dm"
#include "features\hardsuits\includes.dm"
#include "features\smites\includes.dm"
// END_INCLUDE


//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 @@ -83,14 +90,6 @@
#include "code\game\objects\structures\crates_lockers\crates\large.dm"
#include "code\modules\cargo\packs\imports.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"
Expand All @@ -109,9 +108,3 @@
#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"

//smites
#include "features\smites\testicular_torsion.dm"

//sunglasses
#include "features\sunglasses.dm"
10 changes: 10 additions & 0 deletions massmeta/modular_meta_defines.dm
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
/*
* На этот файл идёт переадресация из code/__DEFINES/~meta_defines_include.dm
*
* Все файлы должны быть в алфавитном порядке
*/

// BEGIN_INCLUDE
#include "~meta_defines\butt_furrt.dm"
#include "~meta_defines\inventory.dm"
// END_INCLUDE
12 changes: 12 additions & 0 deletions massmeta/modular_meta_master.dm
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
/*
* Тут все инклюды модульных изменений файлов /TG/Station
*
* Все файлы должны быть в алфавитном порядке
*
* Сам этот файл добавлен в tgstation.dme
*/

// BEGIN_INCLUDE
#include "master_files\code\modules\clothing\glasses\_glasses.dm"
#include "master_files\code\modules\clothing\glasses\hud.dm"
// END_INCLUDE
Loading

0 comments on commit d4b9949

Please sign in to comment.