playercntl_rephacks

package
v0.106.0 Latest Latest
Warning

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

Go to latest
Published: Jan 6, 2025 License: AGPL-3.0 Imports: 4 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Config

type Config struct {
	DefaultReps map[cfgtype.FactionNick]Faction

	RephacksByID map[cfgtype.TractorID]Rephack
}

func Read

func Read(input_file *iniload.IniLoader) *Config

type Faction

type Faction struct {
	semantic.Model
	Nickname cfgtype.FactionNick

	Rep *semantic.Float

	// unknown: supposedly 0 means minimum or exact. 3 means maximum or exact.
	RepType *semantic.Int
}

func (Faction) GetRepType

func (f Faction) GetRepType() RepType

type RepType

type RepType int
const (

	// The adjustment mode. If the player's reputation for scRepGroup
	// is greater than fRep then make the reputation equal to fRep
	MODE_REP_LESSTHAN RepType = 0

	// The adjustment mode. If the player's reputation for scRepGroup
	// is less than fRep then make the reputation equal to fRep
	MODE_REP_GREATERTHAN RepType = 1

	// Don't change anything/ignore this reputation group.
	MODE_REP_NO_CHANGE RepType = 2

	// Fix the rep group to this level.
	MODE_REP_STATIC RepType = 3
)

func (RepType) ToStr

func (r RepType) ToStr() string

type Rephack

type Rephack struct {
	semantic.Model
	ID       *semantic.String
	Inherits *semantic.String
	Reps     map[cfgtype.FactionNick]Faction
}

Jump to

Keyboard shortcuts

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