-
Notifications
You must be signed in to change notification settings - Fork 518
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge branch 'master' into theorigin
- Loading branch information
Showing
165 changed files
with
35,603 additions
and
75,641 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,36 +1,53 @@ | ||
name: "Build Changelog" | ||
on: | ||
schedule: | ||
- cron: "0 0 * * *" | ||
workflow_dispatch: | ||
push: | ||
branches: | ||
- master | ||
paths: | ||
- 'html/changelogs/**' | ||
|
||
jobs: | ||
update-changelog: | ||
concurrency: changelog | ||
compile: | ||
name: "Compile changelogs" | ||
runs-on: ubuntu-22.04 | ||
if: "!contains(github.event.head_commit.message, '[ci skip]')" | ||
steps: | ||
- name: Checkout Repository | ||
uses: actions/checkout@v3 | ||
with: | ||
token: ${{ secrets.BOT_TOKEN_AURORA }} | ||
|
||
- name: Update Changelogs | ||
run: | | ||
tools/bootstrap/python tools/GenerateChangelog/ss13_genchangelog.py html/changelog.html html/changelogs | ||
- name: Commit Changelogs | ||
run: | | ||
git pull origin master | ||
git config --local user.email "[email protected]" | ||
git config --local user.name "AuroraBuildBot" | ||
git add --force html/* | ||
git commit -m "Automatic Changelog compile [ci skip]" -a || true | ||
- name: Push | ||
uses: ad-m/github-push-action@master | ||
with: | ||
github_token: ${{ secrets.BOT_TOKEN_AURORA }} | ||
- name: "Check for BOT_TOKEN_AURORA secret and pass true to output if it exists to be checked by later steps" | ||
id: value_holder | ||
env: | ||
ENABLER_SECRET: ${{ secrets.BOT_TOKEN_AURORA }} | ||
run: | | ||
unset SECRET_EXISTS | ||
if [ -n "$ENABLER_SECRET" ]; then SECRET_EXISTS=true ; fi | ||
echo "ACTIONS_ENABLED=$SECRET_EXISTS" >> $GITHUB_OUTPUT | ||
- name: "Setup python" | ||
if: steps.value_holder.outputs.ACTIONS_ENABLED | ||
uses: actions/setup-python@v1 | ||
with: | ||
python-version: '3.x' | ||
- name: "Install deps" | ||
if: steps.value_holder.outputs.ACTIONS_ENABLED | ||
run: | | ||
python -m pip install --upgrade pip | ||
python -m pip install pyyaml | ||
sudo apt-get install dos2unix | ||
- name: "Checkout" | ||
if: steps.value_holder.outputs.ACTIONS_ENABLED | ||
uses: actions/checkout@v4 | ||
with: | ||
fetch-depth: 25 | ||
persist-credentials: false | ||
- name: "Compile" | ||
if: steps.value_holder.outputs.ACTIONS_ENABLED | ||
run: | | ||
tools/bootstrap/python tools/GenerateChangelog/ss13_genchangelog.py html/changelogs | ||
- name: Commit | ||
if: steps.value_holder.outputs.ACTIONS_ENABLED | ||
run: | | ||
git config --local user.email "[email protected]" | ||
git config --local user.name "Changelogs" | ||
git pull origin master | ||
git add html/changelogs | ||
git commit -m "Automatic changelog compile [ci skip]" -a || true | ||
- name: "Push" | ||
if: steps.value_holder.outputs.ACTIONS_ENABLED | ||
uses: ad-m/github-push-action@master | ||
with: | ||
github_token: ${{ secrets.BOT_TOKEN_AURORA || secrets.GITHUB_TOKEN }} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
GLOBAL_VAR_INIT(changelog_hash, "") |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
GLOBAL_DATUM(changelog_tgui, /datum/changelog) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,32 @@ | ||
/datum/changelog | ||
var/static/list/changelog_items = list() | ||
|
||
/datum/changelog/ui_state() | ||
return GLOB.always_state | ||
|
||
/datum/changelog/ui_interact(mob/user, datum/tgui/ui) | ||
ui = SStgui.try_update_ui(user, src, ui) | ||
if (!ui) | ||
ui = new(user, src, "Changelog") | ||
ui.open() | ||
|
||
/datum/changelog/ui_act(action, list/params, datum/tgui/ui, datum/ui_state/state) | ||
. = ..() | ||
if(.) | ||
return | ||
if(action == "get_month") | ||
var/datum/asset/changelog_item/changelog_item = changelog_items[params["date"]] | ||
if (!changelog_item) | ||
changelog_item = new /datum/asset/changelog_item(params["date"]) | ||
changelog_items[params["date"]] = changelog_item | ||
return ui.send_asset(changelog_item) | ||
|
||
/datum/changelog/ui_static_data() | ||
var/list/data = list( "dates" = list() ) | ||
var/regex/ymlRegex = regex(@"\.yml", "g") | ||
|
||
for(var/archive_file in sort_list(flist("html/changelogs/archive/"))) | ||
var/archive_date = ymlRegex.Replace(archive_file, "") | ||
data["dates"] = list(archive_date) + data["dates"] | ||
|
||
return data |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,135 @@ | ||
// --------------------------------- Caprice | ||
|
||
/obj/effect/overmap/visitable/sector/exoplanet/lava/caprice | ||
name = "Caprice" | ||
desc = "A scorching-hot volcanic planet close to Tau Ceti." | ||
charted = "Charted 2147CE, Sol Alliance Department of Colonization." | ||
icon_state = "globe1" | ||
color = "#cf1020" | ||
generated_name = FALSE | ||
ring_chance = 0 | ||
|
||
/obj/effect/overmap/visitable/sector/exoplanet/lava/caprice/update_icon() | ||
return | ||
|
||
/obj/effect/overmap/visitable/sector/exoplanet/lava/caprice/generate_ground_survey_result() | ||
ground_survey_result = "<br>Natural caverns and artificial tunnels" | ||
|
||
/obj/effect/overmap/visitable/sector/exoplanet/lava/caprice/generate_atmosphere() | ||
..() | ||
if(atmosphere) | ||
atmosphere.remove_ratio(1) | ||
atmosphere.adjust_gas(GAS_NITROGEN, MOLES_O2STANDARD) | ||
atmosphere.temperature = T0C + 400 | ||
atmosphere.update_values() | ||
|
||
// --------------------------------- Luthien | ||
|
||
/obj/effect/overmap/visitable/sector/exoplanet/desert/luthien | ||
name = "Luthien" | ||
desc = "A desert planet with a thin, unbreathable atmosphere of primarily nitrogen." | ||
charted = "Charted 2147CE, Sol Alliance Department of Colonization." | ||
icon_state = "globe1" | ||
rock_colors = list("#e49135") | ||
color = "#e49135" | ||
generated_name = FALSE | ||
ring_chance = 0 | ||
|
||
/obj/effect/overmap/visitable/sector/exoplanet/lava/luthien/update_icon() | ||
return | ||
|
||
/obj/effect/overmap/visitable/sector/exoplanet/desert/luthien/generate_habitability() | ||
return HABITABILITY_BAD | ||
|
||
/obj/effect/overmap/visitable/sector/exoplanet/desert/luthien/generate_ground_survey_result() | ||
ground_survey_result = "<br>Sandy soil with organic fungal contamination" | ||
|
||
/obj/effect/overmap/visitable/sector/exoplanet/desert/luthien/generate_atmosphere() | ||
..() | ||
if(atmosphere) | ||
atmosphere.remove_ratio(1) | ||
atmosphere.adjust_gas(GAS_NITROGEN, MOLES_O2STANDARD) | ||
atmosphere.update_values() | ||
|
||
// --------------------------------- Valkyrie | ||
|
||
/obj/effect/overmap/visitable/sector/exoplanet/barren/valkyrie | ||
name = "Valkyrie" | ||
desc = "The moon of Tau Ceti, the third planet to be settled in the system." | ||
charted = "Natural satellite of Tau Ceti, charted 2147CE, Sol Alliance Department of Colonization." | ||
icon_state = "globe1" | ||
rock_colors = list("#4a3f41") | ||
color = "#4a3f41" | ||
generated_name = FALSE | ||
ring_chance = 0 | ||
|
||
/obj/effect/overmap/visitable/sector/exoplanet/barren/valkyrie/update_icon() | ||
return | ||
|
||
/obj/effect/overmap/visitable/sector/exoplanet/barren/valkyrie/generate_ground_survey_result() | ||
ground_survey_result = "<br>Soil with presence of nitrogen deposits" | ||
|
||
// --------------------------------- New Gibson | ||
|
||
/obj/effect/overmap/visitable/sector/exoplanet/snow/new_gibson | ||
name = "New Gibson" | ||
desc = "An ice world just outside the outer edge of the habitable zone." | ||
charted = "Charted 2147CE, Sol Alliance Department of Colonization." | ||
icon_state = "globe1" | ||
generated_name = FALSE | ||
ring_chance = 0 | ||
|
||
/obj/effect/overmap/visitable/sector/exoplanet/snow/new_gibson/update_icon() | ||
return | ||
|
||
/obj/effect/overmap/visitable/sector/exoplanet/snow/new_gibson/generate_habitability() | ||
return HABITABILITY_BAD | ||
|
||
/obj/effect/overmap/visitable/sector/exoplanet/snow/new_gibson/generate_ground_survey_result() | ||
ground_survey_result = "<br>Mineral-rich soil with presence of artificial structures" | ||
|
||
/obj/effect/overmap/visitable/sector/exoplanet/snow/new_gibson/generate_atmosphere() | ||
..() | ||
if(atmosphere) | ||
atmosphere.remove_ratio(1) | ||
atmosphere.adjust_gas(GAS_NITROGEN, MOLES_O2STANDARD) | ||
atmosphere.temperature = T0C - 200 | ||
atmosphere.update_values() | ||
|
||
// --------------------------------- Chandras | ||
|
||
/obj/effect/overmap/visitable/sector/exoplanet/barren/asteroid/ice/chandras | ||
name = "Chandras" | ||
desc = "An an icy body in a distant orbit of Tau Ceti." | ||
charted = "Charted 2147CE, Sol Alliance Department of Colonization." | ||
icon_state = "globe1" | ||
color = "#b2abbf" | ||
rock_colors = list("#b2abbf") | ||
generated_name = FALSE | ||
ring_chance = 0 | ||
|
||
/obj/effect/overmap/visitable/sector/exoplanet/barren/asteroid/ice/chandras/update_icon() | ||
return | ||
|
||
/obj/effect/overmap/visitable/sector/exoplanet/barren/asteroid/ice/chandras/generate_habitability() | ||
return HABITABILITY_BAD | ||
|
||
/obj/effect/overmap/visitable/sector/exoplanet/barren/asteroid/ice/chandras/generate_ground_survey_result() | ||
ground_survey_result = "<br>Soil with presence of nitrogen and ice deposits" | ||
|
||
// --------------------------------- Dumas | ||
|
||
/obj/effect/overmap/visitable/sector/exoplanet/barren/asteroid/dumas | ||
name = "Dumas" | ||
desc = "An extremely small rocky body that orbits within the far reaches of Tau Ceti." | ||
charted = "Charted 2147CE, Sol Alliance Department of Colonization." | ||
icon_state = "asteroid" | ||
generated_name = FALSE | ||
ring_chance = 0 | ||
place_near_main = null | ||
|
||
/obj/effect/overmap/visitable/sector/exoplanet/barren/asteroid/dumas/update_icon() | ||
return | ||
|
||
/obj/effect/overmap/visitable/sector/exoplanet/barren/asteroid/dumas/generate_ground_survey_result() | ||
ground_survey_result = "<br>No notable deposits underground" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.