Adventure updates

This commit is contained in:
jjayers99
2023-04-12 23:25:39 -04:00
parent a896a1563a
commit 3a8aae7af0
7 changed files with 74 additions and 71 deletions

View File

@@ -5,6 +5,7 @@ import com.badlogic.gdx.graphics.g2d.TextureRegion;
import com.badlogic.gdx.scenes.scene2d.Actor;
import com.badlogic.gdx.scenes.scene2d.utils.ChangeListener;
import forge.adventure.data.AdventureQuestData;
import forge.adventure.data.DialogData;
import forge.adventure.stage.MapStage;
import forge.adventure.util.Current;
import forge.adventure.util.MapDialog;
@@ -44,18 +45,30 @@ public class DialogActor extends CharacterSprite {
}
};
dialog.addQuestAcceptedListener(listen);
ChangeListener finished = new ChangeListener() {
@Override
public void changed(ChangeEvent changeEvent, Actor actor) {
removeFromMap();
}
};
dialog.addDialogCompleteListener(finished);
}
public void acceptQuest(){
Current.player().addQuest(questData);
}
public void removeFromMap() { dialog = null; }
@Override
public void onPlayerCollide() {
if (dialog != null) {
stage.resetPosition();
stage.showDialog();
dialog.activate();
}
}
@Override
public void draw(Batch batch, float alpha) {

View File

@@ -178,16 +178,6 @@
"rounds":3,
"entryFee":100,
"rewards": [[
{
"type": "card",
"probability": 1,
"count":2,
"rarity": [
"Mythic Rare"
],
"colors": ["green"]
}
],[
{
"type": "gold",
"probability": 1,
@@ -199,6 +189,16 @@
"count": 1,
"itemNames": ["Dungeon Map","Mad Staff","Gold Boots","Disrupting Scepter"]
}
],[
{
"type": "card",
"probability": 1,
"count":2,
"rarity": [
"Rare","Mythic Rare"
],
"colors": ["green"]
}
]
]
}</property>

View File

@@ -154,16 +154,6 @@
&quot;rounds&quot;:3,
&quot;entryFee&quot;:100,
&quot;rewards&quot;: [[
{
&quot;type&quot;: &quot;card&quot;,
&quot;probability&quot;: 1,
&quot;count&quot;:2,
&quot;rarity&quot;: [
&quot;Mythic Rare&quot;
],
&quot;colors&quot;: [&quot;blue&quot;]
}
],[
{
&quot;type&quot;: &quot;gold&quot;,
&quot;probability&quot;: 1,
@@ -175,6 +165,16 @@
&quot;count&quot;: 1,
&quot;itemNames&quot;: [&quot;Mithril Armor&quot;,&quot;Mithril Shield&quot;,&quot;Mithril Boots&quot;,&quot;Dagger&quot;]
}
],[
{
&quot;type&quot;: &quot;card&quot;,
&quot;probability&quot;: 1,
&quot;count&quot;:2,
&quot;rarity&quot;: [
&quot;Rare&quot;,&quot;Mythic Rare&quot;
],
&quot;colors&quot;: [&quot;blue&quot;]
}
]
]
}</property>

View File

@@ -160,16 +160,6 @@
&quot;rounds&quot;:3,
&quot;entryFee&quot;:100,
&quot;rewards&quot;: [[
{
&quot;type&quot;: &quot;card&quot;,
&quot;probability&quot;: 1,
&quot;count&quot;:2,
&quot;rarity&quot;: [
&quot;Mythic Rare&quot;
],
&quot;colors&quot;: [&quot;red&quot;]
}
],[
{
&quot;type&quot;: &quot;gold&quot;,
&quot;probability&quot;: 1,
@@ -181,6 +171,16 @@
&quot;count&quot;: 1,
&quot;itemNames&quot;: [&quot;Aladdin's Ring&quot;,&quot;Axt&quot;,&quot;Ring of Immortals&quot;,&quot;Jandor's Ring&quot;]
}
],[
{
&quot;type&quot;: &quot;card&quot;,
&quot;probability&quot;: 1,
&quot;count&quot;:2,
&quot;rarity&quot;: [
&quot;Rare&quot;,&quot;Mythic Rare&quot;
],
&quot;colors&quot;: [&quot;red&quot;]
}
]
]
}</property>

View File

@@ -153,16 +153,6 @@
&quot;rounds&quot;:3,
&quot;entryFee&quot;:100,
&quot;rewards&quot;: [[
{
&quot;type&quot;: &quot;card&quot;,
&quot;probability&quot;: 1,
&quot;count&quot;:2,
&quot;rarity&quot;: [
&quot;Mythic Rare&quot;
],
&quot;colors&quot;: [&quot;white&quot;]
}
],[
{
&quot;type&quot;: &quot;gold&quot;,
&quot;probability&quot;: 1,
@@ -175,6 +165,17 @@
&quot;count&quot;: 1,
&quot;itemNames&quot;: [&quot;Gold Armor&quot;,&quot;Gold Shield&quot;,&quot;Gold Boots&quot;,&quot;Bronze Sword&quot;]
}
],
[
{
&quot;type&quot;: &quot;card&quot;,
&quot;probability&quot;: 1,
&quot;count&quot;:2,
&quot;rarity&quot;: [
&quot;Rare&quot;,&quot;Mythic Rare&quot;
],
&quot;colors&quot;: [&quot;white&quot;]
}
]
]
}</property>

View File

@@ -82,16 +82,6 @@
&quot;rounds&quot;:3,
&quot;entryFee&quot;:100,
&quot;rewards&quot;: [[
{
&quot;type&quot;: &quot;card&quot;,
&quot;probability&quot;: 1,
&quot;count&quot;:2,
&quot;rarity&quot;: [
&quot;Mythic Rare&quot;
],
&quot;colors&quot;: [&quot;black&quot;]
}
],[
{
&quot;type&quot;: &quot;gold&quot;,
&quot;probability&quot;: 1,
@@ -103,6 +93,17 @@
&quot;count&quot;: 1,
&quot;itemNames&quot;: [&quot;Death Ring&quot;,&quot;Dark Armor&quot;,&quot;Dark Shield&quot;,&quot;Dark Boots&quot;]
}
],
[
{
&quot;type&quot;: &quot;card&quot;,
&quot;probability&quot;: 1,
&quot;count&quot;:2,
&quot;rarity&quot;: [
&quot;Rare&quot;,&quot;Mythic Rare&quot;
],
&quot;colors&quot;: [&quot;black&quot;]
}
]
]
}</property>

View File

@@ -261,9 +261,7 @@
"radiusFactor": 0.8,
"questTags": [
"Cave",
"Hostile",
"BiomeBlack",
"Sidequest"
"BiomeBlack"
]
},
{
@@ -395,10 +393,8 @@
"map": "maps/map/cave_2.tmx",
"radiusFactor": 0.8,
"questTags": [
"Hostile",
"Cave",
"BiomeColorless",
"Sidequest"
"BiomeColorless"
]
},
{
@@ -591,9 +587,7 @@
"radiusFactor": 0.8,
"questTags": [
"Cave",
"Hostile",
"BiomeGreen",
"Sidequest"
"BiomeGreen"
]
},
{
@@ -710,10 +704,8 @@
"map": "maps/map/cave_2.tmx",
"radiusFactor": 0.8,
"questTags": [
"Hostile",
"Cave",
"BiomeBlue",
"Sidequest"
"BiomeBlue"
]
},
{
@@ -800,10 +792,8 @@
"map": "maps/map/cave_2.tmx",
"radiusFactor": 0.8,
"questTags": [
"Hostile",
"Cave",
"BiomeRed",
"Sidequest"
"BiomeRed"
]
},
{
@@ -1040,10 +1030,8 @@
"map": "maps/map/cave_2.tmx",
"radiusFactor": 0.8,
"questTags": [
"Hostile",
"Cave",
"BiomeWhite",
"Sidequest"
"BiomeWhite"
]
},
{