Install Steam
login
|
language
简体中文 (Simplified Chinese)
繁體中文 (Traditional Chinese)
日本語 (Japanese)
한국어 (Korean)
ไทย (Thai)
Български (Bulgarian)
Čeština (Czech)
Dansk (Danish)
Deutsch (German)
Español - España (Spanish - Spain)
Español - Latinoamérica (Spanish - Latin America)
Ελληνικά (Greek)
Français (French)
Italiano (Italian)
Bahasa Indonesia (Indonesian)
Magyar (Hungarian)
Nederlands (Dutch)
Norsk (Norwegian)
Polski (Polish)
Português (Portuguese - Portugal)
Português - Brasil (Portuguese - Brazil)
Română (Romanian)
Русский (Russian)
Suomi (Finnish)
Svenska (Swedish)
Türkçe (Turkish)
Tiếng Việt (Vietnamese)
Українська (Ukrainian)
Report a translation problem
There's a mod that uses it here to increase the player's weight limit: https://steamhost.cn/steamcommunity_com/sharedfiles/filedetails/?id=863290994
onUpdateWeight(newWeight) {
if (this.data.playerWeight && this.data.playerWeight !== 100) {
return Math.ceil(newWeight / (this.data.playerWeight / 100));
}
}
current weight exposed via API and there is no real need of this hook, you can alter weight before\after turn complete
i want access to max weight and information about exact implementation \ formula.
in addition looks like there is no way to disable or alter overweight damage calculation or overweight slowdown directly, there are no events and no flags.
Reverse engineering?
There is a playerWeightBonus but I'm not sure how to use it, or if it's exactly what you want.
developer reply my review with command, that obviously utilize nonpublic part of API, i want that nonpublic part.
with different kind of drawbacks on getting too much items.
probably using negative weight is only way around hardcoded slowdown on overweight, can't see other way to still display weight.
https://steamhost.cn/steamcommunity_com/sharedfiles/filedetails/?id=721479594
As for the other hooks you might be after, I'll add a todo for adding all the weight hooks. We typically add hooks as modders/players request them as the codebase changes so rapidly, it costs quite a bit of time maintaining and testing them.
Luckily, even though the weight checks are hardcoded at the moment, they can be modified easily via console/modding and just redefine them to your liking. Here's likely the functions you are after (all accessed via localPlayer.):