Documentation
¶
Overview ¶
Package gamelogic provides functions for game logic
Package gamelogic provides functions for game logic ¶
Package gamelogic provides functions for game logic ¶
Package gamelogic provides functions for game logic
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var Capacity_Harvester float64 = 10
View Source
var Capacity_Invoker float64 = 0
Golem Capacity
Functions ¶
func CalculateManaRegen ¶
Update mana value based on time since last update, return the updated userData
func CalculateTravelArrived ¶
Update whether golem arrived at destination, return the updated userData
func CalculateUserUpdates ¶
Calculates all updates to the user object based on game logic, saving to db & returns the updated user
func TryManaPurchase ¶
Attempt to do something using mana, return if successful and the new mana value
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.