forked from discordia-space/CEV-Eris
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
adds tgui (now real!) (discordia-space#7685)
* tgui files * make tgui build * well it's tgui (base) * make tgui functional + changelog is tgooey now * #warn Building with Dream Maker is no longer supported and will result in errors (tgui not exist etc...). #warn In order to build, run BUILD.bat in the root directory. #warn Consider switching to VSCode editor instead, where you can press Ctrl+Shift+B to build. * screenshot test * surely this is chmod by git right * make image test work properly * fix prettier * allow critical verbs to run even if the serv is laggin * no deleted timers in buckets * incoming merge conflict hell :D
- Loading branch information
Showing
1,014 changed files
with
125,333 additions
and
9,505 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
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 |
---|---|---|
|
@@ -3,6 +3,7 @@ name: Compile changelogs | |
on: | ||
schedule: | ||
- cron: "0 0 * * *" | ||
workflow_dispatch: | ||
|
||
jobs: | ||
compile: | ||
|
@@ -12,41 +13,42 @@ jobs: | |
- name: "Check for CHANGELOG_ENABLER secret and pass true to output if it exists to be checked by later steps" | ||
id: value_holder | ||
env: | ||
CHANGELOG_ENABLER: ${{ secrets.CHANGELOG_ENABLER }} | ||
ENABLER_SECRET: ${{ secrets.CHANGELOG_ENABLER }} | ||
run: | | ||
unset SECRET_EXISTS | ||
if [ -n $CHANGELOG_ENABLER ]; then SECRET_EXISTS='true' ; fi | ||
echo ::set-output name=CL_ENABLED::${SECRET_EXISTS} | ||
if [ -n "$ENABLER_SECRET" ]; then SECRET_EXISTS=true ; fi | ||
echo "::set-output name=ACTIONS_ENABLED::$SECRET_EXISTS" | ||
- name: "Setup python" | ||
if: steps.value_holder.outputs.CL_ENABLED | ||
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.CL_ENABLED | ||
if: steps.value_holder.outputs.ACTIONS_ENABLED | ||
run: | | ||
python -m pip install --upgrade pip | ||
python -m pip install pyyaml bs4 | ||
python -m pip install pyyaml | ||
sudo apt-get install dos2unix | ||
- name: "Checkout" | ||
if: steps.value_holder.outputs.CL_ENABLED | ||
uses: actions/checkout@v1 | ||
if: steps.value_holder.outputs.ACTIONS_ENABLED | ||
uses: actions/checkout@v3 | ||
with: | ||
fetch-depth: 25 | ||
persist-credentials: false | ||
- name: "Compile" | ||
if: steps.value_holder.outputs.CL_ENABLED | ||
if: steps.value_holder.outputs.ACTIONS_ENABLED | ||
run: | | ||
python tools/changelog/ss13_genchangelog.py html/changelog.html html/changelogs | ||
python tools/ss13_genchangelog.py html/changelogs | ||
- name: Commit | ||
if: steps.value_holder.outputs.CL_ENABLED | ||
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.CL_ENABLED | ||
if: steps.value_holder.outputs.ACTIONS_ENABLED | ||
uses: ad-m/github-push-action@master | ||
with: | ||
github_token: ${{ secrets.GITHUB_TOKEN }} | ||
github_token: ${{ secrets.COMFY_ORANGE_PAT || secrets.GITHUB_TOKEN }} |
This file was deleted.
Oops, something went wrong.
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,63 @@ | ||
//// COOLDOWN SYSTEMS | ||
/* | ||
* We have 2 cooldown systems: timer cooldowns (divided between stoppable and regular) and world.time cooldowns. | ||
* | ||
* When to use each? | ||
* | ||
* * Adding a commonly-checked cooldown, like on a subsystem to check for processing | ||
* * * Use the world.time ones, as they are cheaper. | ||
* | ||
* * Adding a rarely-used one for special situations, such as giving an uncommon item a cooldown on a target. | ||
* * * Timer cooldown, as adding a new variable on each mob to track the cooldown of said uncommon item is going too far. | ||
* | ||
* * Triggering events at the end of a cooldown. | ||
* * * Timer cooldown, registering to its signal. | ||
* | ||
* * Being able to check how long left for the cooldown to end. | ||
* * * Either world.time or stoppable timer cooldowns, depending on the other factors. Regular timer cooldowns do not support this. | ||
* | ||
* * Being able to stop the timer before it ends. | ||
* * * Either world.time or stoppable timer cooldowns, depending on the other factors. Regular timer cooldowns do not support this. | ||
*/ | ||
|
||
|
||
//TIMER COOLDOWN MACROS | ||
|
||
#define COMSIG_CD_STOP(cd_index) "cooldown_[cd_index]" | ||
#define COMSIG_CD_RESET(cd_index) "cd_reset_[cd_index]" | ||
|
||
#define TIMER_COOLDOWN_START(cd_source, cd_index, cd_time) LAZYSET(cd_source.cooldowns, cd_index, addtimer(CALLBACK(GLOBAL_PROC, /proc/end_cooldown, cd_source, cd_index), cd_time)) | ||
|
||
#define TIMER_COOLDOWN_CHECK(cd_source, cd_index) LAZYACCESS(cd_source.cooldowns, cd_index) | ||
|
||
#define TIMER_COOLDOWN_END(cd_source, cd_index) LAZYREMOVE(cd_source.cooldowns, cd_index) | ||
|
||
/* | ||
* Stoppable timer cooldowns. | ||
* Use indexes the same as the regular tiemr cooldowns. | ||
* They make use of the TIMER_COOLDOWN_CHECK() and TIMER_COOLDOWN_END() macros the same, just not the TIMER_COOLDOWN_START() one. | ||
* A bit more expensive than the regular timers, but can be reset before they end and the time left can be checked. | ||
*/ | ||
|
||
#define S_TIMER_COOLDOWN_START(cd_source, cd_index, cd_time) LAZYSET(cd_source.cooldowns, cd_index, addtimer(CALLBACK(GLOBAL_PROC, /proc/end_cooldown, cd_source, cd_index), cd_time, TIMER_STOPPABLE)) | ||
|
||
#define S_TIMER_COOLDOWN_RESET(cd_source, cd_index) reset_cooldown(cd_source, cd_index) | ||
|
||
#define S_TIMER_COOLDOWN_TIMELEFT(cd_source, cd_index) (timeleft(TIMER_COOLDOWN_CHECK(cd_source, cd_index))) | ||
|
||
|
||
/* | ||
* Cooldown system based on storing world.time on a variable, plus the cooldown time. | ||
* Better performance over timer cooldowns, lower control. Same functionality. | ||
*/ | ||
|
||
#define COOLDOWN_DECLARE(cd_index) var/##cd_index = 0 | ||
|
||
#define COOLDOWN_START(cd_source, cd_index, cd_time) (cd_source.cd_index = world.time + (cd_time)) | ||
|
||
//Returns true if the cooldown has run its course, false otherwise | ||
#define COOLDOWN_FINISHED(cd_source, cd_index) (cd_source.cd_index < world.time) | ||
|
||
#define COOLDOWN_RESET(cd_source, cd_index) cd_source.cd_index = 0 | ||
|
||
#define COOLDOWN_TIMELEFT(cd_source, cd_index) (max(0, cd_source.cd_index - world.time)) |
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.