Skip to content
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

Closed
wants to merge 8 commits into from
Closed

Optional worldmod to disable lifting requirements (strength and lifting quality) #24053

wants to merge 8 commits into from

Conversation

Wad67
Copy link

@Wad67 Wad67 commented Jun 19, 2018

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( ).

Updating tined eating instrument
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.
Fixed up the two if statements that were a bit squashed.
Thanks Fuji
@@ -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" ) ) {
Copy link
Contributor

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.

Copy link
Author

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.

@Night-Pryanik
Copy link
Contributor

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?

@Night-Pryanik Night-Pryanik added Mods Issues related to mods or modding Vehicles Vehicles, parts, mechanics & interactions labels Jun 19, 2018
@Wad67
Copy link
Author

Wad67 commented Jun 19, 2018

Not entirely sure what you are asking.
The purpose of this mod is to optionally remove something that people aren't interested in dealing with.
Similar to prevent zombie revivification and simplified nutrition, it is an optional revert of a feature #16280

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.
@NickGrease
Copy link
Contributor

Just a little nit-pic, this doesn't really revert. It removes. I'd be happy with reverting back to JACK, or calling the PR what it really is. The same way Simplified Nutrition doesn't remove eating.

@Wad67
Copy link
Author

Wad67 commented Jun 19, 2018

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.

@NickGrease
Copy link
Contributor

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.

@Wad67
Copy link
Author

Wad67 commented Jun 19, 2018

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.
If I just disabled lifting, it would still be restricted by strength(even more so by the absence of lifting equipment).

@DoctorGoat
Copy link
Contributor

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.

@NickGrease
Copy link
Contributor

Since this is an Option i'm not to concerned, just wanted to point out this is a removal (of Strength), and would like to see that in the PR title if only for clarity. Future searches are easier with well labeled PR's.

@Wad67 Wad67 changed the title Optional worldmod to disable lifting requirements Optional worldmod to disable lifting requirements (strength and lifting quality) Jun 19, 2018
@ghost
Copy link

ghost commented Jun 19, 2018

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.

@Leland
Copy link
Contributor

Leland commented Jun 19, 2018

Any interest in signing as the author and maintainer of the mod?

@Wad67
Copy link
Author

Wad67 commented Jun 20, 2018

Sure, don't know where I would do that though.

@DracoGriffin
Copy link
Contributor

Just add a line in here (generally under "name") with "authors":

  {
    "type": "MOD_INFO",
    "ident": "disable_lifting",
    "name": "No Lifting Reqs",
    "description": "Strength checks and lifting qualities are no longer required for installing or removing vehicle parts.",
    "category": "rebalance",
    "dependencies": [ "dda" ]
  },

Example:

  {
    "type": "MOD_INFO",
    "ident": "disable_lifting",
    "name": "No Lifting Reqs",
+    "authors": "Wad67",
    "description": "Strength checks and lifting qualities are no longer required for installing or removing vehicle parts.",
    "category": "rebalance",
    "dependencies": [ "dda" ]
  },

@Wad67
Copy link
Author

Wad67 commented Jun 20, 2018

Okay, done.

@BorkBorkGoesTheCode
Copy link
Contributor

The plus is a typo.

@Wad67
Copy link
Author

Wad67 commented Jun 20, 2018

Are you referring to the one in DracoGriffin's example, or some other '+' ?

@DracoGriffin
Copy link
Contributor

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.

@BorkBorkGoesTheCode
Copy link
Contributor

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.

@Wad67
Copy link
Author

Wad67 commented Jun 20, 2018

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.

@Mecares
Copy link
Contributor

Mecares commented Jun 20, 2018

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.

@Wad67
Copy link
Author

Wad67 commented Jun 20, 2018

Already an issue for that one, see: #23094
Granitecosmos mentioned they might have something in the works.

@kevingranade
Copy link
Member

kevingranade commented Jun 20, 2018 via email

@Wad67
Copy link
Author

Wad67 commented Jun 20, 2018

Fair enough then.

@Wad67 Wad67 closed this Jun 20, 2018
Wad67 added a commit to Wad67/Cataclysm-BN that referenced this pull request Aug 29, 2020
Coolthulhu added a commit to cataclysmbnteam/Cataclysm-BN that referenced this pull request Sep 3, 2020
…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
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Mods Issues related to mods or modding Vehicles Vehicles, parts, mechanics & interactions
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

9 participants