mirror of
https://github.com/Card-Forge/forge.git
synced 2025-11-20 20:58:03 +00:00
Adventure updates
This commit is contained in:
@@ -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) {
|
||||
|
||||
@@ -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>
|
||||
|
||||
@@ -154,16 +154,6 @@
|
||||
"rounds":3,
|
||||
"entryFee":100,
|
||||
"rewards": [[
|
||||
{
|
||||
"type": "card",
|
||||
"probability": 1,
|
||||
"count":2,
|
||||
"rarity": [
|
||||
"Mythic Rare"
|
||||
],
|
||||
"colors": ["blue"]
|
||||
}
|
||||
],[
|
||||
{
|
||||
"type": "gold",
|
||||
"probability": 1,
|
||||
@@ -175,6 +165,16 @@
|
||||
"count": 1,
|
||||
"itemNames": ["Mithril Armor","Mithril Shield","Mithril Boots","Dagger"]
|
||||
}
|
||||
],[
|
||||
{
|
||||
"type": "card",
|
||||
"probability": 1,
|
||||
"count":2,
|
||||
"rarity": [
|
||||
"Rare","Mythic Rare"
|
||||
],
|
||||
"colors": ["blue"]
|
||||
}
|
||||
]
|
||||
]
|
||||
}</property>
|
||||
|
||||
@@ -160,16 +160,6 @@
|
||||
"rounds":3,
|
||||
"entryFee":100,
|
||||
"rewards": [[
|
||||
{
|
||||
"type": "card",
|
||||
"probability": 1,
|
||||
"count":2,
|
||||
"rarity": [
|
||||
"Mythic Rare"
|
||||
],
|
||||
"colors": ["red"]
|
||||
}
|
||||
],[
|
||||
{
|
||||
"type": "gold",
|
||||
"probability": 1,
|
||||
@@ -181,6 +171,16 @@
|
||||
"count": 1,
|
||||
"itemNames": ["Aladdin's Ring","Axt","Ring of Immortals","Jandor's Ring"]
|
||||
}
|
||||
],[
|
||||
{
|
||||
"type": "card",
|
||||
"probability": 1,
|
||||
"count":2,
|
||||
"rarity": [
|
||||
"Rare","Mythic Rare"
|
||||
],
|
||||
"colors": ["red"]
|
||||
}
|
||||
]
|
||||
]
|
||||
}</property>
|
||||
|
||||
@@ -153,16 +153,6 @@
|
||||
"rounds":3,
|
||||
"entryFee":100,
|
||||
"rewards": [[
|
||||
{
|
||||
"type": "card",
|
||||
"probability": 1,
|
||||
"count":2,
|
||||
"rarity": [
|
||||
"Mythic Rare"
|
||||
],
|
||||
"colors": ["white"]
|
||||
}
|
||||
],[
|
||||
{
|
||||
"type": "gold",
|
||||
"probability": 1,
|
||||
@@ -175,6 +165,17 @@
|
||||
"count": 1,
|
||||
"itemNames": ["Gold Armor","Gold Shield","Gold Boots","Bronze Sword"]
|
||||
}
|
||||
],
|
||||
[
|
||||
{
|
||||
"type": "card",
|
||||
"probability": 1,
|
||||
"count":2,
|
||||
"rarity": [
|
||||
"Rare","Mythic Rare"
|
||||
],
|
||||
"colors": ["white"]
|
||||
}
|
||||
]
|
||||
]
|
||||
}</property>
|
||||
|
||||
@@ -82,16 +82,6 @@
|
||||
"rounds":3,
|
||||
"entryFee":100,
|
||||
"rewards": [[
|
||||
{
|
||||
"type": "card",
|
||||
"probability": 1,
|
||||
"count":2,
|
||||
"rarity": [
|
||||
"Mythic Rare"
|
||||
],
|
||||
"colors": ["black"]
|
||||
}
|
||||
],[
|
||||
{
|
||||
"type": "gold",
|
||||
"probability": 1,
|
||||
@@ -103,6 +93,17 @@
|
||||
"count": 1,
|
||||
"itemNames": ["Death Ring","Dark Armor","Dark Shield","Dark Boots"]
|
||||
}
|
||||
],
|
||||
[
|
||||
{
|
||||
"type": "card",
|
||||
"probability": 1,
|
||||
"count":2,
|
||||
"rarity": [
|
||||
"Rare","Mythic Rare"
|
||||
],
|
||||
"colors": ["black"]
|
||||
}
|
||||
]
|
||||
]
|
||||
}</property>
|
||||
|
||||
@@ -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"
|
||||
]
|
||||
},
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user