controllers

package
v2.0.0-...-159251d Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Sep 28, 2024 License: GPL-3.0 Imports: 9 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func CompleteCombatOrder

func CompleteCombatOrder(task models.Task) (string, error)

func CompleteCraftingOrder

func CompleteCraftingOrder(task models.Task) (string, error)

func CraftingLevelCheck

func CraftingLevelCheck(craftingAction string, item *models.ItemDetails) error

CraftingLevelCheck Looks at the item to be crafted and checks that the users crafting level allows it.

func DepositAllInventory

func DepositAllInventory(inventory []models.InventorySlot)

func Move

func Move(destinationBuildingName string) error

func WithdrawCraftingItems

func WithdrawCraftingItems(quantity int, items *models.ItemDetails) (int, error)

WithdrawCraftingItems Calculates the maximum items that can be crafted per inventory. Retrieves all the materials and returns the maximum craftable per inventory.

Types

This section is empty.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL