]> www.infradead.org Git - users/mchehab/andors-trail.git/commitdiff
Updated to version v0.6.10a3.
authoroskar.wiksten@gmail.com <oskar.wiksten@gmail.com@08aca716-68be-ccc6-4d58-36f5abd142ac>
Sun, 9 Oct 2011 11:14:38 +0000 (11:14 +0000)
committeroskar.wiksten@gmail.com <oskar.wiksten@gmail.com@08aca716-68be-ccc6-4d58-36f5abd142ac>
Sun, 9 Oct 2011 11:14:38 +0000 (11:14 +0000)
Updated dialog of Oluag, Unnmir and Gaela for when the player has already talked to them.
Updated conversation of guard in Prim main hall.
Sort skills according to id.
Renamed old healing potions to differentiate them from the new healing potions.
Spelling corrections to v0.6.10 conversation content.
Removed overScrollFooter for conversation listview (for issue 205)

git-svn-id: https://andors-trail.googlecode.com/svn/trunk@173 08aca716-68be-ccc6-4d58-36f5abd142ac

AndorsTrail/AndroidManifest.xml
AndorsTrail/res/layout/conversation.xml
AndorsTrail/res/values-fr/content_conversationlist.xml
AndorsTrail/res/values-it/content_conversationlist.xml
AndorsTrail/res/values-ru/content_conversationlist.xml
AndorsTrail/res/values-v10/ui_listviewstyle.xml [new file with mode: 0644]
AndorsTrail/res/values/content_conversationlist.xml
AndorsTrail/res/values/content_itemlist.xml
AndorsTrail/res/values/ui_listviewstyle.xml [new file with mode: 0644]
AndorsTrail/src/com/gpl/rpg/AndorsTrail/AndorsTrailApplication.java
AndorsTrail/src/com/gpl/rpg/AndorsTrail/view/SkillListAdapter.java

index 12782d8f7797803db49a1a782c0e3a9a8fd9320f..9e8ec0962b5ad59d711c292094bbb4ee68d6179f 100644 (file)
@@ -4,7 +4,7 @@
        xmlns:android="http://schemas.android.com/apk/res/android" 
        package="com.gpl.rpg.AndorsTrail"
        android:versionCode="24"
-       android:versionName="0.6.10a2"
+       android:versionName="0.6.10a3"
        android:installLocation="auto"
        >
        <uses-sdk 
index dc00925fb5645762fbf01538a9dba5b864090ce2..3e7992a8c25896ccbecbbe12c0352f635cd1e25f 100644 (file)
@@ -15,6 +15,7 @@
                android:id="@+id/conversation_statements"
                android:transcriptMode="alwaysScroll"
                android:padding="@dimen/dialog_margin"
+               style="@style/ConversationListView"
                />
 
        <LinearLayout
index 369dcc8f59e4bdaa668a2eef0f43d2c2f38ef809..75b2ea96a6a202a27a0d741419fa821d8d843ce0 100644 (file)
 
        <string name="conversationlist_fallhaven_unnmir">
 [id|message|progressQuest|rewardDropListID|replies[text|nextPhraseID|requires_Progress|requires_itemID|requires_Quantity|]|];
-{unnmir|Bonjour.|||{{J\'ai croisé un ivrogne devant la taverne qui m\'a raconté une histoire à propos de vous deux.|unnmir_1|fallhavendrunk:100|||}}|};
+{unnmir||||{
+       {|unnmir_r|nocmar:10|||}
+       {|unnmir_0||||}
+       }|};
+{unnmir_r|Hello again. You should go talk to Nocmar.|||{{N|unnmir_13||||}}|};
+{unnmir_0|Bonjour.|||{{J\'ai croisé un ivrogne devant la taverne qui m\'a raconté une histoire à propos de vous deux.|unnmir_1|fallhavendrunk:100|||}}|};
 {unnmir_1|Ce vieux radoteur de la taverne t\'a raconté notre histoire ?|||{{N|unnmir_2||||}}|};
 {unnmir_2|C\'est toujours la même vieille histoire. Nous voyagions ensemble il y a de cela quelques années.|||{{N|unnmir_3||||}}|};
 {unnmir_3|La grande aventure, tu vois, avec les épées et les sorts.|||{{N|unnmir_4||||}}|};
 
        <string name="conversationlist_fallhaven_gaela">
 [id|message|progressQuest|rewardDropListID|replies[text|nextPhraseID|requires_Progress|requires_itemID|requires_Quantity|]|];
-{gaela|Prompte est ma lame. Empoisonnée est ma langue. À moins que ce ne soit le contraire ?|||{{On dirait qu\'il y a beaucoup de voleurs à Fallhaven.|gaela_1||||}}|};
+{gaela||||{
+       {|gaela_r|andor:40|||}
+       {|gaela_0||||}
+       }|};
+{gaela_r|Hello again. I hope you will find what you are looking for.||||};
+{gaela_0|Prompte est ma lame. Empoisonnée est ma langue. À moins que ce ne soit le contraire ?|||{{On dirait qu\'il y a beaucoup de voleurs à Fallhaven.|gaela_1||||}}|};
 {gaela_1|Oui, ils sont très présents ici.|||{{Qu\'y a-t-il d\'autre ?|gaela_2|andor:30|||}}|};
 {gaela_2|J\'ai entendu dire que tu avais aidé Gruil, un compagnon voleur du village de Crossglen.|||{{N|gaela_3||||}}|};
 {gaela_3|J\'ai aussi eu vent que tu recherchais quelqu\'un. Peut-être pourrais-je t\'aider.|||{{N|gaela_4||||}}|};
index 7de5dd3ac885b0e86da7aa5379a668e49c8ee4a1..28917001e0bcf95e5a79953e4d01014646e9af44 100644 (file)
 
         <string name="conversationlist_fallhaven_unnmir">
 [id|message|progressQuest|rewardDropListID|replies[text|nextPhraseID|requires_Progress|requires_itemID|requires_Quantity|]|];
-{unnmir|Ciao a tutti.|||{{Drunken story|unnmir_1|fallhavendrunk:100|||}}|};
+{unnmir||||{
+       {|unnmir_r|nocmar:10|||}
+       {|unnmir_0||||}
+       }|};
+{unnmir_r|Hello again. You should go talk to Nocmar.|||{{N|unnmir_13||||}}|};
+{unnmir_0|Ciao a tutti.|||{{Drunken story|unnmir_1|fallhavendrunk:100|||}}|};
 {unnmir_1|Quel vecchio ubriacone alla taverna ti ha raccontato la sua storia?|||{{N|unnmir_2||||}}|};
 {unnmir_2|La stessa vecchia storia. Eravamo abituati a viaggiare insieme qualche anno fa.|||{{N|unnmir_3||||}}|};
 {unnmir_3|Avventure vere...sai, spade e incantesimi.|||{{N|unnmir_4||||}}|};
 
         <string name="conversationlist_fallhaven_gaela">
 [id|message|progressQuest|rewardDropListID|replies[text|nextPhraseID|requires_Progress|requires_itemID|requires_Quantity|]|];
-{gaela|Veloce è la mia lama. velenosa la mia lingua. O era il contrario?|||{{Ladri|gaela_1||||}}|};
+{gaela||||{
+       {|gaela_r|andor:40|||}
+       {|gaela_0||||}
+       }|};
+{gaela_r|Hello again. I hope you will find what you are looking for.||||};
+{gaela_0|Veloce è la mia lama. velenosa la mia lingua. O era il contrario?|||{{Ladri|gaela_1||||}}|};
 {gaela_1|Si, noi ladri abbiamo una forte presenza a Fallhaven.|||{{Qualcos\'altro?|gaela_2|andor:30|||}}|};
 {gaela_2|Ho sentito che hai aiutato Gruil, un ladro compagn del villaggio di Crossglen.|||{{N|gaela_3||||}}|};
 {gaela_3|Voci dicono che stai cercando qualcuno. Potre essere in grado di aiutarti.|||{{N|gaela_4||||}}|};
 
         <string name="conversationlist_oluag">
 [id|message|progressQuest|rewardDropListID|replies[text|nextPhraseID|requires_Progress|requires_itemID|requires_Quantity|]|];
-{oluag_1|Ciao. Sono Oluag.|||{{Cosa stai facendo qui attorno a queste cassette?|oluag_2||||}}|};
+{oluag_1||||{
+       {|oluag_grave_16|wrye:80|||}
+       {|oluag_1_1||||}
+       }|};
+{oluag_1_1|Ciao. Sono Oluag.|||{{Cosa stai facendo qui attorno a queste cassette?|oluag_2||||}}|};
 {oluag_2|Oh queste. Non sono nulla. Dimenticale. E la tomba lassù e un\'altra cosa di cui non ti devi preoccupare.|||{{Quale tomba?|oluag_grave_select||||}{Niente, veramente? Suona alquanto sospetto.|oluag_boxes_1||||}}|};
 {oluag_boxes_1|No no, niente di sospetto sicuro. Non sono tipo casse che contenevano robe di contrabbando o cose simili, hah!|||{{E allora riguardo a quella tomba?|oluag_grave_select||||}{Ok allora. Suppongo di non aver visto nulla.|oluag_goodbye||||}}|};
 {oluag_goodbye|Giusto. Arrivederci.||||};
index 36fbd9347cfad52d7ca769b6ec197a792bb72359..ec5668f44fe59f90e7b46d55f2fa81ed381bda5d 100644 (file)
 
        <string name="conversationlist_fallhaven_unnmir">
 [id|message|progressQuest|rewardDropListID|replies[text|nextPhraseID|requires_Progress|requires_itemID|requires_Quantity|]|];
-{unnmir|Эй, привет!|||{{История пьяницы|unnmir_1|fallhavendrunk:100|||}}|};
+{unnmir||||{
+       {|unnmir_r|nocmar:10|||}
+       {|unnmir_0||||}
+       }|};
+{unnmir_r|Hello again. You should go talk to Nocmar.|||{{N|unnmir_13||||}}|};
+{unnmir_0|Эй, привет!|||{{История пьяницы|unnmir_1|fallhavendrunk:100|||}}|};
 {unnmir_1|Этот старый пьянчуга у таверны рассказал тебе историю, не так ли?|||{{N|unnmir_2||||}}|};
 {unnmir_2|Это старая история. Мы путешествовали вместе несколько лет назад.|||{{N|unnmir_3||||}}|};
 {unnmir_3|Это были настоящие приключения, мечи и магия.|||{{N|unnmir_4||||}}|};
 
        <string name="conversationlist_fallhaven_gaela">
 [id|message|progressQuest|rewardDropListID|replies[text|nextPhraseID|requires_Progress|requires_itemID|requires_Quantity|]|];
-{gaela|Свифт - мой клинок. Отравленный моим языком. Или это было наоборот?|||{{Воры|gaela_1||||}}|};
+{gaela||||{
+       {|gaela_r|andor:40|||}
+       {|gaela_0||||}
+       }|};
+{gaela_r|Hello again. I hope you will find what you are looking for.||||};
+{gaela_0|Свифт - мой клинок. Отравленный моим языком. Или это было наоборот?|||{{Воры|gaela_1||||}}|};
 {gaela_1|Да, мы воры, имеем сильное влияние в Фоллхейвене.|||{{Далее|gaela_2|andor:30|||}}|};
 {gaela_2|Я слышал, что ты помог Груилу, представителю гильдии в Кроссглене.|||{{N|gaela_3||||}}|};
 {gaela_3|Так же я слышал, что ты ищешь кого-то. Я мог бы тебе помочь.|||{{N|gaela_4||||}}|};
diff --git a/AndorsTrail/res/values-v10/ui_listviewstyle.xml b/AndorsTrail/res/values-v10/ui_listviewstyle.xml
new file mode 100644 (file)
index 0000000..a758825
--- /dev/null
@@ -0,0 +1,8 @@
+<?xml version="1.0" encoding="utf-8"?>
+<resources>
+    <style name="ConversationListView" parent="@android:style/Widget.ListView">
+       <!-- See http://community.developer.motorola.com/t5/MOTODEV-Blog/Why-Does-My-ListView-Look-Different/ba-p/17462 -->
+       <item name="android:listSelector">@null</item>
+       <item name="android:overScrollFooter">@null</item>
+       </style>
+</resources>
index b941b346050b56d2eac35d9b63894f01a3a295b3..577259eef6235a514b0a5a4fb311f8bb7485ec8b 100644 (file)
 
        <string name="conversationlist_fallhaven_unnmir">
 [id|message|progressQuest|rewardDropListID|replies[text|nextPhraseID|requires_Progress|requires_itemID|requires_Quantity|]|];
-{unnmir|Hi there.|||{{There was a drunk outside the tavern that told me a story about you two.|unnmir_1|fallhavendrunk:100|||}}|};
+{unnmir||||{
+       {|unnmir_r|nocmar:10|||}
+       {|unnmir_0||||}
+       }|};
+{unnmir_r|Hello again. You should go talk to Nocmar.|||{{N|unnmir_13||||}}|};
+{unnmir_0|Hi there.|||{{There was a drunk outside the tavern that told me a story about you two.|unnmir_1|fallhavendrunk:100|||}}|};
 {unnmir_1|That old drunk over at the tavern told you his story did he?|||{{N|unnmir_2||||}}|};
 {unnmir_2|Same old story. We used to travel together a few years back.|||{{N|unnmir_3||||}}|};
 {unnmir_3|Real adventuring you know, swords and spells.|||{{N|unnmir_4||||}}|};
 
        <string name="conversationlist_fallhaven_gaela">
 [id|message|progressQuest|rewardDropListID|replies[text|nextPhraseID|requires_Progress|requires_itemID|requires_Quantity|]|];
-{gaela|Swift is my blade. Poisoned is my tongue. Or was it the other way around?|||{{There seems to be a lot of thieves here in Fallhaven.|gaela_1||||}}|};
+{gaela||||{
+       {|gaela_r|andor:40|||}
+       {|gaela_0||||}
+       }|};
+{gaela_r|Hello again. I hope you will find what you are looking for.||||};
+{gaela_0|Swift is my blade. Poisoned is my tongue. Or was it the other way around?|||{{There seems to be a lot of thieves here in Fallhaven.|gaela_1||||}}|};
 {gaela_1|Yes, we thieves have a strong presence here.|||{{Anything more?|gaela_2|andor:30|||}}|};
 {gaela_2|I heard that you helped Gruil, a fellow thief in Crossglen village.|||{{N|gaela_3||||}}|};
 {gaela_3|Word has also reached me that you are looking for someone. I might be able to help you.|||{{N|gaela_4||||}}|};
 
        <string name="conversationlist_oluag">
 [id|message|progressQuest|rewardDropListID|replies[text|nextPhraseID|requires_Progress|requires_itemID|requires_Quantity|]|];
-{oluag_1|Hello. I am Oluag.|||{{What are you doing here around these crates?|oluag_2||||}}|};
+{oluag_1||||{
+       {|oluag_grave_16|wrye:80|||}
+       {|oluag_1_1||||}
+       }|};
+{oluag_1_1|Hello. I am Oluag.|||{{What are you doing here around these crates?|oluag_2||||}}|};
 {oluag_2|Oh these. They are nothing. Never mind them. And that grave over there is nothing to worry about either.|||{{What grave?|oluag_grave_select||||}{Nothing, really? This sounds suspicious.|oluag_boxes_1||||}}|};
 {oluag_boxes_1|No no, nothing suspicious at all. It\'s not like they contain any contraband or anything like that, hah!|||{{What was that about a grave?|oluag_grave_select||||}{Ok then. I guess I didn\'t see anything.|oluag_goodbye||||}}|};
 {oluag_goodbye|Right. Goodbye.||||};
 {prim_guard1|What are you looking at? These weapons in the crates over here are only for us guards.||||};
 {prim_guard2|(The guard looks down on you with a condescending look)||||};
 {prim_guard3|Oh, I am so tired. When will we ever get to rest?||||};
-{prim_guard4|Can\'t talk now. I\'m on guard duty. Talk to Guthbered over there.||||};
+{prim_guard4|Can\'t talk now. I\'m on guard duty. If you need help, talk to someone else over there instead.||||};
 {prim_treasury_guard|See these bars? They will hold for almost anything.||||};
 {prim_acolyte|When my training is complete, I will be one of greatest healers around!||||};
 {prim_pupil1|Can\'t you see I\'m trying to read over here? Talk to me in a while and I might be interested.||||};
        {You mentioned the Duleian road, what\'s that?|minarra_first_6_1||||}
        {You mentioned some problems in Loneford, what problems were you referring to?|cr_loneford_st_1||||}
        }|};
-{minarra_first_5|I handle the equipment storage for us guards here in the Crossroads guardhose, and I keep a lookout of the surrounding areas.|||{
+{minarra_first_5|I handle the equipment storage for us guards here in the Crossroads guardhouse, and I keep a lookout of the surrounding areas.|||{
        {Do you have anything to trade?|minarra_trade_rej||||}
        {Have you seen anything interesting lately?|minarra_first_2||||}
        }|};
        {Is there any place I can rest here?|gallain_rest_1||||}
        {What is this place?|gallain_cr_1||||}
        }|};
-{gallain_cr_1|As I said, this is the Crossroads guardhouse. The guards from Geygard are using this place as a place to rest and gear up.|||{{N|gallain_cr_2||||}}|};
+{gallain_cr_1|As I said, this is the Crossroads guardhouse. The guards from Feygard are using this place as a place to rest and gear up.|||{{N|gallain_cr_2||||}}|};
 {gallain_cr_2|Because of this, it is also a safe haven for merchants travelling through here. And we get at lot of those.|||{{N|gallain_1||||}}|};
 {gallain_trade_1|Here, have a look.|||{{Trade|S||||}}|};
 {gallain_rest_1|The guards have set up some beds downstairs. Go check with them.|||{{N|gallain_1||||}}|};
 {landa_19|Now, get out of here kid, before anyone sees you talking to me. *Looks around anxiously*|||{
        {Thank you Landa. You secret is safe with me.|X||||}
        {Thank you Landa. I\'ll consider it.|X||||}
-       {Are you done? Phew, I though you were never going to stop takling.|X||||}
+       {Are you done? Phew, I thought you were never going to stop takling.|X||||}
        }|};
 {landa_already_1|You again? I already told you. Get out of here before anyone sees you talking to me.||||};
        </string>
        {I have some Izthiel claws to sell you.|gauward_sell_1|nondisplay:20|||}
        }|};
 {gauward_1|This place used to be a safe house for travellers between Loneford and Brimhaven, before they had finished the road between the villages.|||{{N|gauward_2||||}}|};
-{gauward_2|But nowadays, noone rarely comes here - because of those cursed creatures from the river.|||{{N|gauward_3||||}}|};
+{gauward_2|But nowadays, no one rarely comes here - because of those cursed creatures from the river.|||{{N|gauward_3||||}}|};
 {gauward_3|Izthiel, they call them.|||{{N|gauward_4||||}}|};
 {gauward_4|Ack, if it wasn\'t for those things out there, I am sure a lof of people would come by here more often.|||{
        {Would you like me to kill the creatures for you?|gauward_5||||}
index b189383536e87eedb75d672e4fe9177832d15765..508e4a8e476de590c74b1b5566803ce61053fbb1 100644 (file)
 {vial_empty1|items_consumables:56|Small empty vial|31||1|2|||||||||||||||||||||||||||||||||};
 {vial_empty2|items_consumables:57|Empty vial|31||1|4|||||||||||||||||||||||||||||||||};
 {vial_empty3|items_consumables:59|Empty flask|31||1|6|||||||||||||||||||||||||||||||||};
-{vial_empty4|items_consumables:58|Empty potion|31||1|11|||||||||||||||||||||||||||||||||};
-{health_minor|items_consumables:35|Minor potion of health|20||1|5||||||||||||||1|5|5|||||||||||||||||};
+{vial_empty4|items_consumables:58|Empty potion bottle|31||1|11|||||||||||||||||||||||||||||||||};
+{health_minor|items_consumables:35|Minor vial of health|20||1|5||||||||||||||1|5|5|||||||||||||||||};
 {health_minor2|items_consumables:35|Minor potion of health|20|||18||||||||||||||1|5|5|||||||||||||||||};
 {health|items_consumables:49|Regular potion of health|20|||40||||||||||||||1|10|10|||||||||||||||||};
-{health_major|items_consumables:28|Major potion of health|20||1|210||||||||||||||1|40|40|||||||||||||||||};
+{health_major|items_consumables:28|Major flask of health|20||1|210||||||||||||||1|40|40|||||||||||||||||};
 {health_major2|items_consumables:28|Major potion of health|20|||280||||||||||||||1|40|40|||||||||||||||||};
 {mead|items_consumables:51|Mead|20|||15||||||||||||||1|1|1|||||||||||||||||};
 {milk|items_consumables:55|Milk|20|||21||||||||||||||1|2|2|||||||||||||||||};
diff --git a/AndorsTrail/res/values/ui_listviewstyle.xml b/AndorsTrail/res/values/ui_listviewstyle.xml
new file mode 100644 (file)
index 0000000..99af513
--- /dev/null
@@ -0,0 +1,6 @@
+<?xml version="1.0" encoding="utf-8"?>
+<resources>
+    <style name="ConversationListView" parent="@android:style/Widget.ListView">
+       <!-- Not used here. Overridden in values-v10/ -->
+       </style>
+</resources>
index eee8c3dc2d4912d27b8f2e8a778aac7110722a8b..dc468ffaed3672f27fccd55f674d82e0ba268601 100644 (file)
@@ -20,7 +20,7 @@ public final class AndorsTrailApplication extends Application {
        public static final boolean DEVELOPMENT_VALIDATEDATA = false;\r
        public static final boolean DEVELOPMENT_DEBUGMESSAGES = false;\r
        public static final int CURRENT_VERSION = 24;\r
-       public static final String CURRENT_VERSION_DISPLAY = "0.6.10a2";\r
+       public static final String CURRENT_VERSION_DISPLAY = "0.6.10a3";\r
        \r
        public final WorldContext world = new WorldContext();\r
        public final WorldSetup setup = new WorldSetup(world, this);\r
index 07d81c6a59ed872f924a52d7f2e7e929b3dd0f83..80eb1d43c41883247bca86994f5daf92b0d420ca 100644 (file)
@@ -2,6 +2,8 @@ package com.gpl.rpg.AndorsTrail.view;
 
 import java.util.ArrayList;
 import java.util.Collection;
+import java.util.Collections;
+import java.util.Comparator;
 import java.util.List;
 
 import com.gpl.rpg.AndorsTrail.R;
@@ -34,6 +36,12 @@ public final class SkillListAdapter extends ArrayAdapter<SkillInfo> {
                for (SkillInfo skill : skills) {
                        if (shouldDisplaySkill(skill, player)) result.add(skill);
                }
+               Collections.sort(result, new Comparator<SkillInfo>() {
+               @Override
+                       public int compare(SkillInfo a, SkillInfo b) {
+                               return a.id - b.id;
+                       }
+        });
                return result;
        }