Saving stamina #13

Closed
opened 2015-07-28 14:45:23 -07:00 by Bremaweb · 2 comments
Bremaweb commented 2015-07-28 14:45:23 -07:00 (Migrated from github.com)

The stamina file needs to be saved at regular intervals instead of just at server shutdown. If there is a crash changes to a player's stamina will be lost.

The stamina file needs to be saved at regular intervals instead of just at server shutdown. If there is a crash changes to a player's stamina will be lost.
asl97 commented 2015-07-29 23:38:05 -07:00 (Migrated from github.com)

what's is the point of stamina?
as far as i can tell, it isn't use at all.

also 9cb663d488 doesn't cleanly fix this.

what's is the point of stamina? as far as i can tell, it isn't use at all. also https://github.com/Bremaweb/adventuretest/commit/9cb663d488cb5f1cc7d5a7523356cba4b23f1e8b doesn't cleanly fix this.
Bremaweb commented 2015-07-30 07:35:31 -07:00 (Migrated from github.com)

Line 47 of energy.lua is where stamina is applied to the energy adjustment. Stamina helps you use less energy when moving, regain energy faster when standing, sitting, or sleeping.

Line 47 of energy.lua is where stamina is applied to the energy adjustment. Stamina helps you use less energy when moving, regain energy faster when standing, sitting, or sleeping.
Sign in to join this conversation.
No Milestone
No Assignees
1 Participants
Notifications
Due Date
The due date is invalid or out of range. Please use the format 'yyyy-mm-dd'.

No due date set.

Dependencies

No dependencies set.

Reference: minenux/minetest-game-adventuretest#13
There is no content yet.