Skip to content
This repository has been archived by the owner on Aug 30, 2021. It is now read-only.

Commit

Permalink
Merge pull request Mojave-Sun#77 from Hekzder/tgstation-master53
Browse files Browse the repository at this point in the history
Pull from TG Upstream 5/3/2020
  • Loading branch information
Koshenko authored May 4, 2020
2 parents 5263c7e + 9e7cfa5 commit 094067e
Show file tree
Hide file tree
Showing 889 changed files with 45,153 additions and 396,179 deletions.
3 changes: 3 additions & 0 deletions .github/CODEOWNERS
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,9 @@
# In the event that multiple org members are to be informed of changes
# to the same file or dir, add them to the end under Multiple Owners

# bobbahbrown
/code/datums/chatmessage.dm @bobbahbrown

# ChangelingRain

/code/__DEFINES/clockcult.dm @ChangelingRain
Expand Down
24 changes: 24 additions & 0 deletions .github/CONTRIBUTING.md
Original file line number Diff line number Diff line change
Expand Up @@ -194,6 +194,30 @@ This is good:
````
This prevents nesting levels from getting deeper then they need to be.

### Use our time defines

The codebase contains some defines which will automatically multiply a number by the correct amount to get a number in deciseconds. Using these is preffered over using a literal amount in deciseconds.

The defines are as follows:
* SECONDS
* MINUTES
* HOURS

This is bad:
````DM
/datum/datum1/proc/proc1()
if(do_after(mob, 15))
mob.dothing()
````

This is good:
````DM
/datum/datum1/proc/proc1()
if(do_after(mob, 1.5 SECONDS))
mob.dothing()
````


### Develop Secure Code

* Player input must always be escaped safely, we recommend you use stripped_input in all cases where you would use input. Essentially, just always treat input from players as inherently malicious and design with that use case in mind
Expand Down
9 changes: 5 additions & 4 deletions .github/POLICYCONFIG.md
Original file line number Diff line number Diff line change
Expand Up @@ -22,11 +22,12 @@ You can access the string of text through the `get_policy(keyword)` proc, this t

This will return a configured string of text, or blank/null if no policy string is set.

This is also accessible to the user if they use `/client/verb/policy()` which will display to them a list of all the policy texts for keywords applicable to the mob, you can add/modify the list of keywords by modifying the `get_policy_keywords()` proc of a mob type where that is relevant.
This is also accessible to the user if they use `/client/verb/policy()` which will display to them a list of all the policy texts for keywords applicable to the mob, you can add/modify the list of keywords by modifying the `get_policy_keywords()` proc of a mob type where that is relevant. **If you cannot use the verb to get your policy at any point, the feature is considered to NOT be supported.**

### Example
Here is a simple example taken from the slime pyroclastic event
```
### Relaying Specific Policy To Players, Example

Here is a simple example taken from the slime pyroclastic event to relay specific policy.
```DM
var/policy = get_policy(ROLE_PYROCLASTIC_SLIME)
if (policy)
to_chat(S, policy)
Expand Down
38 changes: 0 additions & 38 deletions .github/workflows/autobuild_tgui.yml

This file was deleted.

3 changes: 2 additions & 1 deletion .github/workflows/stale.yml
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,8 @@ jobs:
- uses: actions/stale@v1
with:
repo-token: ${{ secrets.GITHUB_TOKEN }}
stale-pr-message: "This PR has been inactive for long enough to be automatically marked as stale. This means it is at risk of being closed by a maintainer if it is not updated or reviews are not addressed. If your PR is closed as stale, feel free to open a new one after dealing with the issues. This may also be an indication that the maintainers do not have interest in this change, you can try to convince them otherwise, or persist in the doomed world you have created."
stale-pr-message: "This PR has been inactive for long enough to be automatically marked as stale. This means it is at risk of being auto closed in ~ 7 days, please address any outstanding review items and ensure your PR is finished, if these are all true and you are auto-staled anyway, you need to actively ask maintainers if your PR will be merged. Once you have done any of the previous actions then you should request a maintainer remove the stale label on your PR, to reset the stale timer. If you feel no maintainer will respond in that time, you may wish to close this PR youself, while you seek maintainer comment, as you will then be able to reopen the PR yourself"
days-before-stale: 7
days-before-close: 7
stale-pr-label: 'Stale'
exempt-pr-label: 'RED LABEL'
11 changes: 11 additions & 0 deletions .gitlab-ci.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
build:
stage: build
rules:
- if: $CI_MERGE_REQUEST_IID || $CI_COMMIT_REF_NAME == "master"
changes:
- tgui/**/*.js
- tgui/**/*.scss
when: always
image: node:lts
script:
- tgui/bin/tgui --ci
11 changes: 5 additions & 6 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -10,8 +10,10 @@ https://docs.google.com/spreadsheets/d/1OWALWobTJi6JX9uDle_465BzH5ZGVKww1VzKhLo8

## /tg/station codebase

[![Build Status](https://travis-ci.org/tgstation/tgstation.png)](https://travis-ci.org/tgstation/tgstation) [![Krihelimeter](https://www.krihelinator.xyz/badge/tgstation/tgstation)](https://www.krihelinator.xyz)
[![Percentage of issues still open](https://isitmaintained.com/badge/open/tgstation/tgstation.svg)](https://isitmaintained.com/project/tgstation/tgstation "Percentage of issues still open") [![Average time to resolve an issue](https://isitmaintained.com/badge/resolution/tgstation/tgstation.svg)](https://isitmaintained.com/project/tgstation/tgstation "Average time to resolve an issue") ![Coverage](https://img.shields.io/badge/coverage---2%25-red.svg)
[![Build Status](https://travis-ci.org/tgstation/tgstation.png)](https://travis-ci.org/tgstation/tgstation)
[![Percentage of issues still open](https://isitmaintained.com/badge/open/tgstation/tgstation.svg)](https://isitmaintained.com/project/tgstation/tgstation "Percentage of issues still open")
[![Average time to resolve an issue](https://isitmaintained.com/badge/resolution/tgstation/tgstation.svg)](https://isitmaintained.com/project/tgstation/tgstation "Average time to resolve an issue")
![Coverage](https://img.shields.io/badge/coverage---3%25-red.svg)

[![forthebadge](https://forthebadge.com/images/badges/built-with-resentment.svg)](https://forthebadge.com) [![forthebadge](https://forthebadge.com/images/badges/contains-technical-debt.svg)](https://user-images.githubusercontent.com/8171642/50290880-ffef5500-043a-11e9-8270-a2e5b697c86c.png) [![forinfinityandbyond](https://user-images.githubusercontent.com/5211576/29499758-4efff304-85e6-11e7-8267-62919c3688a9.gif)](https://www.reddit.com/r/SS13/comments/5oplxp/what_is_the_main_problem_with_byond_as_an_engine/dclbu1a)

Expand All @@ -21,7 +23,7 @@ https://docs.google.com/spreadsheets/d/1OWALWobTJi6JX9uDle_465BzH5ZGVKww1VzKhLo8
* **Codedocs:** https://codedocs.tgstation13.org/
* **/tg/station Discord:** https://tgstation13.org/phpBB/viewforum.php?f=60
* **Coderbus Discord:** https://discord.gg/Vh8TJp9
* **IRC:** irc://irc.rizon.net/coderbus (dead)
* ~~**IRC:** irc://irc.rizon.net/coderbus~~ (dead)

This is the codebase for the /tg/station flavoured fork of SpaceStation 13.

Expand Down Expand Up @@ -52,9 +54,6 @@ All code before [commit 333c566b88108de218d882840e61928a9b759d8f on 2014/31/12 a

See LICENSE and GPLv3.txt for more details.

tgui clientside is licensed as a subproject under the MIT license.
Font Awesome font files, used by tgui, are licensed under the SIL Open Font License v1.1
tgui assets are licensed under a [Creative Commons Attribution-ShareAlike 4.0 International License](https://creativecommons.org/licenses/by-sa/4.0/).
The TGS3 API is licensed as a subproject under the MIT license.

See the footers of code/\_\_DEFINES/server\_tools.dm, code/modules/server\_tools/st\_commands.dm, and code/modules/server\_tools/st\_inteface.dm for the MIT license.
Expand Down
13 changes: 10 additions & 3 deletions SQL/database_changelog.txt
Original file line number Diff line number Diff line change
@@ -1,15 +1,22 @@
Any time you make a change to the schema files, remember to increment the database schema version. Generally increment the minor number, major should be reserved for significant changes to the schema. Both values go up to 255.

The latest database version is 5.7; The query to update the schema revision table is:
The latest database version is 5.8; The query to update the schema revision table is:

INSERT INTO `schema_revision` (`major`, `minor`) VALUES (5, 7);
INSERT INTO `schema_revision` (`major`, `minor`) VALUES (5, 8);
or
INSERT INTO `SS13_schema_revision` (`major`, `minor`) VALUES (5, 7);
INSERT INTO `SS13_schema_revision` (`major`, `minor`) VALUES (5, 8);

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

-----------------------------------------------------

Version 5.8, 7 April 2020, by Jordie0608
Modified table `messages`, adding column `deleted_ckey` to record who deleted a message.

ALTER TABLE `messages` ADD COLUMN `deleted_ckey` VARCHAR(32) NULL DEFAULT NULL AFTER `deleted`;

-----------------------------------------------------

Version 5.7, 10 January 2020 by Atlanta-Ned
Added ticket table for tracking ahelp tickets in the database.

Expand Down
1 change: 1 addition & 0 deletions SQL/tgstation_schema.sql
Original file line number Diff line number Diff line change
Expand Up @@ -258,6 +258,7 @@ CREATE TABLE `messages` (
`lasteditor` varchar(32) DEFAULT NULL,
`edits` text,
`deleted` tinyint(1) unsigned NOT NULL DEFAULT '0',
`deleted_ckey` VARCHAR(32) NULL DEFAULT NULL,
PRIMARY KEY (`id`),
KEY `idx_msg_ckey_time` (`targetckey`,`timestamp`, `deleted`),
KEY `idx_msg_type_ckeys_time` (`type`,`targetckey`,`adminckey`,`timestamp`, `deleted`),
Expand Down
1 change: 1 addition & 0 deletions SQL/tgstation_schema_prefixed.sql
Original file line number Diff line number Diff line change
Expand Up @@ -258,6 +258,7 @@ CREATE TABLE `SS13_messages` (
`lasteditor` varchar(32) DEFAULT NULL,
`edits` text,
`deleted` tinyint(1) unsigned NOT NULL DEFAULT '0',
`deleted_ckey` VARCHAR(32) NULL DEFAULT NULL,
PRIMARY KEY (`id`),
KEY `idx_msg_ckey_time` (`targetckey`,`timestamp`, `deleted`),
KEY `idx_msg_type_ckeys_time` (`type`,`targetckey`,`adminckey`,`timestamp`, `deleted`),
Expand Down
35 changes: 16 additions & 19 deletions _maps/RandomRuins/SpaceRuins/forgottenship.dmm
Original file line number Diff line number Diff line change
Expand Up @@ -9,12 +9,11 @@
/area/ruin/unpowered/no_grav)
"ac" = (
/obj/machinery/porta_turret/syndicate/energy{
armor = list("melee" = 80, "bullet" = 30, "laser" = 50, "energy" = 50, "bomb" = 30, "bio" = 0, "rad" = 0, "fire" = 100, "acid" = 100);
armor = list("melee" = 40, "bullet" = 40, "laser" = 60, "energy" = 60, "bomb" = 60, "bio" = 0, "rad" = 0, "fire" = 100, "acid" = 100);
dir = 4;
name = "Syndicate Ship Turret";
on = 0;
throw_speed = 4;
use_power = 1
shot_delay = 10
},
/turf/closed/wall/r_wall/syndicate/nodiagonal,
/area/ruin/space/has_grav/syndicate_forgotten_ship)
Expand Down Expand Up @@ -133,10 +132,12 @@
secure = 1
},
/obj/item/coin/antagtoken,
/obj/item/coin/gold,
/obj/item/encryptionkey/syndicate,
/obj/item/encryptionkey/syndicate,
/obj/item/encryptionkey/syndicate,
/obj/item/dnainjector/thermal,
/obj/item/storage/box/firingpins,
/obj/item/storage/box/firingpins,
/obj/item/storage/box/firingpins/syndicate,
/obj/item/storage/box/firingpins/syndicate,
/turf/open/floor/mineral/plastitanium/red,
/area/ruin/space/has_grav/syndicate_forgotten_ship)
"az" = (
Expand All @@ -150,7 +151,6 @@
/obj/machinery/light{
dir = 1
},
/obj/item/aiModule/reset/purge,
/obj/structure/table/reinforced,
/turf/open/floor/mineral/plastitanium/red,
/area/ruin/space/has_grav/syndicate_forgotten_ship)
Expand Down Expand Up @@ -244,7 +244,7 @@
/area/ruin/space/has_grav/syndicate_forgotten_ship)
"aN" = (
/obj/item/stack/sheet/mineral/uranium{
amount = 50
amount = 15
},
/obj/structure/cable,
/obj/machinery/light{
Expand Down Expand Up @@ -764,12 +764,11 @@
/area/ruin/space/has_grav/syndicate_forgotten_ship)
"ci" = (
/obj/machinery/porta_turret/syndicate/energy{
armor = list("melee" = 80, "bullet" = 30, "laser" = 50, "energy" = 50, "bomb" = 30, "bio" = 0, "rad" = 0, "fire" = 100, "acid" = 100);
armor = list("melee" = 40, "bullet" = 40, "laser" = 60, "energy" = 60, "bomb" = 60, "bio" = 0, "rad" = 0, "fire" = 100, "acid" = 100);
dir = 4;
name = "Syndicate Ship Turret";
on = 0;
throw_speed = 4;
use_power = 1
shot_delay = 10
},
/turf/closed/wall/r_wall/syndicate,
/area/ruin/space/has_grav/syndicate_forgotten_ship)
Expand All @@ -785,7 +784,7 @@
/obj/machinery/light{
dir = 1
},
/obj/item/aiModule/core/freeformcore,
/obj/item/aiModule/core/full/cybersun,
/obj/structure/table/reinforced,
/turf/open/floor/mineral/plastitanium/red,
/area/ruin/space/has_grav/syndicate_forgotten_ship)
Expand Down Expand Up @@ -840,9 +839,7 @@
/turf/open/floor/mineral/plastitanium,
/area/ruin/space/has_grav/syndicate_forgotten_cargopod)
"ct" = (
/obj/machinery/vending/medical/syndicate_access{
premium = list(/obj/item/reagent_containers/medigel/instabitaluri = 2, /obj/item/storage/pill_bottle/psicodine = 2, /obj/item/reagent_containers/hypospray/medipen = 3, /obj/item/storage/belt/medical = 3, /obj/item/sensor_device = 2, /obj/item/pinpointer/crew = 2, /obj/item/storage/firstaid = 5, /obj/item/storage/firstaid/advanced = 2, /obj/item/storage/firstaid/tactical = 1, /obj/item/shears = 1, /obj/item/plunger/reinforced = 2)
},
/obj/machinery/vending/medical/syndicate_access/cybersun,
/turf/open/floor/plastic,
/area/ruin/space/has_grav/syndicate_forgotten_ship)
"cu" = (
Expand Down Expand Up @@ -889,10 +886,10 @@
req_one_access_txt = "150"
},
/obj/item/stack/sheet/mineral/titanium{
amount = 50
amount = 40
},
/obj/item/stack/sheet/mineral/uranium{
amount = 20
amount = 15
},
/turf/open/floor/pod/dark,
/area/ruin/space/has_grav/powered/syndicate_forgotten_vault)
Expand Down Expand Up @@ -1241,10 +1238,10 @@
req_one_access_txt = "150"
},
/obj/item/stack/sheet/mineral/gold{
amount = 50
amount = 30
},
/obj/item/stack/sheet/mineral/silver{
amount = 50
amount = 30
},
/obj/machinery/light,
/turf/open/floor/pod/dark,
Expand Down
24 changes: 7 additions & 17 deletions _maps/RandomRuins/SpaceRuins/hellfactory.dmm
Original file line number Diff line number Diff line change
Expand Up @@ -969,11 +969,6 @@
/obj/effect/decal/cleanable/blood/old,
/turf/open/floor/plastic,
/area/ruin/space/has_grav/hellfactory)
"lv" = (
/obj/structure/cable,
/obj/structure/cable,
/turf/closed/wall/r_wall,
/area/ruin/space/has_grav/hellfactory)
"lR" = (
/obj/machinery/light/floor,
/obj/effect/turf_decal/bot_white/right,
Expand Down Expand Up @@ -1036,10 +1031,6 @@
/obj/effect/decal/cleanable/cobweb/cobweb2,
/turf/open/floor/holofloor/wood,
/area/ruin/space/has_grav/hellfactory)
"zI" = (
/obj/structure/cable,
/turf/closed/wall/r_wall/rust,
/area/ruin/space/has_grav/hellfactory)
"BC" = (
/obj/machinery/light/floor,
/obj/effect/turf_decal/bot_white/left,
Expand All @@ -1057,7 +1048,6 @@
/area/ruin/space/has_grav/hellfactory)
"Gs" = (
/obj/structure/cable,
/obj/structure/cable,
/turf/closed/wall/r_wall/rust,
/area/ruin/space/has_grav/hellfactory)
"GE" = (
Expand Down Expand Up @@ -1476,8 +1466,8 @@ aJ
aX
fj
EP
zI
lv
Gs
EP
by
by
bK
Expand All @@ -1504,7 +1494,7 @@ Yd
ah
aA
bn
zI
Gs
by
Wh
Fs
Expand Down Expand Up @@ -1561,12 +1551,12 @@ aB
Gs
EP
EP
zI
Gs
EP
zI
Gs
EP
Gs
EP
zI
lv
Zh
cA
by
Expand Down
4 changes: 2 additions & 2 deletions _maps/RandomRuins/SpaceRuins/spacehotel.dmm
Original file line number Diff line number Diff line change
Expand Up @@ -3601,7 +3601,7 @@
/obj/machinery/atmospherics/pipe/manifold/supply/hidden{
dir = 1
},
/obj/structure/sign/plaques/atmos{
/obj/structure/plaque/static_plaque/atmos{
pixel_y = 32
},
/turf/open/floor/plating,
Expand All @@ -3626,7 +3626,7 @@
"lb" = (
/obj/structure/table,
/obj/machinery/recharger,
/obj/structure/sign/plaques/golden{
/obj/structure/plaque/static_plaque/golden{
pixel_x = -32
},
/obj/effect/turf_decal/tile/red{
Expand Down
Loading

0 comments on commit 094067e

Please sign in to comment.