-
Notifications
You must be signed in to change notification settings - Fork 4.2k
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
Optional worldmod to disable lifting requirements (strength and lifting quality) #24053
Conversation
Updating tined eating instrument
The right way round
Could not figure out how to include the world mod without alterting .gitignore Unable to ignore .gitignore so ¯\_(ツ)_/¯ Adds DISABLE_LIFTING world option, mod and relevant 'overrides' to can_install_part() and can_remove_part( ).
Had to remove 'mods/' temporarily.
…ysm-DDA into DisableRequirements
src/veh_interact.cpp
Outdated
@@ -605,6 +605,10 @@ bool veh_interact::can_install_part() { | |||
str = base.lift_strength(); | |||
use_aid = max_lift >= lvl; | |||
use_str = g->u.can_lift( base ); | |||
if( get_option<bool>( "DISABLE_LIFTING" ) ) { |
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.
This check should be done earlier. I.e. if this option is active, there's no need to calculate use_aid
and use_str
at all.
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.
Okay, I'll see what I can do.
Please do tell me: when even a wimp has an ability to lift heavy vehicle parts with their bare hands, this adds something incredibly fun or interesting to the game? |
Not entirely sure what you are asking. |
Note that the UI still requires values for qual, lvl and str. I don't intend to alter the UI so that these are not required. But if absolutely required I will attempt to do so.
Just a little nit-pic, this doesn't really revert. It removes. I'd be happy with reverting back to |
Apologies, I wasn't aware that jacking was a requirement for parts before lifting. Unless you are referring to the jacking quality required for tires, which is left untouched. |
I could be totally wrong, but I think engines at least had a JACK quality. Also, I'm pretty sure most everything had a strength check, which this seems to be removing. If, I'm wrong my apologies. |
Yes, the strength check is removed also as I consider it to be a 'lifting' requirement. Note that this only effects part removals and installations. |
I'm in favor of things like this. It's good to be able to customize your game, and a customization like this won't cause problems for maintenance due to its simplicity. |
Since this is an |
Agreed that this is a good thing. People come to Cata for different things - some praise its realism, and some praise the crazy stuff and gameplay. Allowing both parties to enjoy the game more fully is, in my eyes, a good thing no matter how you view it. |
Any interest in signing as the author and maintainer of the mod? |
Sure, don't know where I would do that though. |
Just add a line in here (generally under "name") with "authors":
Example:
|
Okay, done. |
The plus is a typo. |
Are you referring to the one in DracoGriffin's example, or some other '+' ? |
I think BorkBork was trying to point out my + was a "typo", but I was just trying make sure you saw the line. However, you added the code perfectly so there is no issue with your PR. |
Half correct; I also misinterpreted the plus in the changelog. |
It was a bit confusing given the context, I was under the impression I slipped a plus in by accident as well. A quick check proved otherwise though. |
I would like a non game option solution to the problem of limited lifting possibilities, like allow to disassemble a rope and pulley to make your own tripod pulley with a reasonable easy crafting recipe. |
Already an issue for that one, see: #23094 |
If it's too hard to arrange for a lifting device, just debug one in, or add
a handheld lifting device to your mod along with numerous spawn locations
for it, or add the lifting quality to heavy sticks.
I'm not interested in supporting code to disable arbitrary features
scattered throughout the code.
|
Fair enough then. |
Based on previous attempt: CleverRaven/Cataclysm-DDA#24053
…ng quality) (#42) * Initial implementation of mod Based on previous attempt: CleverRaven/Cataclysm-DDA#24053 * Astyle modinfo.json * do not check aid or strength when installing parts * Astyling * Do not display lifting and strength requirements if disabled Happy to remove the string if needed * No string for disabled requirements Might require further investigation into the display of 'Additional Requirements' * Json Styling Windows defender was preventing make style-json from running correctly * Only display additional requirements if they exist * Show jacking when required, remove irrelevant calculations * Astyle
This is a small, optional 're-balance' mod that simply bypasses the checks for lifting quality and strength when adding or removing vehicle parts.
Adds DISABLE_LIFTING world option, mod and relevant 'overrides' to can_install_part() and can_remove_part( ).