LCLegDayMod
Take a lot of steps and get a stamina boost, but stagnate or die and lose the gains!
By SimonTendo
Date uploaded | 4 months ago |
Version | 2.3.0 |
Download link | SimonTendo-LCLegDayMod-2.3.0.zip |
Downloads | 36721 |
Dependency string | SimonTendo-LCLegDayMod-2.3.0 |
This mod requires the following mods to function
BepInEx-BepInExPack
BepInEx pack for Mono Unity games. Preconfigured and ready to use.
Preferred version: 5.4.2100README
COMPANY-MANDATED MESSAGE:
Alright, that's it, we have had enough!
Employees, we are SEVERELY disappointed in everyone's physical abilities, and have therefore installed fitness software into your helmet's visor that will keep track of your movement throughout the day, to ensure all of you get enough exercise, get stronger, and, most importantly, get more scrap FASTER!!
This software should tell you when you have taken enough steps to feel stronger the next day, or if you've been such an incredibly lazy bum that your stamina has somehow decreased, so follow its advice to a T!
That is all for this message. We hope you stay a great asset to the Company.
The Mod
Introduction:
Tired from carrying scrap? Good! Feeling the burn is an essential part of growing stronger, so make sure to get enough exercise, so you'll be stronger and more durable in the future.
This mod will increase your stamina on days when you have taken a large number of steps. And this number will only get larger the more stamina you have, so don't get complacant, otherwise your stamina might drop back down again, maybe even below its starting value...
All this is communicated through the Fitness Witness, a 'helpful' on-screen tip-system that will tell you your amount of steps at the end of the day, and if your stamina has gone up, down, or remained the same.
Customization:
Want a bit more challenge? Head to the Mod Manager's Edit config, and edit LCLegDayMod.cfg to set how low you want your stamina to be able to go, or how high you dare try to push your maximum stamina. Set whether your stamina regenerates faster, or if deaths are punished harder. Choose the way your stamina changes are communicated and if you want your earned changes to be carried over between saves, and play the mod your way!
Creation:
- The calculated steps taken for this mod follows the in-game vanilla StepsTaken counter per player, and just applies the stamina change according to new rules I made and tested myself. So, I'll keep an eye on if my rules could need changing, but the way the steps are calculated likely won't.
- Made this mod as a creative exercise after the months-long journey that was the LCGoldScrapMod. It's simple, but I just wanted to see what I've learned so far and if I could have an interesting twist on the "more stamina mod"-idea than just making it infinite or simply a config option.
- Also my first mod so far that is just code. No asset bundles, just pure straight lines of code altering gameplay. Hope it works!
- Attention:
- Due to this mod being created as a client-side mod for the sake of personal customization, it also means you might maybe unknowingly play with someone who has the mod, and in the worst case somebody who edited their SaveData, and therefore has more stamina than you.
- For now, I am deciding to not make it a server-side mod and instead will keep it as-is, since the mod should balance itself out to prevent any sort of griefing, and if they wanted to cheat they could download plenty of other mods. And besides, having a beefed-up teammate can theoretically only be a good thing, right...?
Credits:
- I want to thank my friends with whom we have the joke of employees not being slowed down by heavy scrap because they didn't skip leg day. Without them, this mod wouldn't have happened (they're also just really cool people either way, so I'm thankful we play together every so often).
- And thank you for checking out or even downloading this mod!
CHANGELOG
v1.0.0
- Release
v1.1.0
- Calculation for steps taken now only counts half of the units moved while airborne from the jetpack or tulip snakes
- Added feedback to the Fitness Witness for when your stamina is at its minimum or maximum, and couldn't go any further down or up
- Bought the Fitness Witness Feedback DLC Expansion Pack 1 from the Company Gift Shop
v2.0.0
Update with changes, additions, and fixes, aimed at becoming a "full-fledged" mod
- Implemented SaveData:
- Newly earned stamina will be saved at the end of the day
- Previously saved stamina will be loaded every time you join a lobby
- Can be turned off with the new Config option [Save Stamina], described below
- Tweaked calculations for steps taken and stamina:
- Necessary steps to take to increase stamina is now directly related to the amount of players in the lobby
- The more players, the less steps everyone individually needs to take
- Caps at 12 players, at which point each player needs to take half the steps a single player would need
- Stamina regenerates slightly faster at higher total stamina values
- It will not be as fast as the default stamina regeneration, but should at least create less downtime
- Can be turned off with the new Config option [Enhanced Regeneration], described below
- Stamina-penalty for dying is now lower on consecutive deaths if you die multiple days in a row
- Can be turned off with the new Config option [Consecutive Deaths], described below
- Increased minimum amount of TZP-inhalant that needs to be used before it counts as active, to match the vanilla game's value
- Lowered weight needed to be carried in order to get the "carrying"-bonus
- Necessary steps to take to increase stamina is now directly related to the amount of players in the lobby
- Added 6 Config options:
- Load and Save:
- [Save Stamina] sets whether stamina will be saved and loaded, or will return to default upon joining a lobby, by default set to true
- Stamina:
- [Minimum Stamina] sets how low your stamina can drop before not going down anymore, by default set to 10
- [Maximum Stamina] sets how high your stamina can rise before not going up anymore, by default set to 30
- [Enhanced Regeneration] sets whether or not your stamina regenerates as slowly on higher stamina, by default set to true
- [Consecutive Deaths] sets whether or not the penalty for dying will become lower on deaths multiple days in a row, by default set to true
- If you'd like to have an experience similar to v1.0.0, I recommend keeping the Minimum at Maximum stamina at their default value, and setting all true/false Config options to false
- Load and Save:
- Added feedback to explain that steps taken are only counted on moons with limited time
- Fixed compatibility issues that would occur in combination with specific BepInEx configurations
- Mod should now always work, regardless of modpack or BepInEx configs
- Moved code that displays steps taken at the end of a day, to try to fix the bug of no feedback being displayed sometimes
- Optimized code to hopefully improve performance and be a bit cleaner
- Bought the Fitness Witness Feedback DLC Expansion Pack 2 from some guy on the street
v2.1.0
- Steps taken in flood-water and quicksand now count for more towards the total steps taken
- Added 2 more Config options:
- [Reset When Fired]
- If true, your stamina and consecutive deaths will be reset upon not meeting the profit quota. If false, your streak will not be broken.
- By default set to true
- [The Fitness Witness]
- If true, steps taken and stamina changes will be communicated through a full message from the Fitness Witness, like on previous versions. If false, only the stamina changes are communicated, which will be shown at the bottom of the screen in a simple pop-up.
- By default set to true
- [Reset When Fired]
- Fixed bug that dying at the Company with specific config settings would save decreased stamina, despite not changing after leaving the level
- Added Customization paragraph to readme
- Cleaned up loose ends to prepare for compatibility with future mods of mine
- Bought the Fitness Witness Feedback DLC Expansion Pack 3 from a mole named Cole
v2.1.1
- Start-of-day message explaining when steps are counted is now also turned off if Config option [The Fitness Witness] is set to false
v2.1.2
- Fixed possible bug of mod thinking that the player has died even though they haven't, by implementing additional checks
- Made various minor tweaks
v2.2.0
- Added Config option [Required Steps Multiplier]
- This option will let you multiply or divide the amount of steps necessary before your stamina will increase
- By default set to 1, and I recommend only changing this in case you play with mods that change the length of days
- Steps taken in flood-water now count for even more, to fit the large risk that floods pose by default
- Made further attempts to improve performance
- Won the Fitness Witness Feedback DLC Expansion Pack 4 from a crane game
v2.2.1
- Increased the amount of steps taken needed to increase stamina when playing with a team of more than 4 people
- Put a slight delay on the message displaying your steps taken and changed stamina, so it hopefully shows up more consistently
- Tweaked the check for doping by ensuring it only fires when using TZP-Inhalant, in case other mods influence the same variable
- Found the Fitness Witness Feedback DLC Expansion Pack 5 written on the back of a grocery shopping list
v2.2.2
- Fixed possible bug that stamina would be changed upon joining a lobby
v2.2.3
- Fixed possible bug if local player couldn't be found, by implementing additional checks
v2.2.4
- Fixed issue that stamina would be saved before having been loaded, saving the default Lethal Company stamina value
v2.3.0
- Tweaked which on-screen pop-ups will appear at the beginning of the day based on configs and loaded stamina
- Configs [Minimum Stamina] and [Maximum Stamina] now use sliders in the Thunderstore's Edit config settings
- Carrying a triple-digit weight will now grant even more steps towards the daily total
- Pushing the Company Cruiser will now count a little bit towards your stamina changes at the end of the day
- I mean come on that thing is heavy
- I had also wanted to implement getting steps when driving the car since there's a large risk in doing that, but the implementation turned out more performance-heavy than expected, and it wouldn't be "exercise" either way, so I decided to spend my time on other fixes and changes
- Fixed bug that stamina would be wrongly assigned if the selected moon changed immediately after transitioning to the next day
- Updated assembly reference to v56, and revamped a lot of code in the hopes of being tidier, and maybe even saving a tiny bit of performance
- Heroically won the Final Fitness Witness Feedback DLC Expansion Pack after winning a game of rock-paper-scissors to a Coil-head
On a side note, I have ideas for a bigger v3.0.0 update in the future, and it should be more exciting than just a regular update.
So, if you're still interested in this mod, I hope you'll look forward to it too, as I'm excited to see what I can do with it.
~Simon