eXish / lc-batteries

The mod "Batteries" for the game Lethal Company.
GNU General Public License v3.0
0 stars 0 forks source link

Small suggestion about Batteries mod and Lethalprogression :) #2

Open Uniteria opened 8 months ago

Uniteria commented 8 months ago

Hey! I'm using your mod on my server and kinda love it. The thing is, we also use Lethalprogression, so our flashlights have slightly increased lifespan. Question is: Is it possible to make it work together? Like when you have 200% flashlight, and battery in config is set up to 2 instead of 1, it should charge flashlight to 200%? If so, then i'll be so glad since it open new mechanic to the game with batteries as main source of power rather than ship charger.

I've tested it and battery only charge up to 100% (5 minutes) even when set to 2, 5, 10 etc.

eXish commented 8 months ago

The mod currently assumes that the lifespan of all charged weapons have the vanilla maximum. I'm not sure if I missed a variable that would actually tell me what the maximum for an item is but I can investigate to see if I can find one to make this work. Even if I can't I can always add in like a plugin check or something to see if lethalprogression is present and then have to code execute based on that. Thanks for the report!

Uniteria commented 8 months ago

The mod currently assumes that the lifespan of all charged weapons have the vanilla maximum. I'm not sure if I missed a variable that would actually tell me what the maximum for an item is but I can investigate to see if I can find one to make this work. Even if I can't I can always add in like a plugin check or something to see if lethalprogression is present and then have to code execute based on that. Thanks for the report!

That's awesome! Thanks a lot :) Will look forward into it when fix appears :D