industry

package
v0.0.0-...-efc180c Latest Latest
Warning

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

Go to latest
Published: Jul 8, 2021 License: Apache-2.0 Imports: 4 Imported by: 1

Documentation

Overview

Package industry calculates the output from manufacturing, reprocessing, and other industrial processes.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func ReprocessItem

func ReprocessItem(db evego.Database, item *evego.Item, quantity int, stationYield float64, taxRate float64, skills ReproSkills) ([]evego.InventoryLine, error)

ReprocessItem is a convenience function for reprocessing a single item.

func ReprocessItems

func ReprocessItems(db evego.Database, items []evego.InventoryLine, stationYield float64, taxRate float64, skills ReproSkills) ([]evego.InventoryLine, error)

ReprocessItems reprocesses a number of items, consolidating stacks of each output item. The input station yield and tax rate are expressed as a number in 0..1 (e.g. 0.05 for 5%).

func StationTax

func StationTax(standing float64) float64

StationTax returns the tax rate for an NPC station based on the character's standing.

Types

type ReproSkills

type ReproSkills struct {
	Reprocessing           int
	ReprocessingEfficiency int
	ScrapmetalProcessing   int
	OreProcessing          map[string]int
}

ReproSkills is a character's skills that are applicable to reprocessing.

Jump to

Keyboard shortcuts

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