Horizon's Gate

Horizon's Gate

Individual Thirst and Hunger mechanics, by Mafe
 This topic has been pinned, so it's probably important
Mafe  [developer] 31 Jul, 2024 @ 5:48pm
In depth mod mechanics
Miscalleneous
-- On the description for "Cargo" stat of ships, this mod adds lots of useful information to make the player life easier: To easly view chance of stuff to happen, remaining water bottles/barrels, consumption percent, etc
-- Market of any port sells barrels of water and offers other services, like hydratation or refilling empty bottles of you stash with water
-- Healing of HP/MP by the rations of this mod will get a bonus amount when someone with the Medic passive (Scout) uses them, restoring even more of those.

In combat, Thirst and Hunger:
-- Mechanic that only affects you and you crew, not the enemy, while in combat.
-- Hunger and Thirst are repressented by an stacking status that cannot be dispelled or cured by normal means and that grows each turn based on specific conditions. Both of those stack up to a max of 10.
-- Hunger is tied to HP while Thirst its tied to MP. For those to start activating, you must have less than 66% of they total value (For example, an unit with 40 HP will start gaining hunger once they HP becomes less than 40x0.66=26). If condition is met, at the start of the turn the actor will gain a level of Thirst or Hunger (or both since both have they own separate checks).
-- By themselfs, Hunger and Thirst wont do anything until those start to reach bigger stacks, and starting from 4, they will beging to apply specific debuffs that cant be cured to the affected unit.
-- In order, the debuffs Hunger applies: -25% Evasion (4 stacks), -2 Physical Attack (6 stacks), -3 Physical Defense (8 stacks) and -1 Move (10 stacks)
-- In order, the debuffs Thirst applies: -2 Jump (4 stacks), -25% Resistance (6 stacks), -2 Magical Attack (8 stacks) and -3 Magical Defense (10 stacks)
-- To remove those statuses, you need to have you units to either be able to drink or eat, and this is done trought items added by the mod.
-- Any unit that is either a machine or an undead wont be affected by this mechanic at all.

While sailing:
Part A: Drinking meter
-- Each tile you move with you ship has a chance to raise by 1 the levels of the "Drinking/Thirst meter". Chance is: 2% base + 1% per Ship on you Fleet + ( 1/4 of the total amount of units you have hired) + 3% x the amount of "Thirst levels" you Crew has. Levels are displayed over you actual ship as an status, and each time a level rises, an small water FX will play over you ship.
-- Once the meter reaches 10, it will remove itself. If you had Bottles or Barrels of water, those will be consumed to prevent a Crew Morale penalty of -10%. A big water wave FX will play on you ship when this happens, and an small explosion circle will indicate that you didnt had any Water supply and that Crew Morale its being drained.
-- If a water supply was succesfully used, an icon will temporally be displayed on you ship, indicating the amount of water or barrels you have left after the meter reached 10 (it will show the one that has been consumed). This icon will also act as a "grace period" as long it is active, preventing the Drinking meter from rising again till it remains active. Its duration is 20 at base plus 20 per Ship you have on you Fleet.
-- Both Bottles of Water or Water Barrels can be used to sate the Fleet thirst. On the description of any ship you will see the remaining Bottles/Barrels you have and how many will be consumed once the meter reaches 10.
-- Barrels take priority over bottles and are also more efficient, being consumed at half the value while preventing you bottles from being consumed.
-- Bottles drinking consumption formula: 1 + the food consumption per day you Fleet has
-- Barrels drinking consumption formula: 1 + half the food consumption per day you Fleet has
Part B: Spoiling/rotting
-- While sailing, there is also a chance that some of you bottles of water or food rations will spoil and rot, becoming an useless toxic version. Food and water follow they own separatte triggers for this to happen, with they own formulas.
-- Note: The Food that can and may spoil its the Food added BY THIS MOD, not Vanilla food
-- Chance of Food spoiling is the sum of the 5% of any of the Food items added by this mod (4 in total)
-- Chance of Water spoiling is the sum of the 5% of any of the Water items added by this mod (3 in total)
-- Rotting can remove 1-3 of the respective item and replace it with its spoiled variant
-- After a rot check happens, it wont be able to happen again for another 72 in-game hours
-- Having Frozen barrels on you stash inventory prevents food spoiling. Should a rot check happens and if you have those on you inventory, it will consume 1 of those instead of messing with you food or water rations.

Status effects:
-- Hunger and Thirst: Explained above
-- Sated: Obtained after eating. Prevents the rise of Hunger on you unit and restores a bit of HP each turn (except if you are Poisoned)
-- Fresh: Obtained after drinking. Prevents the rise of Thirst on you unit and restores a bit of MP each turn (except if you are Poisoned)
-- Fasting and Drying: Do nothing by themselfs, but when expiring they removes Sated/Fresh respectivly and causes a fixed amount of Hunger/Thirst.

Items added by the mod and how to get them:
-- Water purifier: The main way to gather bottles of water witouth using Gold. Crafted with an Iron Chunk + Wood plank. This will give you a dart that you can use to spawn the actual Water purifier anywhere you wish (with certain limitations). After placing one, each day you are away from the zone it will recollect water. Putting empty bottles above it and waiting (pressing T, walking, etc) will start to slowly fill the empty bottles with water till you dont have more empty bottles or till the purifier water empties.
-- Oven: The main way to turn lots of vanilla food into the mod food rations for individual consumption. Crafted with an Iron Chunk + Steel Bar. This will give you a dart that you can use to spawn the actual Water purifier anywhere you wish (with certain limitations). After placing the Oven, it will need to be turned on. Any fire source will do. When active, it will be able to convert up to 300 Food/Deluxe Rations into proper rations that you units can eat. You have to place those above the Oven for the cooking to begin, then waiting some time (pressing T, walking, etc).
-- Bottles of Water: Can be purchased at any Port market, crafted (see above) or purchased to other fleets on the sea. Can be used to erase all the Thirst and its debuffs from you unit, restoring MP, giving "Fresh" and Magical Attack, and accellerating the next turn. All of those effects scale with the amount of Thirst it removed. Used while sailing for the Thirst meter (explained above). You start the game with 400 units of this item with the mod installed on a new save.
-- Barrels of Water: Can be purchased at any Port market or crafted (bottle of water + wood plank). They are used while sailing for the water consumption of the Thirst (explained above).
-- Frozen Barrels: Can be crafted by striking any Barrel of Water with ice magic. They are used to prevent food or water spoiling while sailing.
-- Food ration: Individual ration of food for you units to eat while in combat. Can be obtained from using an slaying weapon over vanilla food rations, by cooking vanilla food rations on an Oven or purchasing it from other fleets in the sea. When consumed, erases all Hunger from the unit, raising Physical Attack, restoring HP, acceleratting the next turn of the unit and awarding the "Sated" status effect. All of those effects scale with the amount of sated Hunger.
-- Deluxe individual rations: Can only be obtained trought an Oven and vanilla Deluxe Rations. This item its able to sate both Hunger and Thirst at the same time, but has the disadventage of not accelerrating time to act unlike the individual sources of water or food.
-- Salty Water and Rotten Rations: When consumed, those will erase Sated or Fresh from the unit and raise the Thirst or Hunger levels to the max. Avoid consumption, but may be useful in certain scenarios.
-- Special: All the sources of Food or Water that you units can consume (minus spoiled ones) can be turned into an area version, allowing them to sate Hunger or Thirst to several allies at once, at the cost of doing so with half of the efficiency. Combine any source with a bandage to produce it.

Cultives
-- WIP
< >
Showing 1-8 of 8 comments
KumaCat 1 Aug, 2024 @ 5:25am 
Hey Mafe!
Gonna test it a bit more later, but I think I found out what I have been troubling with.
If the water supply is successfully used, no meter is displayed on my ship indicating how much water I have left after the meter reached 10, indicating the grace period, instead just the ships name is shown. And, the amount shown that will be consumed in the tooltip doesnt get consumed, instead ALL my water gets consumed, first bottles then barrels.
I tried starting a new file with only this and the dependencies mod active, and the same happens. I also tried the same with the "test" and "beta" branches, but the same still.
I'm gonna try using different branches later, or just using this mod without the dependency one, but still just wanted to have this here for now.
Thanks for the in-depth explanation! I think I finally understood what was supposed to happen :)
KumaCat 1 Aug, 2024 @ 3:29pm 
Okay, tried a few other things.
Loaded the mod below the dependencies one, then only this mod, and tried other betas from older versions, but unfortunately couldn't make the mod work :( Every time my counter reaches 10 all my water barrels or bottles immediately get dumped in the water, and no icon is shown above my ship indicating the grace period. I might try this with a different combination of your survival collection, maybe there's something somewhere that might fix it
Mafe  [developer] 3 Aug, 2024 @ 12:00pm 
Hey Kuma

You shouldnt be really using the versions under the beta tab. They are either archive versions of the game (like when it went from 32 bits to 64 bits) or used when an active new patch beta its going on.

And about the issue... I cant really wrap my head about what its happenning with you in specific and I dont seem to be able to replicate the issue either. Do you still hanging out on Discord? I can help you better with more direct contact there. Or feel free to send me a request here on Steam either.
KumaCat 4 Aug, 2024 @ 7:31am 
I see... Sent you an invite :)
KumaCat 4 Aug, 2024 @ 3:45pm 
Just updated a video on Youtube:
https://youtu.be/-h9oW7iqffA
Hopefully, it shows the water crates bug I'm experiencing. Hope it's clear enough!
Mafe  [developer] 4 Aug, 2024 @ 4:00pm 
Allright, now I can see what its happenning to you. Game is properly registering the amounts of barrels/bottles that have to be consumed while sailing. To remove those, the game calls this action (this is just a segment of it) to remove the corresponding item. For example, here the barrels:

[AvAffecter]
ID=mafe_eralSed_act;
visibleMiss=false; visibleEvaluations=false;
harmful=false; useSeparateChanceRoll=true;
actorValue=task;
magnitude=removeItemFromParty,mafeWaterWood,@GmaEralSed_total2;
duration=-2;
chance=100*moreThan:9:t:mafe_eralSed*moreThan:0:partyItem:mafeWaterWood;

Substitutions (the @ you see there) its a new modding ability that allows us to have more precise control over "tasks". Removing items its a task, but on you case, you game its not recognizing it. And since it doesnt, it recognizes the default removal value as ALL the instances of the marked item. So that its why its eating all you barrels at once.

Kuma, are you extremly sure you are running the latest, non-beta game version? Cause otherwise on older versions, this fragment of the mod will always fail since it requires the substitutions feature to work.
KumaCat 4 Aug, 2024 @ 5:18pm 
I am... I think I'll uninstall and reinstall the game then. Thanks for the info, will keep you updated!
Edit: unfortunately, the error persists :( In the options menu, before starting the game on Steam, I made sure the Beta section has "none" selected, but I get the same error. I understand it's related to an update that somehow isn't working for me, so for now I'll just disable the mod and have this in mind for future bugs. I'm so sorry I made all this ruckus for a problem related to my computer (probably)! x0 Thank you for the patience
Last edited by KumaCat; 4 Aug, 2024 @ 5:58pm
Keyzo974 16 Jun @ 10:26am 
Hi, I love this mod but I'm sorry to say that I have the same issue as @KumaCat . I checked and I'm not on the beta branch. I'm losing all my water (bottle or barrel) when the thirst meter reach 10 on the overworld map. I had this issue happen with my full modlist so I'm tried with only this mod enable and it still happened.I also tried by starting a clean new game.
Last edited by Keyzo974; 16 Jun @ 10:27am
< >
Showing 1-8 of 8 comments
Per page: 1530 50