Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
  • Loading branch information
Maleclypse committed Mar 5, 2022
2 parents 1363fe2 + 158330a commit 80d99b4
Show file tree
Hide file tree
Showing 519 changed files with 617,245 additions and 370,544 deletions.
51 changes: 51 additions & 0 deletions .github/labeler.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,51 @@
"C++":
- "**/*.cpp"
- "**/*.h"

"Json":
- "**/*.json"

"Python":
- "**/*.py"

"Documentation":
- "**/*.md"
- doc/**/*

"Code: Tooling":
- tools/**/*

"Code: Test":
- tests/**/*

"SDL: Tiles / Sound":
- gfx/**/*
- sound/**/*

"Translation":
- lang/**/*

"Mods: Aftershock":
- data/mods/Aftershock/**/*
- data/mods/aftershock_exoplanet/**/*

"Mods: Dark Days of the Dead":
- data/mods/classic_zombies/**/*

"Mods: Dark Skies":
- data/mods/Dark-Skies-Above/**/*

"Mods: Dinoclysm":
- data/mods/DinoMod/**/*

"Mods: Generic Guns":
- data/mods/Generic_Guns/**/*

"Mods: MMA":
- data/mods/MMA/**/*

"Mods: Magiclysm":
- data/mods/Magiclysm/**/*

"Mods: No Hope":
- data/mods/No_Hope/**/*
12 changes: 12 additions & 0 deletions .github/workflows/assign_mission_target_needs_om_special.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
name: Detect missions that are missing .start.assign_mission_target.om_special

on: pull_request

jobs:
run-the-tool:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
with:
fetch-depth: 1
- run: ./tools/json_tools/assign_mission_target_needs_om_special.bash 2>&1
2 changes: 1 addition & 1 deletion .github/workflows/astyle.yml
Original file line number Diff line number Diff line change
Expand Up @@ -41,5 +41,5 @@ jobs:
- name: Display Corrections
if: failure()
run: |
make astyle
make astyle-fast
git diff
12 changes: 12 additions & 0 deletions .github/workflows/labeler.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
name: "Pull Request Labeler"
on:
- pull_request_target

jobs:
triage:
runs-on: ubuntu-latest
steps:
- uses: actions/labeler@v3
with:
repo-token: "${{ secrets.GITHUB_TOKEN }}"
sync-labels: true
20 changes: 9 additions & 11 deletions Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -74,6 +74,8 @@
# make NOOPT=1
# Astyle all source files.
# make astyle
# Astyle all source files as fast as possible.
# make astyle-fast
# Check if source files are styled properly.
# make astyle-check
# Style the whitelisted json files (maintain the current level of styling).
Expand Down Expand Up @@ -731,14 +733,7 @@ ifeq ($(TILES), 1)
ODIR = $(ODIRTILES)
endif
else
ifeq ($(LOCALIZE),1)
NCURSES_PREFIX = ncursesw
else
NCURSES_PREFIX = ncurses
endif
ifdef OSXCROSS
NCURSES_PREFIX = ncurses
endif
NCURSES_PREFIX = ncursesw
# ONLY when not cross-compiling, check for pkg-config or ncurses5-config
# When doing a cross-compile, we can't rely on the host machine's -configs
ifeq ($(CROSS),)
Expand Down Expand Up @@ -1199,20 +1194,23 @@ $(ODIR)/.astyle-check-stamp: $(ASTYLE_SOURCES)

endif

astyle-fast: $(ASTYLE_SOURCES)
$(ASTYLE_BINARY) --options=.astylerc -n $(ASTYLE_SOURCES)

astyle-all: $(ASTYLE_SOURCES)
$(ASTYLE_BINARY) --options=.astylerc -n $(ASTYLE_SOURCES)
mkdir -p $(ODIR) && touch $(ODIR)/.astyle-check-stamp

# Test whether the system has a version of astyle that supports --dry-run
ifeq ($(shell if $(ASTYLE_BINARY) -Q -X --dry-run src/game.h > /dev/null; then echo foo; fi),foo)
ASTYLE_CHECK=$(shell $(ASTYLE_BINARY) --options=.astylerc --dry-run -X -Q --ascii $(ASTYLE_SOURCES))
ASTYLE_CHECK=$(shell $(ASTYLE_BINARY) --options=.astylerc --dry-run -X -Q --ascii $(ASTYLE_SOURCES) | sed -E "s/Formatted[[:space:]]+(.*)/Needs formatting: \1\\\n/" | tr -d '\n')
endif

astyle-check:
ifdef ASTYLE_CHECK
$(info $(ASTYLE_BINARY) -V: $(shell $(ASTYLE_BINARY) -V))
@if [ "$(findstring Formatted,$(ASTYLE_CHECK))" = "" ]; then echo "no astyle regressions";\
else printf "astyle regressions found.\n$(ASTYLE_CHECK)\n" && false; fi
@if [ "$(findstring Needs formatting:,$(ASTYLE_CHECK))" = "" ]; then echo "no astyle regressions";\
else printf "astyle regressions found.\n$(ASTYLE_CHECK)" && false; fi
else
@echo Cannot run an astyle check, your system either does not have astyle, or it is too old.
endif
Expand Down
2 changes: 1 addition & 1 deletion build-scripts/get_all_mods.py
Original file line number Diff line number Diff line change
Expand Up @@ -41,7 +41,7 @@ def print_modlist(modlist, master_list):
total_conversions = set()

for info in glob.glob('data/mods/*/modinfo.json'):
mod_info = json.load(open(info))
mod_info = json.load(open(info, encoding='utf-8'))
for e in mod_info:
if(e["type"] == "MOD_INFO" and
("obsolete" not in e or not e["obsolete"])):
Expand Down
48 changes: 24 additions & 24 deletions data/json/artifact/relic_procgen_data.json
Original file line number Diff line number Diff line change
Expand Up @@ -158,6 +158,14 @@
"increment": 0.1,
"power_per_increment": -500
},
{
"weight": 50,
"min_value": -0.4,
"max_value": 0.2,
"type": "MOVE_COST",
"increment": 0.1,
"power_per_increment": -500
},
{
"weight": 100,
"min_value": -0.5,
Expand Down Expand Up @@ -209,14 +217,6 @@
"increment": 5,
"power_per_increment": 250
},
{
"weight": 50,
"min_value": -50,
"max_value": 20,
"type": "MOVE_COST",
"increment": 5,
"power_per_increment": -250
},
{
"weight": 50,
"min_value": -2500,
Expand Down Expand Up @@ -418,6 +418,14 @@
"increment": 0.1,
"power_per_increment": -500
},
{
"weight": 50,
"min_value": -0.4,
"max_value": 0.2,
"type": "MOVE_COST",
"increment": 0.1,
"power_per_increment": -500
},
{
"weight": 100,
"min_value": -0.5,
Expand Down Expand Up @@ -469,14 +477,6 @@
"increment": 5,
"power_per_increment": 250
},
{
"weight": 50,
"min_value": -50,
"max_value": 20,
"type": "MOVE_COST",
"increment": 5,
"power_per_increment": -250
},
{
"weight": 50,
"min_value": -2500,
Expand Down Expand Up @@ -678,6 +678,14 @@
"increment": 0.1,
"power_per_increment": -500
},
{
"weight": 50,
"min_value": -0.4,
"max_value": 0.2,
"type": "MOVE_COST",
"increment": 0.1,
"power_per_increment": -500
},
{
"weight": 100,
"min_value": -0.5,
Expand Down Expand Up @@ -729,14 +737,6 @@
"increment": 5,
"power_per_increment": 250
},
{
"weight": 50,
"min_value": -50,
"max_value": 20,
"type": "MOVE_COST",
"increment": 5,
"power_per_increment": -250
},
{
"weight": 50,
"min_value": -2500,
Expand Down
Loading

0 comments on commit 80d99b4

Please sign in to comment.