modded7/tools/types/bqQuestBook.ts
IntegerLimit 5aecff8b4d
Allow for QB Translations of Normal and Expert Quest Books (#432)
[FEATURE]

/* Description: */
Also moves all nodejs stuff into `tools` package.

Also adds a basic `CONTRIBUTING.md` file. 

Superseeds https://github.com/Nomi-CEu/Nomi-CEu/pull/431, which was closed as the branch needed to be renamed, due to the last two items on this list.

TODO:
- [x] Make it only run on master repo.
- [x] Remove qb-lang-revamp branch from the events
- [x] Allow workflow to run on all branches starting with test_buildscript?

/* Commits: */

* Buildscript Changes

* Make Contributing Docs a .md file

* updateqb.yml v1

* Test QB change

* Add lang file to commit file list

* Another Test Change

* Test with only lang path, + `./` at beginning of path

* Test QB change

* updateqb.yml v3

* Test QB Change

* Add some debug settings

* Remove debug, branch input. Switch to auto-commit action

* Make activate: branches prefix `test_buildscript`, commit author GHA bot

* Add branch prefix note into CONTRIBUTING.md

* Make workflow only run if on master repo
2023-09-17 22:44:48 +10:00

119 lines
2.5 KiB
TypeScript

export interface QuestBook {
"format:8": string;
"questDatabase:9": { [key: string]: Quest };
"questLines:9": { [key: string]: QuestLines };
"questSettings:10": QuestSettings;
}
export interface Quest {
"preRequisites:11": number[];
"properties:10": QuestProperties;
"questID:3": number;
"rewards:9": Rewards9;
}
export interface QuestProperties {
"betterquesting:10": QuestPropertiesBQ;
}
export interface QuestPropertiesBQ {
"autoclaim:1": number;
"desc:8": string;
"globalshare:1": number;
"icon:10": Icon;
"ismain:1": number;
"issilent:1": number;
"lockedprogress:1": number;
"name:8": string;
"partysinglereward:1"?: number;
"questlogic:8": QuestLogic;
"repeat_relative:1": number;
"repeattime:3": number;
"simultaneous:1": number;
"snd_complete:8": string;
"snd_update:8": string;
"tasklogic:8": QuestLogic;
"visibility:8": QuestVisibility;
}
export interface Icon {
"Count:3": number;
"Damage:2": number;
"OreDict:8": string;
"id:8": string;
"tag:10"?: unknown;
}
export enum QuestLogic {
And = "AND",
Or = "OR",
}
export enum QuestVisibility {
Always = "ALWAYS",
Chain = "CHAIN",
Hidden = "HIDDEN",
Normal = "NORMAL",
Unlocked = "UNLOCKED",
}
export interface Rewards9 {
"0:10"?: Rewards9_010;
}
export interface Rewards9_010 {
"index:3": number;
"rewardID:8": RewardID8;
"rewards:9"?: { [key: string]: Icon };
"choices:9"?: { [key: string]: Icon };
}
export enum RewardID8 {
BqStandardChoice = "bq_standard:choice",
BqStandardItem = "bq_standard:item",
}
export enum TaskID8 {
BqStandardCheckbox = "bq_standard:checkbox",
BqStandardRetrieval = "bq_standard:retrieval",
}
export interface QuestLines {
"lineID:3": number;
"order:3": number;
"properties:10": QuestLines9_Properties10;
"quests:9": { [key: string]: { [key: string]: number } };
}
export interface QuestLines9_Properties10 {
"betterquesting:10": FluffyBetterquesting10;
}
export interface FluffyBetterquesting10 {
"bg_image:8": string;
"bg_size:3": number;
"desc:8": string;
"icon:10": Icon;
"name:8": string;
"visibility:8": QuestVisibility;
}
export interface QuestSettings {
"betterquesting:10": QuestSettings10_Betterquesting10;
}
export interface QuestSettings10_Betterquesting10 {
"editmode:1": number;
"hardcore:1": number;
"home_anchor_x:5": number;
"home_anchor_y:5": number;
"home_image:8": string;
"home_offset_x:3": number;
"home_offset_y:3": number;
"livesdef:3": number;
"livesmax:3": number;
"pack_name:8": string;
"pack_version:3": number;
"party_enable:1": number;
}