mirror of
https://github.com/OMGeeky/andors-trail.git
synced 2026-02-23 15:38:29 +01:00
Compare commits
15 Commits
fix-use-it
...
add-tick-d
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
4a62613375 | ||
|
|
585852ecb1 | ||
|
|
d87e584601 | ||
|
|
bfeab1abfa | ||
|
|
7c30577374 | ||
|
|
e164e50f93 | ||
|
|
84fa8e5547 | ||
|
|
c9b4da0823 | ||
|
|
4c55c5c2a7 | ||
|
|
ced33a4cda | ||
|
|
50606e8424 | ||
|
|
845ea0926e | ||
|
|
d60c6b3aa8 | ||
|
|
570d9da321 | ||
|
|
99f4ab5e6b |
@@ -152,6 +152,12 @@ public final class DebugInterface {
|
|||||||
public void onClick(View arg0) {
|
public void onClick(View arg0) {
|
||||||
showToast(mainActivity, "DEBUG: map=" + world.model.currentMaps.map.name , Toast.LENGTH_SHORT);
|
showToast(mainActivity, "DEBUG: map=" + world.model.currentMaps.map.name , Toast.LENGTH_SHORT);
|
||||||
}
|
}
|
||||||
|
})
|
||||||
|
,new DebugButton("tick-10", new OnClickListener() {
|
||||||
|
@Override
|
||||||
|
public void onClick(View arg0) {
|
||||||
|
world.model.worldData.tickWorldTime(10);
|
||||||
|
}
|
||||||
})
|
})
|
||||||
}));
|
}));
|
||||||
|
|
||||||
@@ -313,6 +319,13 @@ public final class DebugInterface {
|
|||||||
}
|
}
|
||||||
})
|
})
|
||||||
|
|
||||||
|
,new DebugButton("wx", new OnClickListener() {
|
||||||
|
@Override
|
||||||
|
public void onClick(View arg0) {
|
||||||
|
controllerContext.movementController.placePlayerAsyncAt(MapObject.MapObjectType.newmap, "wexlow_village", "north", 0, 0);
|
||||||
|
}
|
||||||
|
})
|
||||||
|
|
||||||
,new DebugButton("fey", new OnClickListener() {
|
,new DebugButton("fey", new OnClickListener() {
|
||||||
@Override
|
@Override
|
||||||
public void onClick(View arg0) {
|
public void onClick(View arg0) {
|
||||||
@@ -345,14 +358,14 @@ public final class DebugInterface {
|
|||||||
,new DebugButton("#1", new OnClickListener() {
|
,new DebugButton("#1", new OnClickListener() {
|
||||||
@Override
|
@Override
|
||||||
public void onClick(View arg0) {
|
public void onClick(View arg0) {
|
||||||
controllerContext.movementController.placePlayerAsyncAt(MapObject.MapObjectType.newmap, "waterway11_east", "west", 0, 0);
|
controllerContext.movementController.placePlayerAsyncAt(MapObject.MapObjectType.newmap, "swamp3", "north", 0, 0);
|
||||||
}
|
}
|
||||||
})
|
})
|
||||||
|
|
||||||
,new DebugButton("#2", new OnClickListener() {
|
,new DebugButton("#2", new OnClickListener() {
|
||||||
@Override
|
@Override
|
||||||
public void onClick(View arg0) {
|
public void onClick(View arg0) {
|
||||||
controllerContext.movementController.placePlayerAsyncAt(MapObject.MapObjectType.newmap, "laerothtomb1", "north", 0, 0);
|
controllerContext.movementController.placePlayerAsyncAt(MapObject.MapObjectType.newmap, "beekeeper1", "south", 0, 0);
|
||||||
}
|
}
|
||||||
})
|
})
|
||||||
|
|
||||||
@@ -360,7 +373,7 @@ public final class DebugInterface {
|
|||||||
,new DebugButton("#3", new OnClickListener() {
|
,new DebugButton("#3", new OnClickListener() {
|
||||||
@Override
|
@Override
|
||||||
public void onClick(View arg0) {
|
public void onClick(View arg0) {
|
||||||
controllerContext.movementController.placePlayerAsyncAt(MapObject.MapObjectType.newmap, "mountainlake8", "north", 0, 0);
|
controllerContext.movementController.placePlayerAsyncAt(MapObject.MapObjectType.newmap, "guynmart", "west2", 0, 0);
|
||||||
}
|
}
|
||||||
})
|
})
|
||||||
|
|
||||||
|
|||||||
@@ -8,6 +8,7 @@ import org.xmlpull.v1.XmlPullParserException;
|
|||||||
import android.content.res.Resources;
|
import android.content.res.Resources;
|
||||||
import android.content.res.XmlResourceParser;
|
import android.content.res.XmlResourceParser;
|
||||||
|
|
||||||
|
import com.gpl.rpg.AndorsTrail.AndorsTrailApplication;
|
||||||
import com.gpl.rpg.AndorsTrail.model.map.MapCollection;
|
import com.gpl.rpg.AndorsTrail.model.map.MapCollection;
|
||||||
import com.gpl.rpg.AndorsTrail.model.map.WorldMapSegment;
|
import com.gpl.rpg.AndorsTrail.model.map.WorldMapSegment;
|
||||||
import com.gpl.rpg.AndorsTrail.model.map.WorldMapSegment.NamedWorldMapArea;
|
import com.gpl.rpg.AndorsTrail.model.map.WorldMapSegment.NamedWorldMapArea;
|
||||||
@@ -24,11 +25,13 @@ public final class WorldMapParser {
|
|||||||
}
|
}
|
||||||
|
|
||||||
private static void read(XmlResourceParser xrp, final MapCollection maps, final TranslationLoader translationLoader) {
|
private static void read(XmlResourceParser xrp, final MapCollection maps, final TranslationLoader translationLoader) {
|
||||||
|
String s = "";
|
||||||
|
if (AndorsTrailApplication.DEVELOPMENT_VALIDATEDATA) L.log("WorldMapParser:");
|
||||||
try {
|
try {
|
||||||
int eventType;
|
int eventType;
|
||||||
while ((eventType = xrp.next()) != XmlResourceParser.END_DOCUMENT) {
|
while ((eventType = xrp.next()) != XmlResourceParser.END_DOCUMENT) {
|
||||||
if (eventType == XmlResourceParser.START_TAG) {
|
if (eventType == XmlResourceParser.START_TAG) {
|
||||||
String s = xrp.getName();
|
s = xrp.getName();
|
||||||
if (s.equals("segment")) {
|
if (s.equals("segment")) {
|
||||||
WorldMapSegment segment = parseSegment(xrp, maps, translationLoader);
|
WorldMapSegment segment = parseSegment(xrp, maps, translationLoader);
|
||||||
maps.worldMapSegments.put(segment.name, segment);
|
maps.worldMapSegments.put(segment.name, segment);
|
||||||
@@ -37,7 +40,7 @@ public final class WorldMapParser {
|
|||||||
}
|
}
|
||||||
xrp.close();
|
xrp.close();
|
||||||
} catch (Exception e) {
|
} catch (Exception e) {
|
||||||
L.log("Error reading worldmap: " + e.toString());
|
L.log("Error reading worldmap: " + s + " " + e.toString());
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
@@ -46,11 +49,13 @@ public final class WorldMapParser {
|
|||||||
final WorldMapSegment segment = new WorldMapSegment(segmentName);
|
final WorldMapSegment segment = new WorldMapSegment(segmentName);
|
||||||
|
|
||||||
final ArrayList<Pair<String, String>> mapsInNamedAreas = new ArrayList<Pair<String,String>>();
|
final ArrayList<Pair<String, String>> mapsInNamedAreas = new ArrayList<Pair<String,String>>();
|
||||||
|
if (AndorsTrailApplication.DEVELOPMENT_VALIDATEDATA) L.log("segment: " + segmentName);
|
||||||
XmlResourceParserUtils.readCurrentTagUntilEnd(xrp, new XmlResourceParserUtils.TagHandler() {
|
XmlResourceParserUtils.readCurrentTagUntilEnd(xrp, new XmlResourceParserUtils.TagHandler() {
|
||||||
@Override
|
@Override
|
||||||
public void handleTag(XmlResourceParser xrp, String tagName) throws XmlPullParserException, IOException {
|
public void handleTag(XmlResourceParser xrp, String tagName) throws XmlPullParserException, IOException {
|
||||||
if (tagName.equals("map")) {
|
if (tagName.equals("map")) {
|
||||||
String mapName = xrp.getAttributeValue(null, "id");
|
String mapName = xrp.getAttributeValue(null, "id");
|
||||||
|
if (AndorsTrailApplication.DEVELOPMENT_VALIDATEDATA) L.log(" map: " + mapName);
|
||||||
if (maps.findPredefinedMap(mapName) == null) return;
|
if (maps.findPredefinedMap(mapName) == null) return;
|
||||||
Coord mapPosition = new Coord(
|
Coord mapPosition = new Coord(
|
||||||
xrp.getAttributeIntValue(null, "x", -1),
|
xrp.getAttributeIntValue(null, "x", -1),
|
||||||
@@ -65,6 +70,7 @@ public final class WorldMapParser {
|
|||||||
String id = xrp.getAttributeValue(null, "id");
|
String id = xrp.getAttributeValue(null, "id");
|
||||||
String name = translationLoader.translateWorldmapLocation(xrp.getAttributeValue(null, "name"));
|
String name = translationLoader.translateWorldmapLocation(xrp.getAttributeValue(null, "name"));
|
||||||
String type = xrp.getAttributeValue(null, "type");
|
String type = xrp.getAttributeValue(null, "type");
|
||||||
|
if (AndorsTrailApplication.DEVELOPMENT_VALIDATEDATA) L.log(" namedarea: id=" + id + " name=" + name + " type=" + type);
|
||||||
segment.namedAreas.put(id, new NamedWorldMapArea(id, name, type));
|
segment.namedAreas.put(id, new NamedWorldMapArea(id, name, type));
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
Binary file not shown.
|
Before Width: | Height: | Size: 68 KiB After Width: | Height: | Size: 52 KiB |
@@ -3468,106 +3468,6 @@
|
|||||||
}
|
}
|
||||||
]
|
]
|
||||||
},
|
},
|
||||||
{
|
|
||||||
"id":"captive_girl_selector",
|
|
||||||
"replies":[
|
|
||||||
{
|
|
||||||
"text":"N",
|
|
||||||
"nextPhraseID":"captive_girl_10",
|
|
||||||
"requires":[
|
|
||||||
{
|
|
||||||
"requireType":"questProgress",
|
|
||||||
"requireID":"wicked_witch",
|
|
||||||
"value":90,
|
|
||||||
"negate":true
|
|
||||||
},
|
|
||||||
{
|
|
||||||
"requireType":"questProgress",
|
|
||||||
"requireID":"wicked_witch",
|
|
||||||
"value":95,
|
|
||||||
"negate":true
|
|
||||||
},
|
|
||||||
{
|
|
||||||
"requireType":"questProgress",
|
|
||||||
"requireID":"wicked_witch",
|
|
||||||
"value":96,
|
|
||||||
"negate":true
|
|
||||||
}
|
|
||||||
]
|
|
||||||
},
|
|
||||||
{
|
|
||||||
"text":"N",
|
|
||||||
"nextPhraseID":"captive_girl_50",
|
|
||||||
"requires":[
|
|
||||||
{
|
|
||||||
"requireType":"questLatestProgress",
|
|
||||||
"requireID":"wicked_witch",
|
|
||||||
"value":90
|
|
||||||
}
|
|
||||||
]
|
|
||||||
},
|
|
||||||
{
|
|
||||||
"text":"N",
|
|
||||||
"nextPhraseID":"captive_girl_75",
|
|
||||||
"requires":[
|
|
||||||
{
|
|
||||||
"requireType":"questProgress",
|
|
||||||
"requireID":"wicked_witch",
|
|
||||||
"value":95
|
|
||||||
}
|
|
||||||
]
|
|
||||||
},
|
|
||||||
{
|
|
||||||
"text":"N",
|
|
||||||
"nextPhraseID":"captive_girl_31"
|
|
||||||
}
|
|
||||||
]
|
|
||||||
},
|
|
||||||
{
|
|
||||||
"id":"captive_girl_65",
|
|
||||||
"message":"Ah, YES. I remember her saying that an \"undead\" friend of her's east of here taught her how to make them.",
|
|
||||||
"replies":[
|
|
||||||
{
|
|
||||||
"text":"OK. Stay here. I will be back with more of them.",
|
|
||||||
"nextPhraseID":"X"
|
|
||||||
}
|
|
||||||
],
|
|
||||||
"rewards":[
|
|
||||||
{
|
|
||||||
"rewardType":"questProgress",
|
|
||||||
"rewardID":"wicked_witch",
|
|
||||||
"value":90
|
|
||||||
}
|
|
||||||
]
|
|
||||||
},
|
|
||||||
{
|
|
||||||
"id":"wicked_witch_reveal_girl_selector",
|
|
||||||
"replies":[
|
|
||||||
{
|
|
||||||
"text":"N",
|
|
||||||
"nextPhraseID":"wicked_witch_reveal_girl_spawn",
|
|
||||||
"requires":[
|
|
||||||
{
|
|
||||||
"requireType":"timerElapsed",
|
|
||||||
"requireID":"wicked_witch_despawn_timer",
|
|
||||||
"value":72
|
|
||||||
},
|
|
||||||
{
|
|
||||||
"requireType":"questProgress",
|
|
||||||
"requireID":"wicked_witch",
|
|
||||||
"value":96,
|
|
||||||
"negate":true
|
|
||||||
},
|
|
||||||
{
|
|
||||||
"requireType":"questProgress",
|
|
||||||
"requireID":"wicked_witch",
|
|
||||||
"value":95,
|
|
||||||
"negate":true
|
|
||||||
}
|
|
||||||
]
|
|
||||||
}
|
|
||||||
]
|
|
||||||
},
|
|
||||||
{
|
{
|
||||||
"id":"fix_stn_skeletons_10",
|
"id":"fix_stn_skeletons_10",
|
||||||
"message":"What a beautiful view from here.",
|
"message":"What a beautiful view from here.",
|
||||||
|
|||||||
@@ -11819,7 +11819,8 @@
|
|||||||
"message":"No, unfortunately not. Maybe try my colleague in Fallhaven?",
|
"message":"No, unfortunately not. Maybe try my colleague in Fallhaven?",
|
||||||
"replies":[
|
"replies":[
|
||||||
{
|
{
|
||||||
"text":"Sigh - well, thanks."
|
"text":"Sigh - well, thanks.",
|
||||||
|
"nextPhraseID":"X"
|
||||||
}
|
}
|
||||||
]
|
]
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -925,31 +925,5 @@
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
]
|
]
|
||||||
},
|
|
||||||
{
|
|
||||||
"id":"ratdom_618_loot1",
|
|
||||||
"items":[
|
|
||||||
{
|
|
||||||
"itemID":"gold",
|
|
||||||
"chance":"100",
|
|
||||||
"quantity":{
|
|
||||||
"min":200,
|
|
||||||
"max":400
|
|
||||||
}
|
|
||||||
}
|
|
||||||
]
|
|
||||||
},
|
|
||||||
{
|
|
||||||
"id":"ratdom_618_loot2",
|
|
||||||
"items":[
|
|
||||||
{
|
|
||||||
"itemID":"ratdom_parchment",
|
|
||||||
"chance":"100",
|
|
||||||
"quantity":{
|
|
||||||
"min":1,
|
|
||||||
"max":1
|
|
||||||
}
|
|
||||||
}
|
|
||||||
]
|
|
||||||
}
|
}
|
||||||
]
|
]
|
||||||
@@ -749,27 +749,6 @@
|
|||||||
}
|
}
|
||||||
]
|
]
|
||||||
},
|
},
|
||||||
{
|
|
||||||
"id":"gapfillerhole_drop",
|
|
||||||
"items":[
|
|
||||||
{
|
|
||||||
"itemID":"gold",
|
|
||||||
"chance":"100",
|
|
||||||
"quantity":{
|
|
||||||
"min":10,
|
|
||||||
"max":100
|
|
||||||
}
|
|
||||||
},
|
|
||||||
{
|
|
||||||
"itemID":"gem1",
|
|
||||||
"chance":"100",
|
|
||||||
"quantity":{
|
|
||||||
"min":1,
|
|
||||||
"max":2
|
|
||||||
}
|
|
||||||
}
|
|
||||||
]
|
|
||||||
},
|
|
||||||
{
|
{
|
||||||
"id":"lava_queen_dl",
|
"id":"lava_queen_dl",
|
||||||
"items":[
|
"items":[
|
||||||
|
|||||||
@@ -34,32 +34,6 @@
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
{
|
|
||||||
"id": "shadow_slayer",
|
|
||||||
"iconID": "items_weapons:60",
|
|
||||||
"name": "Shadow of the slayer",
|
|
||||||
"category": "lsword",
|
|
||||||
"displaytype": "extraordinary",
|
|
||||||
"hasManualPrice": 1,
|
|
||||||
"baseMarketCost": 0,
|
|
||||||
"equipEffect": {
|
|
||||||
"increaseMaxAP": 2,
|
|
||||||
"increaseAttackCost": 7,
|
|
||||||
"increaseAttackChance": 25,
|
|
||||||
"increaseCriticalSkill": 10,
|
|
||||||
"setCriticalMultiplier": 2,
|
|
||||||
"increaseAttackDamage": {
|
|
||||||
"min": 5,
|
|
||||||
"max": 9
|
|
||||||
}
|
|
||||||
},
|
|
||||||
"killEffect": {
|
|
||||||
"increaseCurrentHP": {
|
|
||||||
"min": 1,
|
|
||||||
"max": 1
|
|
||||||
}
|
|
||||||
}
|
|
||||||
},
|
|
||||||
{
|
{
|
||||||
"id":"choatic_potion",
|
"id":"choatic_potion",
|
||||||
"iconID":"items_consumables:62",
|
"iconID":"items_consumables:62",
|
||||||
|
|||||||
@@ -7,14 +7,6 @@
|
|||||||
"hasManualPrice": 1,
|
"hasManualPrice": 1,
|
||||||
"baseMarketCost": 6
|
"baseMarketCost": 6
|
||||||
},
|
},
|
||||||
{
|
|
||||||
"id": "bat_wing",
|
|
||||||
"iconID": "items_misc:46",
|
|
||||||
"name": "Bat wing",
|
|
||||||
"category": "animal",
|
|
||||||
"hasManualPrice": 1,
|
|
||||||
"baseMarketCost": 2
|
|
||||||
},
|
|
||||||
{
|
{
|
||||||
"id": "feather",
|
"id": "feather",
|
||||||
"iconID": "items_misc:16",
|
"iconID": "items_misc:16",
|
||||||
@@ -39,14 +31,6 @@
|
|||||||
"hasManualPrice": 1,
|
"hasManualPrice": 1,
|
||||||
"baseMarketCost": 1
|
"baseMarketCost": 1
|
||||||
},
|
},
|
||||||
{
|
|
||||||
"id": "gem6",
|
|
||||||
"iconID": "items_misc:4",
|
|
||||||
"name": "Shimmering gem",
|
|
||||||
"category": "gem",
|
|
||||||
"hasManualPrice": 1,
|
|
||||||
"baseMarketCost": 26
|
|
||||||
},
|
|
||||||
{
|
{
|
||||||
"id": "gem8",
|
"id": "gem8",
|
||||||
"iconID": "actorconditions_1:50",
|
"iconID": "actorconditions_1:50",
|
||||||
|
|||||||
Reference in New Issue
Block a user