Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
  • Loading branch information
Daved27hundred committed Jul 21, 2023
2 parents e2e3a1b + 29fe1f2 commit 55b51f3
Show file tree
Hide file tree
Showing 377 changed files with 275,713 additions and 201,593 deletions.
3 changes: 3 additions & 0 deletions .github/labeler.yml
Original file line number Diff line number Diff line change
Expand Up @@ -260,6 +260,9 @@
"Mods: Mind Over Matter":
- data/mods/MindOverMatter/**/*

"Mods: Sky Island":
- data/mods/Sky_Island/**/*

"Mods":
- any: [ 'data/mods/**' ]
all: [ '!data/mods/TEST_DATA/**' ]
Expand Down
2 changes: 2 additions & 0 deletions .github/reviewers.yml
Original file line number Diff line number Diff line change
Expand Up @@ -51,3 +51,5 @@ files:
- dseguin
'src/ui_manager.*':
- Qrox
'data/raw/keybindings{.json,/**}':
- Qrox
4 changes: 2 additions & 2 deletions .github/workflows/stale.yml
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ name: 'Stale issue handler'
on:
workflow_dispatch:
schedule:
- cron: '0 * * * *'
- cron: '30 * * * *'
permissions:
issues: write
pull-requests: write
Expand All @@ -24,7 +24,7 @@ jobs:
days-before-close: 30
start-date: '2020-05-07'
ascending: ${{ contains(fromJson('["01", "03", "05", "07", "09", "11"]'), env.time) }}
operations-per-run: 250
operations-per-run: 110
exempt-issue-labels: 'Accessibility,<Bug>,<Bugfix>,<Crash / Freeze>,Organization: Bounty,Good First Issue,Help Wanted,(P1 - Critical),(P2 - High),(P3 - Medium),(P4 - Low),(P5 - Long-term),(S2 - Confirmed),0.G String Freeze,0.G Feature Freeze,0.G Content Freeze'
exempt-pr-labels: '<Bug>,<Bugfix>,<Crash / Freeze>,Organization: Bounty,Good First Issue,(P1 - Critical),(P2 - High),(P3 - Medium),(P4 - Low),(P5 - Long-term),(S2 - Confirmed),0.G String Freeze,0.G Feature Freeze,0.G Content Freeze'
exempt-all-milestones: true
Expand Down
4 changes: 2 additions & 2 deletions Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -857,9 +857,9 @@ THIRD_PARTY_SOURCES := $(wildcard $(SRC_DIR)/third-party/flatbuffers/*.cpp)
HEADERS := $(wildcard $(SRC_DIR)/*.h)
TESTSRC := $(wildcard tests/*.cpp)
TESTHDR := $(wildcard tests/*.h)
JSON_FORMATTER_SOURCES := $(wildcard tools/format/*.cpp) src/json.cpp
JSON_FORMATTER_SOURCES := $(wildcard tools/format/*.cpp) src/wcwidth.cpp src/json.cpp
JSON_FORMATTER_HEADERS := $(wildcard tools/format/*.h)
CHKJSON_SOURCES := $(wildcard src/chkjson/*.cpp) src/json.cpp
CHKJSON_SOURCES := $(wildcard src/chkjson/*.cpp) src/wcwidth.cpp src/json.cpp
CLANG_TIDY_PLUGIN_SOURCES := \
$(wildcard tools/clang-tidy-plugin/*.cpp tools/clang-tidy-plugin/*/*.cpp)
CLANG_TIDY_PLUGIN_HEADERS := \
Expand Down
11 changes: 11 additions & 0 deletions data/changelog.txt
Original file line number Diff line number Diff line change
Expand Up @@ -35,6 +35,9 @@ Unhardcode dragging, grab fixes
Make vehicle doors lockable and pickable
Implement export&import of the protagonist and follower NPCs
Expand grain farming and adjust seeds
Creatures above cast shadows onto tiles below
Apply different messages at different effect intensity levels
Player character now can get sick with common cold or flu only after contacts with NPCs or ferals


## Content:
Expand Down Expand Up @@ -64,6 +67,7 @@ Added a small office building fortified by bandits
New location: speedway
You can now choose a new leader for your faction without dying
Adds new skateboard vehicle
Most scenarios now provide vision of the nearest city on start


## Interface:
Expand All @@ -78,6 +82,7 @@ Show NPC location when selecting NPC to chat with, guard, or follow
Display why vehicle parts cannot be installed
Open multiple containers in Advanced Inventory Manager
Adds the 'Mark as dangerous' keybinding to the overmap
NPC selects melee style


## Mods:
Expand Down Expand Up @@ -131,6 +136,8 @@ Hound afterimages also copy their host nicknames
The player is substantially less effective with guns at low skill values
Lycra is less protective
BMI has a less all consuming impact on how healthy you are
Being badly wounded will always allow you to swap characters in camp while you heal
Intelligence provides a multiplier to current focus rather than adding to its value


## Bugfixes:
Expand Down Expand Up @@ -184,12 +191,15 @@ Fix the epilogue for the New England Church Community
Flat armor penetration is spread across all armor layers instead of applying its full value to each
Fix tow cables being unable to connect different vehicles
Smashing now incorporates any MELEE_DAMAGE and STRENGTH enchantments
'w'ield menu will now correctly trigger a steal warning when wielding an item that does not belong to player
Allow crafting tools to use linked electricity


## Performance:
Make `Character::best_item_with_quality` examine items non-recursively
Refactor effect types to use map indirection and enums instead of strings
Removes the ludicrous amount of OMs the refugee and research centres define
Fix Nested List lag in crafting menu


## Infrastructure:
Expand All @@ -204,6 +214,7 @@ Upgrade clang-tidy used in CI to LLVM 16
Allow C++ standard includes in clang-tidy tests
Refactor timer items to be a bit more time based
Support for material replacement in items
Carrier for items on ground is nullptr


## Build:
Expand Down
15 changes: 11 additions & 4 deletions data/json/bionics.json
Original file line number Diff line number Diff line change
Expand Up @@ -14,9 +14,9 @@
"description": "A thin forcefield surrounds your body, continually draining power. Everything loses velocity when penetrating this field, which results in reduced amount of dealt damage at the cost of your bionic energy. Bullets and stabbing attacks will lose more velocity than cutting attacks and those in turn more than bashing attacks.",
"occupied_bodyparts": [ [ "torso", 10 ], [ "head", 1 ], [ "arm_l", 1 ], [ "arm_r", 1 ], [ "leg_l", 2 ], [ "leg_r", 2 ] ],
"flags": [ "BIONIC_TOGGLED", "BIONIC_NPC_USABLE" ],
"act_cost": "10 J",
"react_cost": "10 J",
"trigger_cost": "25kJ",
"act_cost": "1 kJ",
"react_cost": "1 kJ",
"trigger_cost": "10 kJ",
"time": "1 s"
},
{
Expand Down Expand Up @@ -1746,10 +1746,17 @@
"id": "bio_weight",
"type": "bionic",
"name": { "str": "Titanium Skeletal Bracing" },
"description": "Titanium bracing has been installed onto your elbows, knees, and spine, making them far better at handling strain. Your carrying capacity is increased by 20 kilograms, or about 44 pounds.",
"description": "Titanium bracing has been installed onto your elbows, knees, and spine, making them far better at handling strain. Your carrying capacity is increased by 20 kilograms, or about 44 pounds, and you receive slightly less bashing damage to your arms, legs and torso.",
"occupied_bodyparts": [ [ "torso", 8 ], [ "arm_l", 3 ], [ "arm_r", 3 ], [ "leg_l", 3 ], [ "leg_r", 3 ] ],
"weight_capacity_bonus": "20 kg",
"flags": [ "BIONIC_NPC_USABLE", "BIONIC_SHOCKPROOF" ],
"protec": [
[ "torso", { "bash": 2 } ],
[ "arm_l", { "bash": 2 } ],
[ "arm_r", { "bash": 2 } ],
[ "leg_l", { "bash": 2 } ],
[ "leg_r", { "bash": 2 } ]
],
"mutation_conflicts": [
"AMORPHOUS",
"BENDY2",
Expand Down
130 changes: 123 additions & 7 deletions data/json/effects.json
Original file line number Diff line number Diff line change
Expand Up @@ -1779,15 +1779,68 @@
},
{
"type": "effect_type",
"id": "smoke",
"name": [ { "ctxt": "inhaled", "str": "Smoke" } ],
"desc": [ "You've inhaled a lungful of thick smoke." ],
"apply_message": "You inhale a lungful of thick smoke.",
"rating": "bad",
"id": "smoke_eyes",
"name": [
"Little Eye Irritation (Smoke)",
"Minor Eye Irritation (Smoke)",
"Huge Eye Irritation (Smoke)",
"Bad Eye Irritation (Smoke)"
],
"desc": [
"Your eyes mildly irritate.",
"Your eyes watering.",
"Your eyes tear and stings heavily.",
"Your eyes burn out of smoke, and you hardly see anything."
],
"apply_message": [
[ "Your eyes mildly irritate.", "bad" ],
[ "Your eyes watering out of smoke.", "bad" ],
[ "Your eyes tear and stings heavily.", "bad" ],
[ "Your eyes burn out of smoke, and you hardly see anything.", "bad" ]
],
"miss_messages": [ [ "Your eyes sting and tear from the smoke.", 1 ] ],
"max_duration": "3 m",
"max_intensity": 4,
"int_decay_tick": 40,
"base_mods": { "per_mod": [ -1 ] },
"scaling_mods": { "per_mod": [ -1 ] },
"limb_score_mods": [
{ "limb_score": "vision", "modifier": 0.8, "resist_modifier": 1.0, "scaling": -0.2 },
{ "limb_score": "night_vis", "modifier": 0.8, "resist_modifier": 1.0, "scaling": -0.2 }
],
"flags": [ "EFFECT_LIMB_SCORE_MOD" ],
"show_in_info": true
},
{
"type": "effect_type",
"id": "smoke_lungs",
"name": [ "Inhaled Some Smoke", "Inhaled Plenty of Smoke", "Smoke Inhalation", "Bad Smoke Inhalation" ],
"desc": [
"You draw in a faint whiff of smoke.",
"Noticeable amount of smoke fills your lungs.",
"Dense cloud of smoke enter your lungs.",
"You inhale an overwhelming amount of smoke."
],
"apply_message": [
[ "You draw in a faint whiff of smoke.", "bad" ],
[ "Noticeable amount of smoke fills your lungs.", "bad" ],
[ "Dense cloud of smoke enter your lungs.", "bad" ],
[ "You inhale an overwhelming amount of smoke.", "bad" ]
],
"miss_messages": [ [ "Your lungs burn from the smoke.", 1 ] ],
"harmful_cough": true,
"max_duration": "10 m",
"base_mods": { "str_mod": [ -1 ], "dex_mod": [ -1 ], "cough_chance": [ 10 ] },
"max_duration": "3 m",
"max_intensity": 4,
"int_decay_tick": 40,
"scaling_mods": { "str_mod": [ -1 ], "dex_mod": [ -1 ], "cough_chance": [ 10 ] },
"limb_score_mods": [
{ "limb_score": "breathing", "resist_modifier": 1, "scaling": -0.25 },
{ "limb_score": "reaction", "resist_modifier": 1, "scaling": -0.1 },
{ "limb_score": "balance", "resist_modifier": 1, "scaling": -0.1 },
{ "limb_score": "lift", "resist_modifier": 1, "scaling": -0.1 },
{ "limb_score": "manip", "resist_modifier": 1, "scaling": -0.1 }
],
"flags": [ "EFFECT_LIMB_SCORE_MOD" ],
"show_in_info": true
},
{
Expand Down Expand Up @@ -2595,6 +2648,7 @@
"apply_message": "You feel a cold coming on…",
"rating": "bad",
"resist_effects": [ "took_flumed" ],
"immune_flags": [ "NO_DISEASE" ],
"miss_messages": [ [ "You're too stuffed up to fight effectively.", 1 ] ],
"base_mods": {
"thirst_tick": [ 1800 ],
Expand All @@ -2621,6 +2675,8 @@
"apply_message": "You feel a flu coming on…",
"rating": "bad",
"resist_effects": [ "took_flumed" ],
"immune_flags": [ "NO_DISEASE" ],
"miss_messages": [ [ "You're too stuffed up to fight effectively.", 1 ] ],
"base_mods": {
"thirst_tick": [ 1800 ],
"thirst_min": [ 1 ],
Expand All @@ -2637,6 +2693,27 @@
},
"blood_analysis_description": "Viral Infection"
},
{
"type": "effect_type",
"id": "common_cold_immunity",
"name": [ "Common Cold Antibodies" ],
"desc": [ "Common cold antibodies in your bloodstream prevent you from catching common cold." ],
"blocks_effects": [ "common_cold" ],
"rating": "good",
"blood_analysis_description": "Common Cold Antibodies",
"max_duration": 14515200,
"dur_add_perc": 50
},
{
"type": "effect_type",
"id": "fake_common_cold",
"show_in_info": false
},
{
"type": "effect_type",
"id": "fake_flu",
"show_in_info": false
},
{
"type": "effect_type",
"id": "flushot",
Expand Down Expand Up @@ -4072,6 +4149,45 @@
"//": "Don't multiply speed by 0 or else the effect will never be removed for creatures with 0 damage(e.g. rabbits)",
"enchantments": [ { "values": [ { "value": "SPEED", "multiply": 0.01 } ] } ]
},
{
"id": "Shadow_Reveal",
"type": "effect_type",
"max_duration": "60 s",
"name": [ "Revealed" ],
"desc": [ "The shadows no longer hide you!" ],
"rating": "bad",
"show_intensity": false,
"show_in_info": true,
"enchantments": [ { "condition": "ALWAYS", "values": [ { "value": "LUMINATION", "add": 10 } ] } ]
},
{
"id": "photophobia",
"type": "effect_type",
"max_duration": "5 s",
"name": [ "photophobia" ],
"base_mods": { "speed_mod": [ -100 ] },
"desc": [ "It burns! Thankfully, this can't ever happen to you. This is a bug if you have it." ],
"rating": "bad",
"show_intensity": false,
"show_in_info": true,
"//": "Enchantments don't actually work for monsters! If you find that shadow is suddenly very killable, they probably got hooked up!",
"enchantments": [
{
"condition": "ALWAYS",
"values": [
{ "value": "SPEED", "multiply": 0.5 },
{ "value": "ARMOR_BASH", "add": 15 },
{ "value": "ARMOR_STAB", "add": 15 },
{ "value": "ARMOR_CUT", "add": 15 },
{ "value": "ARMOR_HEAT", "add": 15 },
{ "value": "ARMOR_COLD", "add": 15 },
{ "value": "ARMOR_ELEC", "add": 15 },
{ "value": "ARMOR_ACID", "add": 15 },
{ "value": "ARMOR_BULLET", "add": 400 }
]
}
]
},
{
"type": "effect_type",
"id": "molting",
Expand Down
37 changes: 33 additions & 4 deletions data/json/field_type.json
Original file line number Diff line number Diff line change
Expand Up @@ -454,11 +454,21 @@
"translucency": 1,
"effects": [
{
"effect_id": "smoke",
"effect_id": "smoke_eyes",
"body_part": "eyes",
"intensity": 1,
"min_duration": "2 seconds",
"max_duration": "2 seconds",
"immunity_data": { "body_part_env_resistance": [ [ "sensor", 3 ] ] },
"immune_inside_vehicle": true
},
{
"effect_id": "smoke_lungs",
"body_part": "mouth",
"intensity": 1,
"min_duration": "2 seconds",
"max_duration": "2 seconds",
"immunity_data": { "body_part_env_resistance": [ [ "mouth", 3 ] ] },
"immune_inside_vehicle": true
}
]
Expand All @@ -470,11 +480,21 @@
"translucency": 10,
"effects": [
{
"effect_id": "smoke",
"effect_id": "smoke_eyes",
"body_part": "eyes",
"intensity": 2,
"min_duration": "7 seconds",
"max_duration": "7 seconds",
"immunity_data": { "body_part_env_resistance": [ [ "sensor", 5 ] ] },
"immune_inside_vehicle": true
},
{
"effect_id": "smoke_lungs",
"body_part": "mouth",
"intensity": 2,
"min_duration": "7 seconds",
"max_duration": "7 seconds",
"immunity_data": { "body_part_env_resistance": [ [ "mouth", 5 ] ] },
"immune_inside_vehicle": true
}
],
Expand All @@ -486,11 +506,21 @@
"translucency": 0,
"effects": [
{
"effect_id": "smoke",
"effect_id": "smoke_eyes",
"body_part": "eyes",
"intensity": 4,
"min_duration": "15 seconds",
"max_duration": "15 seconds",
"immunity_data": { "body_part_env_resistance": [ [ "sensor", 7 ] ] },
"immune_inside_vehicle": true
},
{
"effect_id": "smoke_lungs",
"body_part": "mouth",
"intensity": 4,
"min_duration": "15 seconds",
"max_duration": "15 seconds",
"immunity_data": { "body_part_env_resistance": [ [ "mouth", 7 ] ] },
"immune_inside_vehicle": true
}
],
Expand All @@ -502,7 +532,6 @@
"dirty_transparency_cache": true,
"percent_spread": 10,
"outdoor_age_speedup": "0 turns",
"immunity_data": { "body_part_env_resistance": [ [ "mouth", 7 ] ] },
"priority": 8,
"half_life": "2 minutes",
"phase": "gas",
Expand Down
3 changes: 1 addition & 2 deletions data/json/furniture_and_terrain/furniture-appliances.json
Original file line number Diff line number Diff line change
Expand Up @@ -383,8 +383,7 @@
{ "item": "steel_chunk", "count": [ 0, 3 ] },
{ "item": "scrap", "count": [ 0, 6 ] },
{ "item": "element", "count": [ 1, 3 ] },
{ "item": "cable", "charges": [ 1, 3 ] },
{ "item": "pilot_light", "count": 1 }
{ "item": "cable", "charges": [ 1, 3 ] }
]
},
"crafting_pseudo_item": "oven"
Expand Down
Loading

0 comments on commit 55b51f3

Please sign in to comment.