Add ranged combat area effects and admin-authored mobs
This commit is contained in:
@@ -11,6 +11,7 @@ type Protocol struct {
|
||||
}
|
||||
|
||||
type ContentCatalog struct {
|
||||
Combat *CombatContent `json:"combat,omitempty"`
|
||||
EffectSets []EffectSet `json:"effectSets,omitempty"`
|
||||
Gathering *GatheringContent `json:"gathering,omitempty"`
|
||||
Items []ItemDefinition `json:"items"`
|
||||
@@ -20,6 +21,78 @@ type ContentCatalog struct {
|
||||
Version int64 `json:"version"`
|
||||
}
|
||||
|
||||
type CombatContent struct {
|
||||
Attacks []CombatAttack `json:"attacks"`
|
||||
Loot []LootTable `json:"loot"`
|
||||
Mobs []MobDefinition `json:"mobs"`
|
||||
Spawns []MobSpawn `json:"spawns"`
|
||||
}
|
||||
|
||||
type CombatAttack struct {
|
||||
Cooldown float64 `json:"cooldown"`
|
||||
Delivery string `json:"delivery"`
|
||||
Description string `json:"description"`
|
||||
Duration float64 `json:"duration"`
|
||||
Effect string `json:"effect"`
|
||||
ID string `json:"id"`
|
||||
Interval float64 `json:"interval"`
|
||||
Multiplier float64 `json:"multiplier"`
|
||||
Name string `json:"name"`
|
||||
Radius float64 `json:"radius"`
|
||||
Range float64 `json:"range"`
|
||||
Speed float64 `json:"speed"`
|
||||
Stamina float64 `json:"stamina"`
|
||||
Stat string `json:"stat"`
|
||||
}
|
||||
|
||||
type LootTable struct {
|
||||
Description string `json:"description"`
|
||||
Entries []LootEntry `json:"entries"`
|
||||
ID string `json:"id"`
|
||||
Name string `json:"name"`
|
||||
}
|
||||
|
||||
type LootEntry struct {
|
||||
Amount int64 `json:"amount"`
|
||||
Chance float64 `json:"chance"`
|
||||
Group string `json:"group"`
|
||||
Item string `json:"item"`
|
||||
Weight int64 `json:"weight"`
|
||||
}
|
||||
|
||||
type MobDefinition struct {
|
||||
AggroRange float64 `json:"aggroRange"`
|
||||
AttackID string `json:"attackId"`
|
||||
Behavior string `json:"behavior"`
|
||||
Damage float64 `json:"damage"`
|
||||
Defence float64 `json:"defence"`
|
||||
Description string `json:"description"`
|
||||
HP float64 `json:"hp"`
|
||||
ID string `json:"id"`
|
||||
LeashRange float64 `json:"leashRange"`
|
||||
Level int64 `json:"level"`
|
||||
LootID string `json:"lootId"`
|
||||
Model string `json:"model"`
|
||||
Name string `json:"name"`
|
||||
ScalePerDay float64 `json:"scalePerDay"`
|
||||
Speed float64 `json:"speed"`
|
||||
XP int64 `json:"xp"`
|
||||
}
|
||||
|
||||
type MobSpawn struct {
|
||||
Biomes []string `json:"biomes"`
|
||||
Count int64 `json:"count"`
|
||||
Description string `json:"description"`
|
||||
ID string `json:"id"`
|
||||
MinPlayerDistance float64 `json:"minPlayerDistance"`
|
||||
MobID string `json:"mobId"`
|
||||
Name string `json:"name"`
|
||||
Radius float64 `json:"radius"`
|
||||
Respawn float64 `json:"respawn"`
|
||||
X float64 `json:"x"`
|
||||
Z float64 `json:"z"`
|
||||
}
|
||||
|
||||
type EffectSet struct {
|
||||
Description string `json:"description"`
|
||||
ID string `json:"id"`
|
||||
@@ -83,6 +156,7 @@ type GatheringSkill struct {
|
||||
}
|
||||
|
||||
type ItemDefinition struct {
|
||||
AttackID *string `json:"attackId,omitempty"`
|
||||
Description string `json:"description"`
|
||||
DropChance float64 `json:"dropChance"`
|
||||
ID string `json:"id"`
|
||||
@@ -133,6 +207,7 @@ type TitleEffects struct {
|
||||
}
|
||||
|
||||
type ContentChange struct {
|
||||
Attack *CombatAttackDraft `json:"attack,omitempty"`
|
||||
Biome *BiomeDefinitionDraft `json:"biome,omitempty"`
|
||||
Consumable *GatheringConsumableDraft `json:"consumable,omitempty"`
|
||||
EffectSet *EffectSetDraft `json:"effectSet,omitempty"`
|
||||
@@ -141,15 +216,35 @@ type ContentChange struct {
|
||||
GatheringSkill *GatheringSkillDraft `json:"gatheringSkill,omitempty"`
|
||||
ID string `json:"id"`
|
||||
Item *ItemDraft `json:"item,omitempty"`
|
||||
Loot *LootTableDraft `json:"loot,omitempty"`
|
||||
Mob *MobDefinitionDraft `json:"mob,omitempty"`
|
||||
Op string `json:"op"`
|
||||
Reason string `json:"reason"`
|
||||
RequirementSet *RequirementSetDraft `json:"requirementSet,omitempty"`
|
||||
RequirementSetIDS []string `json:"requirementSetIds,omitempty"`
|
||||
Resource *ResourceDefinitionDraft `json:"resource,omitempty"`
|
||||
Spawn *MobSpawnDraft `json:"spawn,omitempty"`
|
||||
Stats *ContentStatsRules `json:"stats,omitempty"`
|
||||
Title *TitleDraft `json:"title,omitempty"`
|
||||
}
|
||||
|
||||
type CombatAttackDraft struct {
|
||||
Cooldown float64 `json:"cooldown"`
|
||||
Delivery string `json:"delivery"`
|
||||
Description string `json:"description"`
|
||||
Duration float64 `json:"duration"`
|
||||
Effect string `json:"effect"`
|
||||
ID *string `json:"id,omitempty"`
|
||||
Interval float64 `json:"interval"`
|
||||
Multiplier float64 `json:"multiplier"`
|
||||
Name string `json:"name"`
|
||||
Radius float64 `json:"radius"`
|
||||
Range float64 `json:"range"`
|
||||
Speed float64 `json:"speed"`
|
||||
Stamina float64 `json:"stamina"`
|
||||
Stat string `json:"stat"`
|
||||
}
|
||||
|
||||
type BiomeDefinitionDraft struct {
|
||||
Color string `json:"color"`
|
||||
Description string `json:"description"`
|
||||
@@ -183,6 +278,7 @@ type GatheringSkillDraft struct {
|
||||
}
|
||||
|
||||
type ItemDraft struct {
|
||||
AttackID *string `json:"attackId,omitempty"`
|
||||
Description string `json:"description"`
|
||||
DropChance float64 `json:"dropChance"`
|
||||
ID *string `json:"id,omitempty"`
|
||||
@@ -193,6 +289,32 @@ type ItemDraft struct {
|
||||
Weight float64 `json:"weight"`
|
||||
}
|
||||
|
||||
type LootTableDraft struct {
|
||||
Description string `json:"description"`
|
||||
Entries []LootEntry `json:"entries"`
|
||||
ID *string `json:"id,omitempty"`
|
||||
Name string `json:"name"`
|
||||
}
|
||||
|
||||
type MobDefinitionDraft struct {
|
||||
AggroRange float64 `json:"aggroRange"`
|
||||
AttackID string `json:"attackId"`
|
||||
Behavior string `json:"behavior"`
|
||||
Damage float64 `json:"damage"`
|
||||
Defence float64 `json:"defence"`
|
||||
Description string `json:"description"`
|
||||
HP float64 `json:"hp"`
|
||||
ID *string `json:"id,omitempty"`
|
||||
LeashRange float64 `json:"leashRange"`
|
||||
Level int64 `json:"level"`
|
||||
LootID string `json:"lootId"`
|
||||
Model string `json:"model"`
|
||||
Name string `json:"name"`
|
||||
ScalePerDay float64 `json:"scalePerDay"`
|
||||
Speed float64 `json:"speed"`
|
||||
XP int64 `json:"xp"`
|
||||
}
|
||||
|
||||
type RequirementSetDraft struct {
|
||||
Description string `json:"description"`
|
||||
ID *string `json:"id,omitempty"`
|
||||
@@ -216,6 +338,20 @@ type ResourceDefinitionDraft struct {
|
||||
XP int64 `json:"xp"`
|
||||
}
|
||||
|
||||
type MobSpawnDraft struct {
|
||||
Biomes []string `json:"biomes"`
|
||||
Count int64 `json:"count"`
|
||||
Description string `json:"description"`
|
||||
ID *string `json:"id,omitempty"`
|
||||
MinPlayerDistance float64 `json:"minPlayerDistance"`
|
||||
MobID string `json:"mobId"`
|
||||
Name string `json:"name"`
|
||||
Radius float64 `json:"radius"`
|
||||
Respawn float64 `json:"respawn"`
|
||||
X float64 `json:"x"`
|
||||
Z float64 `json:"z"`
|
||||
}
|
||||
|
||||
type TitleDraft struct {
|
||||
Description string `json:"description"`
|
||||
Effects TitleEffects `json:"effects"`
|
||||
@@ -272,16 +408,18 @@ type Chunk struct {
|
||||
}
|
||||
|
||||
type Entity struct {
|
||||
HP float64 `json:"hp"`
|
||||
ID string `json:"id"`
|
||||
Kind string `json:"kind"`
|
||||
MaxHP float64 `json:"maxHp"`
|
||||
Name string `json:"name"`
|
||||
Position Vec3 `json:"position"`
|
||||
RequiredLevel *int64 `json:"requiredLevel,omitempty"`
|
||||
ResourceID *string `json:"resourceId,omitempty"`
|
||||
SkillID *string `json:"skillId,omitempty"`
|
||||
State string `json:"state"`
|
||||
HP float64 `json:"hp"`
|
||||
ID string `json:"id"`
|
||||
Kind string `json:"kind"`
|
||||
MaxHP float64 `json:"maxHp"`
|
||||
Model *string `json:"model,omitempty"`
|
||||
Name string `json:"name"`
|
||||
Position Vec3 `json:"position"`
|
||||
Radius *float64 `json:"radius,omitempty"`
|
||||
RequiredLevel *int64 `json:"requiredLevel,omitempty"`
|
||||
ResourceID *string `json:"resourceId,omitempty"`
|
||||
SkillID *string `json:"skillId,omitempty"`
|
||||
State string `json:"state"`
|
||||
}
|
||||
|
||||
type Vec3 struct {
|
||||
@@ -302,6 +440,7 @@ type GatheringRisk struct {
|
||||
type Character struct {
|
||||
ACK int64 `json:"ack"`
|
||||
AllocatedStats map[string]int64 `json:"allocatedStats"`
|
||||
Attack *CombatAttack `json:"attack,omitempty"`
|
||||
CarryWeight float64 `json:"carryWeight"`
|
||||
Consumables []GatheringConsumable `json:"consumables,omitempty"`
|
||||
Entity Entity `json:"entity"`
|
||||
@@ -357,6 +496,7 @@ type TimedGatheringEffect struct {
|
||||
}
|
||||
|
||||
type ItemInstance struct {
|
||||
Attack *CombatAttack `json:"attack,omitempty"`
|
||||
DefinitionID string `json:"definitionId"`
|
||||
Description string `json:"description"`
|
||||
Equippable bool `json:"equippable"`
|
||||
|
||||
Reference in New Issue
Block a user