Skip to content

Commit

Permalink
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge branch 'translate' into kitchen-translate
Browse files Browse the repository at this point in the history
msw7007 authored Aug 1, 2024
2 parents 04f3681 + 2b0ae2d commit 79cc275
Showing 1,528 changed files with 59,702 additions and 25,924 deletions.
2 changes: 1 addition & 1 deletion .github/PULL_REQUEST_TEMPLATE.md
Original file line number Diff line number Diff line change
@@ -11,7 +11,7 @@

## Changelog

<!-- If your PR modifies aspects of the game that can be concretely observed by players or admins you should add a changelog. If your change does NOT meet this description, remove this section. Be sure to properly mark your PRs to prevent unnecessary GBP loss. You can read up on GBP and it's effects on PRs in the tgstation guides for contributors. Please note that maintainers freely reserve the right to remove and add tags should they deem it appropriate. You can attempt to finagle the system all you want, but it's best to shoot for clear communication right off the bat. -->
<!-- If your PR modifies aspects of the game that can be concretely observed by players or admins you should add a changelog. If your change does NOT meet this description, remove this section. Be sure to properly mark your PRs to prevent unnecessary GBP loss. You can read up on GBP and its effects on PRs in the tgstation guides for contributors. Please note that maintainers freely reserve the right to remove and add tags should they deem it appropriate. You can attempt to finagle the system all you want, but it's best to shoot for clear communication right off the bat. -->

:cl:
add: Added new mechanics or gameplay changes
4 changes: 2 additions & 2 deletions .github/guides/AUTODOC.md
Original file line number Diff line number Diff line change
@@ -40,7 +40,7 @@ public functions rely on to implement logic
When documenting a proc, we give a short one line description (as this is shown
next to the proc definition in the list of all procs for a type or global
namespace), then a longer paragraph which will be shown when the user clicks on
the proc to jump to it's definition
the proc to jump to its definition
```
/**
* Short description of the proc
@@ -59,7 +59,7 @@ just going to be the typepath of the class, as dmdoc uses that by default

Then we give a short oneline description of the class

Finally we give a longer multi paragraph description of the class and it's details
Finally we give a longer multi paragraph description of the class and its details
```
/**
* # Classname (Can be omitted if it's just going to be the typepath)
18 changes: 9 additions & 9 deletions .github/guides/STANDARDS.md
Original file line number Diff line number Diff line change
@@ -100,11 +100,11 @@ While we normally encourage (and in some cases, even require) bringing out of da
### RegisterSignal()

#### PROC_REF Macros
When referencing procs in RegisterSignal, Callback and other procs you should use PROC_REF, TYPE_PROC_REF and GLOBAL_PROC_REF macros.
When referencing procs in RegisterSignal, Callback and other procs you should use PROC_REF, TYPE_PROC_REF and GLOBAL_PROC_REF macros.
They ensure compilation fails if the reffered to procs change names or get removed.
The macro to be used depends on how the proc you're in relates to the proc you want to use:

PROC_REF if the proc you want to use is defined on the current proc type or any of it's ancestor types.
PROC_REF if the proc you want to use is defined on the current proc type or any of its ancestor types.
Example:
```
/mob/proc/funny()
@@ -129,7 +129,7 @@ Example:
/mob/subtype/proc/do_something()
var/obj/thing/x = new()
// we're referring to /obj/thing proc inside /mob/subtype proc
RegisterSignal(x, COMSIG_FAKE, TYPE_PROC_REF(/obj/thing, funny))
RegisterSignal(x, COMSIG_FAKE, TYPE_PROC_REF(/obj/thing, funny))
```

GLOBAL_PROC_REF if the proc you want to use is a global proc.
@@ -154,7 +154,7 @@ All procs that are registered to listen for signals using `RegisterSignal()` mus
```
This is to ensure that it is clear the proc handles signals and turns on a lint to ensure it does not sleep.

Any sleeping behaviour that you need to perform inside a `SIGNAL_HANDLER` proc must be called asynchronously (e.g. with `INVOKE_ASYNC()`) or be redone to work asynchronously.
Any sleeping behaviour that you need to perform inside a `SIGNAL_HANDLER` proc must be called asynchronously (e.g. with `INVOKE_ASYNC()`) or be redone to work asynchronously.

#### `override`

@@ -280,7 +280,7 @@ Good:
off_overlay = iconstate2appearance(icon, "off")
broken_overlay = icon2appearance(broken_icon)
if (stat & broken)
add_overlay(broken_overlay)
add_overlay(broken_overlay)
return
if (is_on)
add_overlay(on_overlay)
@@ -304,7 +304,7 @@ Bad:
if (isnull(our_overlays))
our_overlays = list("on" = iconstate2appearance(overlay_icon, "on"), "off" = iconstate2appearance(overlay_icon, "off"), "broken" = iconstate2appearance(overlay_icon, "broken"))
if (stat & broken)
add_overlay(our_overlays["broken"])
add_overlay(our_overlays["broken"])
return
...
```
@@ -391,7 +391,7 @@ At its best, it can make some very common patterns easy to use, and harder to me
some_code()
if (do_something_else())
. = TRUE // Uh oh, what's going on!
// even
// more
// code
@@ -468,7 +468,7 @@ Meaning:
to_chat(world, uh_oh())
```

...will print `woah!`.
...will print `woah!`.

For this reason, it is acceptable for `.` to be used in places where consumers can reasonably continue in the event of a runtime.

@@ -494,7 +494,7 @@ If you are using `.` in this case (or for another case that might be acceptable,
. = ..()
if (. == BIGGER_SUPER_ATTACK)
return BIGGER_SUPER_ATTACK // More readable than `.`
// Due to how common it is, most uses of `. = ..()` do not need a trailing `return .`
```

73 changes: 49 additions & 24 deletions .github/labeler.yml
Original file line number Diff line number Diff line change
@@ -1,40 +1,65 @@
'TGUI':
- changed-files:
- any-glob-to-any-file: 'tgui/**'
- any-glob-to-any-file: 'tgui/**'

'Звук':
':sound: Звук':
- changed-files:
- any-glob-to-any-file: '**/*.ogg'
- any-glob-to-any-file: '**/*.ogg'

'Спрайты':
':world_map: Изменение Карты':
- all:
- changed-files:
- any-glob-to-any-file: '**/*.dmm'

':paintbrush: Спрайты':
- changed-files:
- any-glob-to-any-file: ['**/*.dmi', '**/*.png']
- any-glob-to-any-file: '**/*.dmi'

'Изменение Карты':
':guitar: Инструменты':
- changed-files:
- any-glob-to-any-file: '**/*.dmm'
- any-glob-to-any-file: ['.gihub/**', 'tools/**', '.vscode/**', '.bin/**']

'НЕ МОДУЛЬНО':
':floppy_disk: Изменение конфига':
- changed-files:
- any-glob-to-any-file: 'config/**'

':neckbeard: Документация':
- changed-files:
- any-glob-to-any-file: '**/*.md'

':cd: SQL':
- changed-files:
- any-glob-to-any-file: 'SQL/**'

':feelsgood: Частичная модульность':
- all:
- changed-files:
- any-glob-to-any-file: ['code/**', 'icons/**', 'sounds/**', '_maps/map_files/**', 'tgui/**']
- any-glob-to-any-file: 'modular_bandastation/**'
- base-branch: 'master'
- head-branch: '!merge-upstream'

':finnadie: НЕ МОДУЛЬНО':
- all:
- changed-files:
- any-glob-to-any-file: ['code/**', 'icons/**', 'sounds/**', '_maps/map_files/**']
- all-globs-to-all-files: '!modular_bandastation/**'
- base-branch: 'master'
- head-branch: '!merge-upstream'

':pray: Слияние с восходящим потоком':
- all:
- changed-files:
- any-glob-to-any-file: 'code/**'
- base-branch: 'master'
- head-branch: 'merge-upstream'

'Перевод':
':pencil: Перевод':
- base-branch: 'translate'

'Инструменты':
- changed-files:
- any-glob-to-any-file: ['.gihub/workflows/**', 'tools/**']

'Изменение конфига':
- changed-files:
- any-glob-to-any-file: 'config/**'
':wrench: Фикс':
- head-branch: ['^fix', 'fix']

'Документация':
- changed-files:
- any-glob-to-any-file: '**/*.md'
':trollface: Фича':
- head-branch: ['^feat', 'feat']

'SQL':
- changed-files:
- any-glob-to-any-file: 'SQL/**'
':shipit: Улучшение':
- head-branch: ['^tweak', 'tweak']
4 changes: 2 additions & 2 deletions .github/workflows/run_integration_tests.yml
Original file line number Diff line number Diff line change
@@ -46,9 +46,9 @@ jobs:
- name: Install rust-g
run: |
bash tools/ci/install_rust_g.sh
- name: Install auxlua
- name: Install dreamluau
run: |
bash tools/ci/install_auxlua.sh
bash tools/ci/install_dreamluau.sh
- name: Configure version
run: |
echo "BYOND_MAJOR=${{ inputs.major }}" >> $GITHUB_ENV
4 changes: 2 additions & 2 deletions .github/workflows/update_tgs_dmapi.yml
Original file line number Diff line number Diff line change
@@ -28,8 +28,8 @@ jobs:
- name: Commit and Push
continue-on-error: true
run: |
git config user.name tgstation-server
git config user.email tgstation-server@users.noreply.github.com
git config user.name "tgstation-server-ci[bot]"
git config user.email "161980869+tgstation-server-ci[bot]@users.noreply.github.com"
git add .
git commit -m 'Update TGS DMAPI'
git push -f -u origin tgs-dmapi-update
2 changes: 1 addition & 1 deletion .gitignore
Original file line number Diff line number Diff line change
@@ -214,7 +214,7 @@ Temporary Items
# Built auxtools libraries and intermediate files
aux*.dll
libaux*.so
aux*.pdb
*.pdb

# byond-tracy, we intentionally do not ship this and do not want to maintain it
# https://github.com/mafemergency/byond-tracy/
17 changes: 17 additions & 0 deletions SQL/bandastation/bandastation_update.sql
Original file line number Diff line number Diff line change
@@ -38,3 +38,20 @@ CREATE TABLE `admin_wl` (
PRIMARY KEY (`id`),
KEY `ckey` (`ckey`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4;

--
-- Table structure for table `budget`
--
DROP TABLE IF EXISTS `budget`;
CREATE TABLE `budget` (
`id` INT(11) NOT NULL AUTO_INCREMENT,
`date` DATETIME NOT NULL DEFAULT current_timestamp(),
`ckey` VARCHAR(32) NULL DEFAULT NULL COLLATE 'utf8mb4_unicode_ci',
`amount` INT(10) UNSIGNED NOT NULL,
`source` VARCHAR(32) NOT NULL COLLATE 'utf8mb4_general_ci',
`date_start` DATETIME NOT NULL DEFAULT current_timestamp(),
`date_end` DATETIME NULL DEFAULT (current_timestamp() + interval 1 month),
`is_valid` TINYINT(1) NOT NULL DEFAULT '1',
`discord_id` bigint(20) DEFAULT NULL,
PRIMARY KEY (`id`) USING BTREE
) COLLATE='utf8mb4_general_ci' ENGINE=InnoDB;
24 changes: 21 additions & 3 deletions SQL/bandastation/database_changelog.md
Original file line number Diff line number Diff line change
@@ -2,17 +2,35 @@ Any time you make a change to the schema files, remember to increment the databa

Make sure to also update `DB_MAJOR_VERSION_220` and `DB_MINOR_VERSION_220`, which can be found in `code/modular_bandastation/_defines220/code/defines/subsystems.dm`.

The latest database version is 1.1; The query to update the schema revision table is:
The latest database version is 1.2; The query to update the schema revision table is:

```sql
INSERT INTO `schema_revision_220` (`major`, `minor`) VALUES (1, 1);
INSERT INTO `schema_revision_220` (`major`, `minor`) VALUES (1, 2);
```
or

```sql
INSERT INTO `SS13_schema_revision_220` (`major`, `minor`) VALUES (1, 1);
INSERT INTO `SS13_schema_revision_220` (`major`, `minor`) VALUES (1, 2);
```

-----------------------------------------------------
Version 1.2, 22 July 2024, by larentoun
Created the table: budget

```sql
CREATE TABLE `budget` (
`id` INT(11) NOT NULL AUTO_INCREMENT,
`date` DATETIME NOT NULL DEFAULT current_timestamp(),
`ckey` VARCHAR(32) NULL DEFAULT NULL COLLATE 'utf8mb4_unicode_ci',
`amount` INT(10) UNSIGNED NOT NULL,
`source` VARCHAR(32) NOT NULL COLLATE 'utf8mb4_general_ci',
`date_start` DATETIME NOT NULL DEFAULT current_timestamp(),
`date_end` DATETIME NULL DEFAULT (current_timestamp() + interval 1 month),
`is_valid` TINYINT(1) NOT NULL DEFAULT '1',
`discord_id` bigint(20) DEFAULT NULL,
PRIMARY KEY (`id`) USING BTREE
) COLLATE='utf8mb4_general_ci' ENGINE=InnoDB;
```
-----------------------------------------------------
Version 1.1, 17 April 2024, by larentoun
Created the tables: schema_revision220, ckey_whitelist, admin_wl
Original file line number Diff line number Diff line change
@@ -25,8 +25,8 @@
/obj/item/clothing/shoes/galoshes{
pixel_y = -5
},
/obj/item/flashlight/eyelight{
pixel_y = 11
/obj/item/flashlight{
pixel_y = 8
},
/turf/open/floor/plating/icemoon,
/area/ruin/plasma_facility/operations)
Original file line number Diff line number Diff line change
@@ -4426,6 +4426,9 @@
/obj/item/stack/sheet/plastitaniumglass{
amount = 15
},
/obj/item/holosign_creator/atmos,
/obj/item/circuitboard/machine/thermomachine,
/obj/item/circuitboard/machine/thermomachine,
/turf/open/floor/iron,
/area/ruin/syndicate_lava_base/engineering)
"YP" = (
Original file line number Diff line number Diff line change
@@ -211,7 +211,9 @@
/obj/item/storage/toolbox/syndicate,
/obj/item/pipe_dispenser,
/obj/item/rpd_upgrade/unwrench,
/obj/item/circuitboard/machine/emitter,
/obj/structure/rack,
/obj/item/circuitboard/machine/emitter,
/turf/open/floor/iron/dark,
/area/ruin/syndicate_lava_base/testlab)
"uT" = (
4 changes: 2 additions & 2 deletions _maps/RandomRuins/SpaceRuins/derelict_sulaco.dmm
Original file line number Diff line number Diff line change
@@ -72,7 +72,7 @@
/turf/open/floor/iron/smooth_edge,
/area/ruin/space/has_grav/derelictsulaco)
"dk" = (
/obj/machinery/keycard_auth/directional/south,
/obj/machinery/keycard_auth/wall_mounted/directional/south,
/obj/item/stack/sheet/mineral/sandbags{
amount = 2
},
@@ -1110,7 +1110,7 @@
/area/template_noop)
"KS" = (
/obj/machinery/door/window/brigdoor/left/directional/east,
/obj/machinery/keycard_auth/directional/north,
/obj/machinery/keycard_auth/wall_mounted/directional/north,
/obj/structure/barricade/sandbags,
/turf/open/floor/iron/stairs{
dir = 8
Loading

0 comments on commit 79cc275

Please sign in to comment.