- Bump version number to 0.18
- Fix issue introduced in 0.17 with Immortal task
This commit is contained in:
@@ -1,8 +1,8 @@
|
|||||||
<?xml version="1.0" encoding="utf-8"?>
|
<?xml version="1.0" encoding="utf-8"?>
|
||||||
<manifest xmlns:android="http://schemas.android.com/apk/res/android"
|
<manifest xmlns:android="http://schemas.android.com/apk/res/android"
|
||||||
package="net.wagic.app"
|
package="net.wagic.app"
|
||||||
android:versionCode="171"
|
android:versionCode="180"
|
||||||
android:versionName="0.17.1">
|
android:versionName="0.18.0">
|
||||||
<uses-permission android:name="android.permission.MODIFY_AUDIO_SETTINGS"></uses-permission>
|
<uses-permission android:name="android.permission.MODIFY_AUDIO_SETTINGS"></uses-permission>
|
||||||
<uses-permission android:name="android.permission.WRITE_EXTERNAL_STORAGE"/>
|
<uses-permission android:name="android.permission.WRITE_EXTERNAL_STORAGE"/>
|
||||||
<uses-permission android:name="android.permission.INTERNET"/>
|
<uses-permission android:name="android.permission.INTERNET"/>
|
||||||
|
|||||||
@@ -72,7 +72,7 @@ public class SDLActivity extends Activity {
|
|||||||
public String mErrorMessage = "";
|
public String mErrorMessage = "";
|
||||||
public Boolean mErrorHappened = false;
|
public Boolean mErrorHappened = false;
|
||||||
public final static String RES_FOLDER = "/sdcard/Wagic/Res/";
|
public final static String RES_FOLDER = "/sdcard/Wagic/Res/";
|
||||||
public static final String RES_FILENAME = "core_0171.zip";
|
public static final String RES_FILENAME = "core_0180.zip";
|
||||||
public static final String RES_URL = "http://wagic.googlecode.com/files/";
|
public static final String RES_URL = "http://wagic.googlecode.com/files/";
|
||||||
|
|
||||||
private void startDownload() {
|
private void startDownload() {
|
||||||
|
|||||||
@@ -26,14 +26,14 @@ def createResZipFile(filename):
|
|||||||
zip_file.close()
|
zip_file.close()
|
||||||
|
|
||||||
def createStandardResFile():
|
def createStandardResFile():
|
||||||
filename = 'core_017.zip'
|
filename = 'core_0180.zip'
|
||||||
createResZipFile( filename )
|
createResZipFile( filename )
|
||||||
print >> sys.stderr, 'Created Resource Package for Standard Distribution: {0}'.format( filename)
|
print >> sys.stderr, 'Created Resource Package for Standard Distribution: {0}'.format( filename)
|
||||||
|
|
||||||
def createIosResFile():
|
def createIosResFile():
|
||||||
print 'Preparing Resource Package for iOS'
|
print 'Preparing Resource Package for iOS'
|
||||||
utilities = ZipUtilities()
|
utilities = ZipUtilities()
|
||||||
filename = 'core_0171_iOS.zip'
|
filename = 'core_0180_iOS.zip'
|
||||||
#createResZipFile( filename )
|
#createResZipFile( filename )
|
||||||
zip_file = zipfile.ZipFile(filename, 'a', zipfile.ZIP_STORED)
|
zip_file = zipfile.ZipFile(filename, 'a', zipfile.ZIP_STORED)
|
||||||
zip_file.write("../../iOS/Res/rules/modrules.xml", "rules/modrules.xml", zipfile.ZIP_STORED)
|
zip_file.write("../../iOS/Res/rules/modrules.xml", "rules/modrules.xml", zipfile.ZIP_STORED)
|
||||||
|
|||||||
@@ -28,8 +28,8 @@
|
|||||||
|
|
||||||
/* Wagic versions */
|
/* Wagic versions */
|
||||||
#define WAGIC_VERSION_MAJOR 0
|
#define WAGIC_VERSION_MAJOR 0
|
||||||
#define WAGIC_VERSION_MEDIUM 17
|
#define WAGIC_VERSION_MEDIUM 18
|
||||||
#define WAGIC_VERSION_MINOR 1
|
#define WAGIC_VERSION_MINOR 0
|
||||||
|
|
||||||
#define VERSION_DOT(a, b, c) a ##.## b ##.## c
|
#define VERSION_DOT(a, b, c) a ##.## b ##.## c
|
||||||
#define VERSION_WITHOUT_DOT(a, b, c) a ## b ## c
|
#define VERSION_WITHOUT_DOT(a, b, c) a ## b ## c
|
||||||
|
|||||||
@@ -824,7 +824,7 @@ string TaskImmortal::getShortDesc()
|
|||||||
bool TaskImmortal::isDone(GameObserver *observer, GameApp * _app)
|
bool TaskImmortal::isDone(GameObserver *observer, GameApp * _app)
|
||||||
{
|
{
|
||||||
return (!observer->players[0]->isAI()) && (observer->players[1]->isAI()) && (observer->gameOver != observer->players[0]) // Human player wins
|
return (!observer->players[0]->isAI()) && (observer->players[1]->isAI()) && (observer->gameOver != observer->players[0]) // Human player wins
|
||||||
&& (observer->players[1]->life >= targetLife);
|
&& (observer->players[0]->life >= targetLife);
|
||||||
}
|
}
|
||||||
|
|
||||||
void TaskImmortal::storeCustomAttribs()
|
void TaskImmortal::storeCustomAttribs()
|
||||||
|
|||||||
Reference in New Issue
Block a user