Enhanced Hunger Mechanics #50
Labels
area: Code Quality
area: Compatibility
area: Extensibility
area: Gameplay Scalability
area: GUI
area: Player Ability
area: QoL/UX
area: Rendering
area: User Awareness
engine: World
feature: Expansion
feature: Update
gameplay: Balancing
gameplay: Enhancement
scope: Feature
status: Advisory
Requiring more ideas or brainstorming about issue.
status: Sketchy
Requiring more details and/or examples about issue.
type: Migrated
type: Plan
type: Proposal
type: Scheme
Milestone
Original: MinicraftPlus/minicraft-plus-revived#713
Background
Currently, the hunger system is simply just consuming hunger points by exhaustion time and whether decrementing consuming exhaustion time each tick. The system is quite unflexible when there are several actions that would "consume" exhaustion time in different extents, since it is difficult to set explicit values. Now they are mainly done by checking whether the current game time is a factor of 2 or random of a range equals to zero or such.
Details
By considering mature system like the one in Minecraft, the hunger system, the system can be expanded and standardized in a better way.
Exhaustion Levels
Firstly, turning the exhaustion time into exhaustion levels. The exhaustion level is checked and calculated each tick, so everything can be covered at once. Each actions and conditions would give different exhaustion levels; per a certain value of exhaustion levels, the hunger level decrements. This way, it can make sure that hunger exhaustion would not be too complicated or verbose, but instead more standardized and simple.
Food Saturation Level
Secondly, other than just the visual hunger points, there can be food saturation level. By eating food, the saturation level increases. In hunger level decrement, the saturation level is consumed before the hunger points. This can strengthen the effect of food saturation at the same time reduce the food demand. It is not necessary to visualize this value in the HUD like Apple Skin.
Effects of Hunger
The effects would focus on the health bar only. More would be implemented in the new proposed Stamina System (#77).
Given that health points, damage values and the hunger bar would be decimals, the effects would take place per tick. Player's hunger bar would be 20 as the maximum.
For each 1 HP is regenerated, the exhaustion level increases by 6. So a regeneration of 0.01 HP increases the exhaustion level by 0.06. This is calculated per tick.
See Also
The text was updated successfully, but these errors were encountered: