Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
…into CleverRaven-master
  • Loading branch information
a-chancey committed Mar 4, 2022
2 parents e98a26e + 2250560 commit 88fa48d
Show file tree
Hide file tree
Showing 286 changed files with 50,908 additions and 41,443 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/**/*
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
14 changes: 6 additions & 8 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,6 +1194,9 @@ $(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
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
30 changes: 30 additions & 0 deletions data/json/construction.json
Original file line number Diff line number Diff line change
Expand Up @@ -141,6 +141,25 @@
"pre_special": "check_empty",
"post_terrain": "t_door_curtain_c"
},
{
"type": "construction",
"id": "constr_door_grass_curtain",
"group": "build_door_grass_curtain",
"//": "Door frame not required",
"category": "CONSTRUCT",
"required_skills": [ [ "tailor", 1 ] ],
"time": "30 m",
"qualities": [ [ { "id": "HAMMER", "level": 2 } ] ],
"components": [
[ [ "nail", 4 ], [ "pointy_stick", 2 ], [ "spike", 2 ] ],
[ [ "grass_sheet", 2 ] ],
[ [ "stick", 1 ] ],
[ [ "string_36", 1 ], [ "cordage_36", 1 ], [ "string_6", 6 ], [ "cordage_6", 6 ] ]
],
"pre_note": "Can be deconstructed without tools.",
"pre_special": "check_empty",
"post_terrain": "t_door_grass_curtain_c"
},
{
"type": "construction",
"id": "constr_beaded_door",
Expand Down Expand Up @@ -3107,6 +3126,17 @@
"pre_special": "check_empty",
"post_special": "done_appliance"
},
{
"type": "construction",
"id": "app_arcade_machine",
"group": "place_arcade_machine",
"category": "APPLIANCE",
"required_skills": [ [ "fabrication", 0 ] ],
"time": "5 m",
"components": [ [ [ "arcade_machine", 1 ] ] ],
"pre_special": "check_empty",
"post_special": "done_appliance"
},
{
"type": "construction",
"id": "app_forge",
Expand Down
10 changes: 10 additions & 0 deletions data/json/construction_group.json
Original file line number Diff line number Diff line change
Expand Up @@ -229,6 +229,11 @@
"id": "build_door_curtain",
"name": "Build Door Curtain"
},
{
"type": "construction_group",
"id": "build_door_grass_curtain",
"name": "Build Door Curtain from Grass"
},
{
"type": "construction_group",
"id": "build_double_glazed_glass_window",
Expand Down Expand Up @@ -1114,6 +1119,11 @@
"id": "place_oven",
"name": "Place Oven"
},
{
"type": "construction_group",
"id": "place_arcade_machine",
"name": "Place Arcade Machine"
},
{
"type": "construction_group",
"id": "place_electric_forge",
Expand Down
4 changes: 2 additions & 2 deletions data/json/effects.json
Original file line number Diff line number Diff line change
Expand Up @@ -779,7 +779,7 @@
"hurt_min": [ 1 ],
"hurt_max": [ 2 ],
"hurt_chance": [ 500 ],
"hurt_tick": [ 100 ],
"hurt_tick": [ 150 ],
"pain_min": [ 1 ],
"pain_max": [ 2 ],
"pain_chance": [ 90 ],
Expand All @@ -792,7 +792,7 @@
"dex_mod": [ 1 ],
"int_mod": [ 1 ],
"hurt_chance": [ -240, -50 ],
"hurt_tick": [ -60 ],
"hurt_tick": [ -25 ],
"pain_chance": [ -30 ]
},
"rating": "bad",
Expand Down
19 changes: 19 additions & 0 deletions data/json/flags.json
Original file line number Diff line number Diff line change
Expand Up @@ -863,6 +863,11 @@
"//": "Allows wielding with unarmed fighting styles and trains unarmed when used.",
"info": "This weapon <good>can be used with</good> <info>unarmed fighting styles</info>."
},
{
"id": "NANOFAB_REPAIR",
"type": "json_flag",
"info": "This item has a holographic patch that reflects the light oddly. It was constructed in a nanofabricator and can be <info>repaired in one</info>."
},
{
"id": "NANOFAB_TEMPLATE",
"type": "json_flag",
Expand Down Expand Up @@ -1131,8 +1136,21 @@
},
{
"id": "COLLAPSIBLE_STOCK",
"//": "this is deprecated for the COLLAPSED_STOCK and FOLDED_STOCK, kept around for mod support",
"type": "json_flag"
},
{
"id": "FOLDED_STOCK",
"//": "for weapons that stock folds to one side, no change in volume.",
"type": "json_flag",
"info": "This items stock is folded it will be hard to shoot with."
},
{
"id": "COLLAPSED_STOCK",
"//": "for weapons that stock collapses into the body reducing volume as well.",
"type": "json_flag",
"info": "This items stock is collapsed it will be hard to shoot with."
},
{
"id": "CONDUCTIVE",
"type": "json_flag"
Expand Down Expand Up @@ -1364,6 +1382,7 @@
},
{
"id": "NEEDS_UNFOLD",
"//": "should not be used for folding mods, use a transforming mod instead",
"type": "json_flag"
},
{
Expand Down
30 changes: 30 additions & 0 deletions data/json/furniture_and_terrain/appliances.json
Original file line number Diff line number Diff line change
Expand Up @@ -80,6 +80,36 @@
"size": 200,
"type": "vehicle_part"
},
{
"id": "ap_arcade_machine",
"name": { "str": "arcade machine" },
"categories": [ "utility" ],
"description": "A bulky upright arcade cabinet, brightly painted and slightly worn with age. Ready to be played.",
"symbol": "6",
"color": "red",
"location": "structure",
"broken_color": "red",
"broken_symbol": "x",
"damage_modifier": 10,
"damage_reduction": { "all": 10 },
"durability": 80,
"flags": [ "OBSTACLE", "COVERED", "APPLIANCE", "ENABLED_DRAINS_EPOWER", "ARCADE", "CTRL_ELECTRONIC" ],
"epower": -150,
"item": "arcade_machine",
"looks_like": "f_arcade_machine",
"breaks_into": [
{ "item": "splinter", "count": [ 0, 6 ] },
{ "item": "television", "prob": 50 },
{ "item": "2x4", "count": [ 2, 6 ] },
{ "item": "nail", "charges": [ 4, 10 ] },
{ "item": "cable", "charges": [ 4, 10 ] },
{ "item": "circuit", "count": [ 0, 4 ] },
{ "item": "power_supply", "prob": 50 },
{ "item": "RAM", "count": [ 0, 2 ] }
],
"size": 200,
"type": "vehicle_part"
},
{
"type": "vehicle_part",
"id": "ap_forge",
Expand Down
2 changes: 1 addition & 1 deletion data/json/furniture_and_terrain/furniture-recreation.json
Original file line number Diff line number Diff line change
Expand Up @@ -144,7 +144,7 @@
"type": "furniture",
"id": "f_arcade_machine",
"name": "arcade machine",
"description": "A bulky upright arcade cabinet, brightly painted and slightly worn with age. Useless for its intended purpose, it's bound to have valuable parts.",
"description": "A bulky upright arcade cabinet, brightly painted and slightly worn with age. Useless for its intended purpose without power, it's bound to have valuable parts.",
"symbol": "6",
"color": "red",
"move_cost_mod": -1,
Expand Down
Loading

0 comments on commit 88fa48d

Please sign in to comment.