constants

package
v1.0.0 Latest Latest
Warning

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

Go to latest
Published: Oct 13, 2020 License: MIT Imports: 0 Imported by: 5

Documentation

Overview

Package constants holds all constant information used in application

Index

Constants

View Source
const (
	APP_WEBAPP_PORT = 12356
	APP_WEBAPP_HOST = "127.0.0.1"
	APP_WEBAPP_URL  = APP_WEBAPP_HOST + ":" + string(rune(APP_WEBAPP_PORT))

	APP_VERSION_CHECK_URL_BETA   = "https://github.com/kovansky/dndEncounterCalculator/raw/develop/versioning/latest-beta.txt"
	APP_VERSION_CHECK_URL_STABLE = "https://github.com/kovansky/dndEncounterCalculator/raw/develop/versioning/latest-stable.txt"
	APP_VERSION_CURRENT          = "1.0.0-STABLE"
	APP_VERSION_CODENAME         = "YMIR"
	APP_UPDATE_URL               = "https://github.com/kovansky/dndEncounterCalculator/releases/tag/v%s"

	APP_GITHUB_REPO = "https://github.com/kovansky/dndEncounterCalculator"
	APP_AUTHOR      = "F4 Developer (Stanisław Kowański)"
	APP_AUTHOR_URL  = "https://f4dev.me"
)

Variables

View Source
var (
	//EasyThresholds is a variable (considered as constant), that holds D&D thresholds for an easy encounter for each player level.
	EasyThresholds = map[int]int{
		1:  25,
		2:  50,
		3:  75,
		4:  125,
		5:  250,
		6:  300,
		7:  350,
		8:  450,
		9:  550,
		10: 600,
		11: 800,
		12: 1000,
		13: 1100,
		14: 1250,
		15: 1400,
		16: 1600,
		17: 2000,
		18: 2100,
		19: 2400,
		20: 2800,
	}
	//MediumThresholds is a variable (considered as constant), that holds D&D thresholds for an medium encounter for each player level.
	MediumThresholds = map[int]int{
		1:  50,
		2:  100,
		3:  150,
		4:  250,
		5:  500,
		6:  600,
		7:  750,
		8:  900,
		9:  1100,
		10: 1200,
		11: 1600,
		12: 2000,
		13: 2200,
		14: 2500,
		15: 2800,
		16: 3200,
		17: 3900,
		18: 4200,
		19: 4900,
		20: 5700,
	}
	//HardThresholds is a variable (considered as constant), that holds D&D thresholds for an hard encounter for each player level.
	HardThresholds = map[int]int{
		1:  75,
		2:  150,
		3:  225,
		4:  375,
		5:  750,
		6:  900,
		7:  1100,
		8:  1400,
		9:  1600,
		10: 1900,
		11: 2400,
		12: 3000,
		13: 3400,
		14: 3800,
		15: 4300,
		16: 4800,
		17: 5900,
		18: 6300,
		19: 7300,
		20: 8500,
	}
	//DeadlyThresholds is a variable (considered as constant), that holds D&D thresholds for an deadly encounter for each player level.
	DeadlyThresholds = map[int]int{
		1:  100,
		2:  200,
		3:  400,
		4:  500,
		5:  1100,
		6:  1400,
		7:  1700,
		8:  2100,
		9:  2400,
		10: 2800,
		11: 3600,
		12: 4500,
		13: 5100,
		14: 5700,
		15: 6400,
		16: 7200,
		17: 8800,
		18: 9500,
		19: 10900,
		20: 12700,
	}
)
View Source
var CRXP = map[float32]int{
	0:     0,
	0.125: 25,
	0.250: 50,
	0.5:   100,
	1:     200,
	2:     450,
	3:     700,
	4:     1100,
	5:     1800,
	6:     2300,
	7:     2900,
	8:     3900,
	9:     5000,
	10:    5900,
	11:    7200,
	12:    8400,
	13:    10000,
	14:    11500,
	15:    13000,
	16:    15000,
	17:    18000,
	18:    20000,
	19:    22000,
	20:    25000,
	21:    33000,
	22:    41000,
	23:    50000,
	24:    62000,
	25:    75000,
	26:    90000,
	27:    105000,
	28:    120000,
	29:    135000,
	30:    155000,
}

CRXP is a variable (considered as constant), that holds the relation between the D&D monsters CR and their XP values

Functions

This section is empty.

Types

This section is empty.

Jump to

Keyboard shortcuts

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