gameconst

package
v0.0.0-...-d7572e3 Latest Latest
Warning

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

Go to latest
Published: Mar 14, 2022 License: Apache-2.0 Imports: 1 Imported by: 0

Documentation

Index

Constants

View Source
const (

	// packet viewport size
	ViewPortW  = 19
	ViewPortH  = 19
	ViewPortWH = ViewPortW * ViewPortH

	// client gl viewport tile size
	ClientViewPortW = ViewPortW * 3
	ClientViewPortH = ViewPortH * 3

	// turn to del in floor CarryObj
	CarryingObjectLifeTurnInFloor = 400

	InitCarryObjEquipCount = 2
	InitPotionCount        = 4
	InitScrollCount        = 1
	InitGoldMean           = 100

	DropCarryObjonActiveObjDeathRate = 0.5

	TowerBaseBiasLen     = 100
	FloorBaseBiasLen     = 100
	ActiveObjBaseBiasLen = 100.0

	MaxLevel = 100

	HPBase     = 100.0
	HPPerLevel = 20.0

	SPBase     = 100.0
	SPPerLevel = 10.0

	APBase     = 1.0
	APPerLevel = 0.1

	SightBase     = 10
	SightXray     = math.MaxFloat32
	SightBlock    = SightXray / ViewPortWH
	SightPerLevel = 0.5

	RebirthHPRate = 0.8
	RebirthSPRate = 0.8

	ActiveObjRebirthWaitTurn = 10

	// carryingobject weight, price
	MoneyGram     = 0.1
	EquipABSGram  = 100.0
	EquipABSValue = 100.0
	PotionGram    = 100.0
	PotionValue   = 100.0
	ScrollGram    = 100.0
	ScrollValue   = 100.0

	LvGram = ActiveObjBaseBiasLen/4*EquipABSGram + PotionGram*2 + ScrollGram*1 + MoneyGram*10000

	CarryObjRecycleRate = 0.5

	MaxChatLen = 80

	AttackLongLen = 4
)

game const

View Source
const (

	// find floor
	ActiveObjExp_VisitFloor = 500
	// discover all floor per tile
	ActiveObjExp_CompleteFloorPerTile = 1
	// discover a tile
	ActiveObjExp_DiscoverTile = 1

	// battle experience
	// kill ao per level
	ActiveObjExp_KillLevel = 10
	// deal damage ao per damage
	ActiveObjExp_Damage = 1
	// reduce battle exp when die
	ActiveObjExp_DieRate = 0.99
)

activeobject experience constant

View Source
const (
	SendBufferSize = 100
)

service const

Variables

This section is empty.

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