mirror of
https://github.com/Sollace/Unicopia.git
synced 2025-02-17 10:24:23 +01:00
Add pages for the new spells and remaining artefacts
This commit is contained in:
parent
188210f020
commit
5d9ef41672
6 changed files with 160 additions and 2 deletions
|
@ -144,6 +144,10 @@ interface PageElement extends Drawable {
|
|||
record Stack (DynamicContent.Page page, IngredientWithSpell ingredient, Bounds bounds) implements PageElement {
|
||||
@Override
|
||||
public void compile(int y, IViewRoot container) {
|
||||
if (container instanceof SpellbookScreen book) {
|
||||
bounds().left = book.getX();
|
||||
bounds().top = book.getY();
|
||||
}
|
||||
IngredientTree tree = new IngredientTree(
|
||||
bounds().left + page().getBounds().left,
|
||||
bounds().top + page().getBounds().top + y + 10,
|
||||
|
|
|
@ -0,0 +1,12 @@
|
|||
{
|
||||
"type": "unicopia:spellbook/crafting",
|
||||
"material": { "item": "unicopia:gemstone", "spell": "unicopia:none" },
|
||||
"traits": {
|
||||
"knowledge": 18, "chaos": 20
|
||||
},
|
||||
"ingredients": [],
|
||||
"result": {
|
||||
"item": "unicopia:gemstone",
|
||||
"spell": "unicopia:displacement"
|
||||
}
|
||||
}
|
15
src/main/resources/data/unicopia/recipes/spells/portal.json
Normal file
15
src/main/resources/data/unicopia/recipes/spells/portal.json
Normal file
|
@ -0,0 +1,15 @@
|
|||
{
|
||||
"type": "unicopia:spellbook/crafting",
|
||||
"material": { "item": "unicopia:gemstone", "spell": "unicopia:none" },
|
||||
"traits": {
|
||||
"knowledge": 18, "chaos": 20
|
||||
},
|
||||
"ingredients": [
|
||||
{ "item": "unicopia:gemstone", "spell": "unicopia:displacement" },
|
||||
{ "item": "unicopia:gemstone", "spell": "unicopia:dark_vortex" }
|
||||
],
|
||||
"result": {
|
||||
"item": "unicopia:gemstone",
|
||||
"spell": "unicopia:portal"
|
||||
}
|
||||
}
|
|
@ -1,5 +1,95 @@
|
|||
{
|
||||
"side": "RIGHT",
|
||||
"y_position": 7,
|
||||
"color": 0
|
||||
"color": 0,
|
||||
"content": {
|
||||
"pages": [
|
||||
{
|
||||
"title": "Ch.7 Artefacts",
|
||||
"level": 0,
|
||||
"elements": [
|
||||
{ "x": 15, "y": 0, "width": 128, "height": 128, "texture": "unicopia:textures/gui/container/pages/crystal_heart.png" }
|
||||
]
|
||||
},
|
||||
{
|
||||
"title": "2nd Mare '12",
|
||||
"level": 0,
|
||||
"elements": [
|
||||
"What follows is a compendium of research into certain objects of interest identified through my research.",
|
||||
"Not all of these have gotten anywhere, as they have been proven to either be pure legend, or perhaps a hoax, so I cannot put stock into their stories.",
|
||||
"At the princess' behest",
|
||||
"- Starswirl the Bearded"
|
||||
]
|
||||
},
|
||||
{
|
||||
"title": "The Crystal Heart",
|
||||
"level": 0,
|
||||
"elements": [
|
||||
{ "item": { "item": "unicopia:crystal_heart" } },
|
||||
"Status: Lost",
|
||||
"Crafted by a group of unicorns long ago, its origin and current location is unknown.",
|
||||
"What few accounts exist claim it was a powerful tool of protection and support, as it would funnel life force from enemies towards the caster and their allies."
|
||||
]
|
||||
},
|
||||
{
|
||||
"title": "2nd Mare '12",
|
||||
"level": 0,
|
||||
"elements": [
|
||||
"Other accounts say that this artefact only functions when mounted on a specific pedestal of diamond blocks, like a beacon."
|
||||
]
|
||||
},
|
||||
{
|
||||
"title": "Bangle of Comradery",
|
||||
"level": 0,
|
||||
"elements": [
|
||||
{ "item": { "item": "unicopia:friendship_bracelet" } },
|
||||
"Status: Confirmed",
|
||||
"Used in the past by spellcasters to communicate over long distances, this band has long since lost its old use.",
|
||||
"Unicorns who sign and hand out this band can use it to share certain magic effects with their friends."
|
||||
]
|
||||
},
|
||||
{
|
||||
"title": "13th Mare '12",
|
||||
"level": 0,
|
||||
"elements": [
|
||||
"Anyone wearing a bangle you have signed will be able to benefit from the positive effects of your spells, or will be allowed through protection and shield spells.",
|
||||
"Mana costs are also shared equally between all nearby members."
|
||||
]
|
||||
},
|
||||
{
|
||||
"title": "Wings of Icarus",
|
||||
"level": 0,
|
||||
"elements": [
|
||||
{ "item": { "item": "unicopia:pegasus_amulet" } },
|
||||
"Status: Lost",
|
||||
"Commander Hurricane informed me of this, though I've found little texts to back up his claims.",
|
||||
"The Pegasus Amulet is claimed to grant the wearer temporary flight, like a pegasus."
|
||||
]
|
||||
},
|
||||
{
|
||||
"title": "22nd Trot '12",
|
||||
"level": 0,
|
||||
"elements": [
|
||||
"It was intended as an aide for early unicorn ambassadors to Cloud Heights, but was lost after negotiations broke down."
|
||||
]
|
||||
},
|
||||
{
|
||||
"title": "Alicorn Amulet",
|
||||
"level": 0,
|
||||
"elements": [
|
||||
{ "item": { "item": "unicopia:alicorn_amulet" } },
|
||||
"Status: Unconfirmed",
|
||||
"Like the crystal heart, little is known of this artefact and thus nothing, not even its existance can be confirmed."
|
||||
]
|
||||
},
|
||||
{
|
||||
"title": "22nd Trot '12",
|
||||
"level": 999,
|
||||
"elements": [
|
||||
"The alicorn amulet is a powerful force of dark magic created created by an unknown mage as their attempt to create the perfect being.",
|
||||
"It combines the traits of all races into one powerful form, but it hard to control and addictive in nature. Anyone who uses it quickly becomes reliant on it and few attempt to remove it survive the ordeal."
|
||||
]
|
||||
}
|
||||
]
|
||||
}
|
||||
}
|
|
@ -261,6 +261,24 @@
|
|||
"- A protection gem\n- At least 10x strength trait\n- At least 18x knowledge trait\n- At least 1x darkness trait",
|
||||
"* Increase range by adding the power trait"
|
||||
]
|
||||
},
|
||||
{
|
||||
"title": "Displacement",
|
||||
"level": 17,
|
||||
"elements": [
|
||||
"By casting this spell, a unicorn is able to swap their location with any other creature.",
|
||||
{ "x": 125, "y": -20, "width": 32, "height": 32, "texture": "unicopia:textures/gui/trait/knowledge.png" },
|
||||
{ "x": 125, "y": -20, "width": 16, "height": 16, "texture": "unicopia:textures/gui/trait/chaos.png" }
|
||||
]
|
||||
},
|
||||
{
|
||||
"title": "",
|
||||
"level": 17,
|
||||
"elements": [
|
||||
{ "recipe": "unicopia:spells/displacement" },
|
||||
"Requires:",
|
||||
"- 1 gemstone\n- At least 18x knowledge trait\n- At least 10x chaos trait"
|
||||
]
|
||||
}
|
||||
]
|
||||
}
|
||||
|
|
|
@ -78,7 +78,26 @@
|
|||
"elements": [
|
||||
{ "recipe": "unicopia:spells/dark_vortex" },
|
||||
"Requires:",
|
||||
"- 1 arcane attraction gem\n- At least 10x strength trait\n- At least 8x knowledge trait\n- At least 8x chaos trait\n- At least 9x darkness trait"
|
||||
"- 1x arcane attraction gem\n- At least 10x strength trait\n- At least 8x knowledge trait\n- At least 8x chaos trait\n- At least 9x darkness trait"
|
||||
]
|
||||
},
|
||||
{
|
||||
"title": "Arcane Rift",
|
||||
"level": 24,
|
||||
"elements": [
|
||||
"Combining the effects of the displacement spell created by my predecessor and the dark vortex gem, one is able to tame its chaotic nature.",
|
||||
"The arcane rift spell allows the caster to link two locations together to create a bridge across the ether. Anything that enters one end will appear at the other maintaining its velocity.",
|
||||
{ "x": 125, "y": -20, "width": 32, "height": 32, "texture": "unicopia:textures/gui/trait/knowledge.png" },
|
||||
{ "x": 125, "y": -20, "width": 16, "height": 16, "texture": "unicopia:textures/gui/trait/chaos.png" }
|
||||
]
|
||||
},
|
||||
{
|
||||
"title": "",
|
||||
"level": 24,
|
||||
"elements": [
|
||||
{ "recipe": "unicopia:spells/portal" },
|
||||
"Requires:",
|
||||
"- 1x gemstone\n- 1x displacement gem\n- 1x dark vortext gem\n- At least 18x knowledge trait\n- At least 20x chaos trait"
|
||||
]
|
||||
}
|
||||
]
|
||||
|
|
Loading…
Reference in a new issue