-
Notifications
You must be signed in to change notification settings - Fork 283
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
feat(content): Support for antigrav #5502
Draft
David-Silva-Jr
wants to merge
15
commits into
cataclysmbnteam:main
Choose a base branch
from
David-Silva-Jr:support-for-antigrav
base: main
Could not load branches
Branch not found: {{ refName }}
Loading
Could not load tags
Nothing to show
Loading
Are you sure you want to change the base?
Some commits from the old base branch may be removed from the timeline,
and old review comments may become outdated.
+208
−61
Draft
Changes from all commits
Commits
Show all changes
15 commits
Select commit
Hold shift + click to select a range
aa936c6
Initial commit to add antigrav/repulsor support
David-Silva-Jr 1bf164f
Ran astyle formatter
David-Silva-Jr d471d97
Remove remaining references to is_rotorcraft
David-Silva-Jr a6b547d
Remove more helicopter assumptions
David-Silva-Jr 5904857
Fix invalid is_aircraft call
David-Silva-Jr 65c6082
Fix vpslot_repulsor data type
David-Silva-Jr 604eac0
actually define vpart_info::repulsion
David-Silva-Jr 98d91b6
change repulsor location to roof
David-Silva-Jr 9514821
Nyeheheheheh
chaosvolt 97e3d6a
* update display_stats to actually display lift for all lifters in ve…
David-Silva-Jr d0faba7
Merge branch 'support-for-antigrav' of https://github.com/David-Silva…
David-Silva-Jr 64c5aea
style(autofix.ci): automated formatting
autofix-ci[bot] a4bf883
Add a little space for consistency
David-Silva-Jr a788215
Correct repulsor vehicle part item json
David-Silva-Jr a52c0c7
fix lift display
David-Silva-Jr File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,17 @@ | ||
[ | ||
{ | ||
"id": "test_repulsor", | ||
"type": "GENERIC", | ||
"category": "veh_parts", | ||
"name": { "str": "test repulsor" }, | ||
"description": "This should never be visible in normal play.", | ||
"price": "50000 USD", | ||
"price_postapoc": "250 USD", | ||
"weight": "25000 g", | ||
"volume": "40000 ml", | ||
"looks_like": "broken_eyebot", | ||
"material": "steel", | ||
"symbol": "X", | ||
"color": "blue" | ||
} | ||
] |
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,32 @@ | ||
[ | ||
{ | ||
"abstract": "repulsor", | ||
"type": "vehicle_part", | ||
"location": "on_roof", | ||
"symbol": "*", | ||
"color": "light_blue", | ||
"broken_symbol": "O", | ||
"broken_color": "light_gray", | ||
"flags": [ "REPULSOR" ], | ||
"description": "A chrome sphere, sprouting wires at all angles. How does this even work?" | ||
Check failure on line 11 in data/json/vehicleparts/repulsors.json GitHub Actions / GCC 12, Ubuntu, Curses
|
||
}, | ||
{ | ||
"id": "test_repulsor", | ||
"copy-from": "repulsor", | ||
"type": "vehicle_part", | ||
"name": "test repulsor", | ||
"item": "test_repulsor", | ||
"//": "repulsion is in kilonewtons", | ||
"repulsion": 5, | ||
"requirements": { | ||
"install": { "skills": [ [ "mechanics", 7 ] ], "time": "2 h", "using": [ [ "welding_standard", 20 ] ] }, | ||
"removal": { "skills": [ [ "mechanics", 7 ] ], "time": "2 h", "using": [ [ "vehicle_weld_removal", 4 ] ] }, | ||
"repair": { "skills": [ [ "mechanics", 8 ] ], "time": "2 h", "using": [ [ "welding_standard", 20 ], [ "steel_tiny", 2 ] ] } | ||
}, | ||
"durability": 450, | ||
"description": "This should never be seen outside of testing.", | ||
"damage_modifier": 80, | ||
"breaks_into": [ { "item": "scrap", "count": [ 15, 30 ] }, { "item": "steel_chunk", "count": [ 8, 16 ] } ], | ||
"damage_reduction": { "all": 66 } | ||
} | ||
] |
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
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.
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Worth extracting to a
VPFLAG_*
, since it's going to be checked a lot.