Documentation
¶
Index ¶
- Constants
- func GetQuestCt(includeSecret bool) int
- func IsTokenAfter(currentToken string, nextToken string) bool
- func LoadDataFiles()
- func PartsToToken(questId int, questStep string) string
- func TokenToParts(questToken string) (questId int, questStep string)
- type Quest
- type QuestReward
- type QuestStep
Constants ¶
View Source
const (
QuestTokenSeparator = `-`
)
Variables ¶
This section is empty.
Functions ¶
func GetQuestCt ¶
func IsTokenAfter ¶
func PartsToToken ¶
func TokenToParts ¶
Types ¶
type Quest ¶
type Quest struct {
QuestId int
Name string
Description string
Secret bool // Secret quests are useful for marking some progress without making it known to the player
Steps []QuestStep // String identifiers for each step required to complete the quest
Rewards QuestReward
}
func GetAllQuests ¶
func GetAllQuests() []Quest
type QuestReward ¶
type QuestReward struct {
QuestId string // new questId to give ( {id}-{step} format )
Gold int // zero or more gold to give.
ItemId int // itemId to give
BuffId int // buffId to apply
Experience int // experience to give
SkillInfo string // skill to give, format: skillId:skillLevel such as "map:1"
PlayerMessage string // string to display to player
RoomMessage string // string to display to room
RoomId int // roomId to move player to
}
Click to show internal directories.
Click to hide internal directories.