Skip to content
This repository was archived by the owner on May 22, 2025. It is now read-only.

Commit 16e6afe

Browse files
committed
fixes cowbot's bad code
1 parent 10609a8 commit 16e6afe

File tree

3 files changed

+3
-28
lines changed

3 files changed

+3
-28
lines changed

.github/workflows/compile_changelogs.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,7 @@ jobs:
2727
fetch-depth: 25
2828
- name: "Compile"
2929
run: |
30-
python tools/ss13_genchangelog.py html/changelog.html html/changelogs
30+
python tools/ss13_genchangelog.py html/changelogs
3131
- name: "Convert Lineendings"
3232
run: |
3333
unix2dos html/changelogs/.all_changelog.yml

code/game/world.dm

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -161,7 +161,8 @@ GLOBAL_VAR(restart_counter)
161161
start_log(GLOB.world_job_debug_log)
162162
start_log(GLOB.tgui_log)
163163

164-
GLOB.changelog_hash = md5('html/changelog.html') //for telling if the changelog has changed recently
164+
var/latest_changelog = file("[global.config.directory]/../html/changelogs/archive/" + time2text(world.timeofday, "YYYY-MM") + ".yml")
165+
GLOB.changelog_hash = fexists(latest_changelog) ? md5(latest_changelog) : 0 //for telling if the changelog has changed recently
165166
if(fexists(GLOB.config_error_log))
166167
fcopy(GLOB.config_error_log, "[GLOB.log_directory]/config_error.log")
167168
fdel(GLOB.config_error_log)

code/modules/asset_cache/asset_list_items.dm

Lines changed: 0 additions & 26 deletions
Original file line numberDiff line numberDiff line change
@@ -150,32 +150,6 @@
150150
/datum/asset/simple/irv
151151
)
152152

153-
/datum/asset/simple/namespaced/changelog
154-
assets = list(
155-
"88x31.png" = 'html/88x31.png',
156-
"bug-minus.png" = 'html/bug-minus.png',
157-
"cross-circle.png" = 'html/cross-circle.png',
158-
"hard-hat-exclamation.png" = 'html/hard-hat-exclamation.png',
159-
"image-minus.png" = 'html/image-minus.png',
160-
"image-plus.png" = 'html/image-plus.png',
161-
"music-minus.png" = 'html/music-minus.png',
162-
"music-plus.png" = 'html/music-plus.png',
163-
"tick-circle.png" = 'html/tick-circle.png',
164-
"wrench-screwdriver.png" = 'html/wrench-screwdriver.png',
165-
"spell-check.png" = 'html/spell-check.png',
166-
"burn-exclamation.png" = 'html/burn-exclamation.png',
167-
"chevron.png" = 'html/chevron.png',
168-
"chevron-expand.png" = 'html/chevron-expand.png',
169-
"scales.png" = 'html/scales.png',
170-
"coding.png" = 'html/coding.png',
171-
"ban.png" = 'html/ban.png',
172-
"chrome-wrench.png" = 'html/chrome-wrench.png',
173-
"mapping.png" = 'html/mapping.png',
174-
"changelog.css" = 'html/changelog.css'
175-
)
176-
parents = list("changelog.html" = 'html/changelog.html')
177-
178-
179153
/datum/asset/simple/scanlines
180154
assets = list(
181155
"scanlines.png" = 'html/scanlines.png'

0 commit comments

Comments
 (0)