Skip to content

Commit d2ec953

Browse files
committed
Upstream Merge June 14th (The Final PR) (#103)
* June 14th upstream merge
1 parent 97d67ef commit d2ec953

File tree

2,150 files changed

+262250
-247523
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

2,150 files changed

+262250
-247523
lines changed

.github/CODEOWNERS

+3-3
Original file line numberDiff line numberDiff line change
@@ -25,8 +25,7 @@
2525
/code/modules/admin/verbs/adminhelp.dm @Cyberboss
2626
/code/modules/admin/verbs/adminpm.dm @Cyberboss
2727
/code/modules/mapping/ @Cyberboss
28-
/tools/LinuxOneShot/ @Cyberboss
29-
/tools/tgs4_scripts/ @Cyberboss
28+
3029

3130
# Mothblocks
3231

@@ -54,6 +53,7 @@
5453
/code/controllers/subsystem/timer.dm @MrStonedOne
5554
/code/controllers/configuration/entries @MrStonedOne
5655
/config/ @MrStonedOne
56+
/tools/build/ @MrStonedOne
5757

5858
# ninjanomnom
5959

@@ -81,7 +81,7 @@
8181

8282
# Multiple Owners
8383

84-
/icons/ @Twaticus @ShizCalev
84+
/icons/ @Twaticus @ShizCalev @Krysonism
8585
/code/controllers/subsystem/air.dm @LemonInTheDark @MrStonedOne
8686
/_maps/ @sqnztb
8787
/_maps/ @EOBGames @ShizCalev @Maurukas

.github/CONTRIBUTING.md

+3-3
Original file line numberDiff line numberDiff line change
@@ -463,7 +463,7 @@ All procs that are registered to listen for signals using `RegisterSignal()` mus
463463
```
464464
This is to ensure that it is clear the proc handles signals and turns on a lint to ensure it does not sleep.
465465

466-
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.
466+
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.
467467

468468
### Enforcing parent calling
469469
When adding new signals to root level procs, eg;
@@ -576,7 +576,7 @@ Good:
576576
off_overlay = iconstate2appearance(icon, "off")
577577
broken_overlay = icon2appearance(broken_icon)
578578
if (stat & broken)
579-
add_overlay(broken_overlay)
579+
add_overlay(broken_overlay)
580580
return
581581
if (is_on)
582582
add_overlay(on_overlay)
@@ -599,7 +599,7 @@ Bad:
599599
if(isnull(our_overlays)
600600
our_overlays = list("on" = iconstate2appearance(overlay_icon, "on"), "off" = iconstate2appearance(overlay_icon, "off"), "broken" = iconstate2appearance(overlay_icon, "broken"))
601601
if (stat & broken)
602-
add_overlay(our_overlays["broken"])
602+
add_overlay(our_overlays["broken"])
603603
return
604604
...
605605
```

.github/PULL_REQUEST_TEMPLATE.md

+2-1
Original file line numberDiff line numberDiff line change
@@ -11,8 +11,9 @@
1111

1212
## Changelog
1313
:cl:
14-
add: Added new things
14+
add: Added new mechanics or gameplay changes
1515
add: Added more things
16+
expansion: Expands content of an existing thing
1617
del: Removed old things
1718
qol: made something easier to use
1819
balance: rebalanced something

.github/gbp.toml

+2-1
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@ reset_label = "GBP: Reset"
55
"Atomic" = 2
66
"Balance/Rebalance" = -8
77
"Code Improvement" = 2
8-
"Feature" = -10
8+
"Mechanic" = -10
99
"Feedback" = 2
1010
"Fix" = 3
1111
"Grammar and Formatting" = 1
@@ -14,6 +14,7 @@ reset_label = "GBP: Reset"
1414
"Priority: CRITICAL" = 20
1515
"Priority: High" = 15
1616
"Quality of Life" = 1
17+
"Content Expansion" = -3
1718
"Refactor" = 10
1819
"Sound" = 3
1920
"Sprites" = 3

.github/workflows/ci_suite.yml

+2-4
Original file line numberDiff line numberDiff line change
@@ -58,9 +58,7 @@ jobs:
5858
bash tools/ci/install_byond.sh
5959
source $HOME/BYOND/byond/bin/byondsetup
6060
python3 tools/ci/template_dm_generator.py
61-
tools/build/build
62-
env:
63-
CBT_BUILD_MODE : ALL_MAPS
61+
tools/build/build dm -DCIBUILDING -DCITESTING -DALL_MAPS
6462
6563
run_all_tests:
6664
if: "!contains(github.event.head_commit.message, '[ci skip]')"
@@ -98,7 +96,7 @@ jobs:
9896
run: |
9997
bash tools/ci/install_byond.sh
10098
source $HOME/BYOND/byond/bin/byondsetup
101-
tools/build/build
99+
tools/build/build -DCIBUILDING
102100
bash tools/ci/run_server.sh
103101
env:
104102
CBT_BUILD_MODE: TEST_RUN

SQL/database_changelog.txt

+64-2
Original file line numberDiff line numberDiff line change
@@ -2,12 +2,74 @@ Any time you make a change to the schema files, remember to increment the databa
22

33
The latest database version is 5.14; The query to update the schema revision table is:
44

5-
INSERT INTO `schema_revision` (`major`, `minor`) VALUES (5, 14);
5+
INSERT INTO `schema_revision` (`major`, `minor`) VALUES (5, 15);
66
or
7-
INSERT INTO `SS13_schema_revision` (`major`, `minor`) VALUES (5, 14);
7+
INSERT INTO `SS13_schema_revision` (`major`, `minor`) VALUES (5, 15);
88

99
In any query remember to add a prefix to the table names if you use one.
1010

11+
-----------------------------------------------------
12+
Version 5.15, 2 June 2021, by Mothblocks
13+
Added verified admin connection log used for 2FA
14+
15+
```
16+
DROP TABLE IF EXISTS `admin_connections`;
17+
CREATE TABLE `admin_connections` (
18+
`id` INT NOT NULL AUTO_INCREMENT,
19+
`ckey` VARCHAR(32) NOT NULL,
20+
`ip` INT(11) UNSIGNED NOT NULL,
21+
`cid` VARCHAR(32) NOT NULL,
22+
`verification_time` DATETIME NULL,
23+
PRIMARY KEY (`id`),
24+
UNIQUE INDEX `unique_constraints` (`ckey`, `ip`, `cid`));
25+
```
26+
27+
-----------------------------------------------------
28+
29+
Version 5.14, xx May 2021, by Anturke
30+
Added exploration drone adventure table
31+
32+
```
33+
DROP TABLE IF EXISTS `text_adventures`;
34+
CREATE TABLE `text_adventures` (
35+
`id` int(11) NOT NULL AUTO_INCREMENT,
36+
`adventure_data` LONGTEXT NOT NULL,
37+
`uploader` VARCHAR(32) NOT NULL,
38+
`timestamp` timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP,
39+
`approved` TINYINT(1) NOT NULL DEFAULT FALSE,
40+
PRIMARY KEY (`id`)
41+
) ENGINE=InnoDB;
42+
```
43+
44+
-----------------------------------------------------
45+
46+
Version 5.13, 30 April 2021, by Atlanta Ned
47+
Added the `citation` table for tracking security citations in the database.
48+
49+
```
50+
CREATE TABLE `citation` (
51+
`id` INT(10) UNSIGNED NOT NULL AUTO_INCREMENT,
52+
`round_id` INT(11) UNSIGNED NOT NULL,
53+
`server_ip` INT(11) UNSIGNED NOT NULL,
54+
`server_port` INT(11) UNSIGNED NOT NULL,
55+
`citation` TEXT NOT NULL COLLATE 'utf8mb4_general_ci',
56+
`action` VARCHAR(20) NOT NULL DEFAULT '' COLLATE 'utf8mb4_general_ci',
57+
`sender` VARCHAR(32) NOT NULL DEFAULT '' COLLATE 'utf8mb4_general_ci',
58+
`sender_ic` VARCHAR(64) NOT NULL DEFAULT '' COMMENT 'Longer because this is the character name, not the ckey' COLLATE 'utf8mb4_general_ci',
59+
`recipient` VARCHAR(64) NOT NULL DEFAULT '' COMMENT 'Longer because this is the character name, not the ckey' COLLATE 'utf8mb4_general_ci',
60+
`crime` TEXT NOT NULL COLLATE 'utf8mb4_general_ci',
61+
`fine` INT(4) NULL DEFAULT NULL,
62+
`paid` INT(4) NULL DEFAULT '0',
63+
`timestamp` DATETIME NOT NULL,
64+
PRIMARY KEY (`id`) USING BTREE,
65+
UNIQUE INDEX `idx_constraints` (`round_id`, `server_ip`, `server_port`, `citation`(100)) USING BTREE
66+
)
67+
COLLATE='utf8mb4_general_ci'
68+
ENGINE=InnoDB
69+
AUTO_INCREMENT=1
70+
;
71+
```
72+
1173
-----------------------------------------------------
1274

1375
Version 5.14, xx May 2021, by Anturke

SQL/tgstation_schema.sql

+14
Original file line numberDiff line numberDiff line change
@@ -630,6 +630,20 @@ CREATE TABLE `text_adventures` (
630630
PRIMARY KEY (`id`)
631631
) ENGINE=InnoDB;
632632

633+
--
634+
-- Table structure for table `admin_connections`
635+
--
636+
DROP TABLE IF EXISTS `admin_connections`;
637+
CREATE TABLE `admin_connections` (
638+
`id` INT NOT NULL AUTO_INCREMENT,
639+
`ckey` VARCHAR(32) NOT NULL,
640+
`ip` INT(11) UNSIGNED NOT NULL,
641+
`cid` VARCHAR(32) NOT NULL,
642+
`verification_time` DATETIME NULL,
643+
PRIMARY KEY (`id`),
644+
UNIQUE INDEX `unique_constraints` (`ckey`, `ip`, `cid`)
645+
) ENGINE=InnoDB;
646+
633647
/*!40101 SET SQL_MODE=@OLD_SQL_MODE */;
634648
/*!40014 SET FOREIGN_KEY_CHECKS=@OLD_FOREIGN_KEY_CHECKS */;
635649
/*!40014 SET UNIQUE_CHECKS=@OLD_UNIQUE_CHECKS */;

SQL/tgstation_schema_prefixed.sql

+14
Original file line numberDiff line numberDiff line change
@@ -630,6 +630,20 @@ CREATE TABLE `SS13_text_adventures` (
630630
PRIMARY KEY (`id`)
631631
) ENGINE=InnoDB;
632632

633+
--
634+
-- Table structure for table `admin_connections`
635+
--
636+
DROP TABLE IF EXISTS `SS13_admin_connections`;
637+
CREATE TABLE `SS13_admin_connections` (
638+
`id` INT NOT NULL AUTO_INCREMENT,
639+
`ckey` VARCHAR(32) NOT NULL,
640+
`ip` INT(11) UNSIGNED NOT NULL,
641+
`cid` VARCHAR(32) NOT NULL,
642+
`verification_time` DATETIME NULL,
643+
PRIMARY KEY (`id`),
644+
UNIQUE INDEX `unique_constraints` (`ckey`, `ip`, `cid`)
645+
) ENGINE=InnoDB;
646+
633647
/*!40101 SET SQL_MODE=@OLD_SQL_MODE */;
634648
/*!40014 SET FOREIGN_KEY_CHECKS=@OLD_FOREIGN_KEY_CHECKS */;
635649
/*!40014 SET UNIQUE_CHECKS=@OLD_UNIQUE_CHECKS */;

0 commit comments

Comments
 (0)