W1K
Witch
We all love sandbox games, we love Terraria because it's a sandbox game. A lot of games following the same genre (take example Minecraft) have fully implemented simple and effective survival elements to make their own games even more interesting. Specifically refering to Minecraft, which was my main inspiration on producing such a mod, while not particularly complex, I always thought its hunger system was well placed and effective, one of its prime features meant to give the player the feel of constant struggle, no matter how much they advance in technologies and resources, they are human beings, they do and will always need to eat to guarantee their survival. I always felt Terraria was not quite meant to have survival elements in the first place as it is a game much more centered around adventuring and platforming action, but in true sandbox feel, why not have the option for it, why not mix Terraria's amazing fast paced platforming features with survival elements? That's where this mod jumps in.
Prime Needs has one purpose: Introducing primary needs to Terraria.
Currently, only hunger and thirst are supported. Planned features include potentially heat and everything you would expect from a mod involving primary needs.
For now, let me explain how hunger and thirst work.
Straight and simple, the player's character will now get hungry and thirsty after a certain time has passed without eating any food or drinking any water. New bars positioned below the health bar (and under the minimap if shown) will make the player aware of the current hunger level. Hovering the mouse over the bar shows the current numerical values.
Hunger has different effects on the character's performances:
- A character with 80% and above of their food AND water bar will have a permanent Well Fed buff (only if the water bar is also above 80% too, when thirst is enabled).
- A character with 20% and less of their food OR water bar will have a permanent Weak debuff and no regeneration as if affected by Bleeding.
- A character with 0% of their food OR water bar will start being damaged by starvation/dehydration at a rate of 3% life per second.
- Standing still does not deplete the food/water bar, moving however depletes it at a rate of 1 point every 10 seconds of movement.
As a result of this mechanic:
- It is not possible to get Well Fed or Weak under normal circumstances anymore.
- Food items include Mushrooms, Vile Mushrooms and every item granting Well Fed buff.
-- Mushrooms replenish the food bar by 7.
-- Vile Mushrooms replenish the food bar by 20 but grants the Poisoned debuff for 10 seconds.
-- Every food granting a Well Fed buff will now instead replenish the food bar by an amount equal to 5 per minute (Bowl of Soup normally grants Well Fed for 10 minutes, it now fills the food bar by 50 on use).
- Drinks, currently only one vanilla drink is supported, Bottled Water:
-- Bottled Water, now called "Bottled Water (Dirty)", will replenish the water bar by 20 with a 25% chance of poisoning for 2 minutes.
-- Dirty water can be purified at a Furnace/Campfire to make "Bottled Water (Purified)", granting 50% extra replenish and 0% chance of poisoning.
-- It is also possible to drink straight from a water source, incurring in the same penalties as drinking Dirty Water.
- Every Bottled Water (Dirty Water, Purified Water) can be used for any crafting recipe requiring Bottled Water.
Along with the vanilla edits, external mods are also supported. Every mod item granting Well Fed bonus will also work as food. There are two ways of making your mod compatible:
- Make your custom food items grant a Well Fed buff. To assign buffTime, follow the formula "3600*X" where X is the food value you want to grant to your item. The item's tooltip will automatically be updated to list the food value it grants (note, if your item has a tooltip, make sure to leave the first tooltip blank so that it is not accidentally replaced).
- In your item's json, add the parameter "W1KPN:Food" or "W1KPN:Water" and give it an int value equal to the food/water value you want the item to grant on use. This is a simpler method, however the tooltip will not automatically update and you'll need to give your item a custom tooltip stating the food value if you wish.
Currently, not all functions from the tConfig version are supported due to some limitations. Changing the vanilla items food values is not possible (however you CAN change the vanilla Well Fed buffs times). Speeding up/slowing down hunger/thirst are not supported by external mods, but they can be changed in the mod's config menu. All these might come back at a later time, but they might need Prime Needs to be set as a dependency for the mod you wish for it to support.
An example plugin mod can be found here.
This is all for now, all feedback is appreciated.
Download
Mirror
Version: 1.0.1
TAPI Version: r15
Last Updated: Jun 11 2015 (GMT)
Consider using the main download link, aka adfly. It provides us programmers with an extremely minimal source of income along with a way of easily keeping track of downloads. We spend our time on free contents, we are not entitled to anybody's gratitude, but be ensured every modder who makes use of adfly links will be grateful for your support if you decide to get through its minimal 5 seconds wait in exchange of hours spent by our hands on such mods.
Changelogs
1.0.1
------------------------------------
Credits
@darthmorf - Thirst bar icons
@Zoodletec - Hunger bar icons
------------------------------------
W1K's main thread of swaggities and mods. Mainly mods.
Mirror
Version: 1.0.1
TAPI Version: r15
Last Updated: Jun 11 2015 (GMT)
Consider using the main download link, aka adfly. It provides us programmers with an extremely minimal source of income along with a way of easily keeping track of downloads. We spend our time on free contents, we are not entitled to anybody's gratitude, but be ensured every modder who makes use of adfly links will be grateful for your support if you decide to get through its minimal 5 seconds wait in exchange of hours spent by our hands on such mods.
Changelogs
1.0.1
------------------------------------
Credits
@darthmorf - Thirst bar icons
@Zoodletec - Hunger bar icons
------------------------------------
W1K's main thread of swaggities and mods. Mainly mods.
Last edited: