Skip to content

Commit

Permalink
Merge pull request #89 from CleverRaven/master
Browse files Browse the repository at this point in the history
More string consts into single file (CleverRaven#38189)
  • Loading branch information
fengjixuchui authored Feb 21, 2020
2 parents 7b119c1 + b1b48ba commit e3f8a66
Show file tree
Hide file tree
Showing 101 changed files with 1,501 additions and 1,078 deletions.
67 changes: 63 additions & 4 deletions android/app/build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -35,24 +35,83 @@ if (keystorePropertiesFile.exists()) {
}

def njobs = getProperty("j")
if (localProperties.getProperty('j') != null) {
njobs = localProperties.getProperty("j")
}

def localize = getProperty("localize").toBoolean()
if (localProperties.getProperty('localize') != null) {
localize = localProperties.getProperty("localize").toBoolean()
}

def abi_arm_32 = getProperty("abi_arm_32").toBoolean()
if (localProperties.getProperty('abi_arm_32') != null) {
abi_arm_32 = localProperties.getProperty("abi_arm_32").toBoolean()
}

def abi_arm_64 = getProperty("abi_arm_64").toBoolean()
if (localProperties.getProperty('abi_arm_64') != null) {
abi_arm_64 = localProperties.getProperty("abi_arm_64").toBoolean()
}

def abi_x86_32 = getProperty("abi_x86_32").toBoolean()
if (localProperties.getProperty('abi_x86_32') != null) {
abi_x86_32 = localProperties.getProperty("abi_x86_32").toBoolean()
}

def abi_x86_64 = getProperty("abi_x86_64").toBoolean()
if (localProperties.getProperty('abi_x86_64') != null) {
abi_x86_64 = localProperties.getProperty("abi_x86_64").toBoolean()
}

def deps = getProperty("deps")
if (localProperties.getProperty('deps') != null) {
deps = localProperties.getProperty("deps")
}

def override_version = getProperty("override_version")
if (localProperties.getProperty('override_version') != null) {
override_version = localProperties.getProperty("override_version")
}

def version_header_path = getProperty("version_header_path")
if (localProperties.getProperty('version_header_path') != null) {
version_header_path = localProperties.getProperty("version_header_path")
}

def override_compileSdkVersion = getProperty("override_compileSdkVersion").toInteger()
if (localProperties.getProperty('override_compileSdkVersion') != null) {
override_compileSdkVersion = localProperties.getProperty("override_compileSdkVersion").toInteger()
}

def override_minSdkVersion = getProperty("override_minSdkVersion").toInteger()
if (localProperties.getProperty('override_minSdkVersion') != null) {
override_minSdkVersion = localProperties.getProperty("override_minSdkVersion").toInteger()
}

def override_targetSdkVersion = getProperty("override_targetSdkVersion").toInteger()
if (localProperties.getProperty('override_targetSdkVersion') != null) {
override_targetSdkVersion = localProperties.getProperty("override_targetSdkVersion").toInteger()
}

def override_ndkBuildAppPlatform = getProperty("override_ndkBuildAppPlatform")
if (localProperties.getProperty('override_ndkBuildAppPlatform') != null) {
override_ndkBuildAppPlatform = localProperties.getProperty("override_ndkBuildAppPlatform")
}

println("Using compileSdkVersion: $override_compileSdkVersion")
println("Using minSdkVersion: $override_minSdkVersion")
println("Using targetSdkVersion: $override_targetSdkVersion")
println("Using ndkBuildAppPlatform: $override_ndkBuildAppPlatform")
println("Using [ njobs]: $njobs")
println("Using [ localize]: $localize")
println("Using [ deps]: $deps")
println("Using [ override_version]: $override_version")
println("Using [version_header_path]: $version_header_path")
println("Using [ compileSdkVersion]: $override_compileSdkVersion")
println("Using [ minSdkVersion]: $override_minSdkVersion")
println("Using [ targetSdkVersion]: $override_targetSdkVersion")
println("Using [ndkBuildAppPlatform]: $override_ndkBuildAppPlatform")
println("Using [ abi_arm_32]: $abi_arm_32")
println("Using [ abi_arm_64]: $abi_arm_64")
println("Using [ abi_x86_32]: $abi_x86_32")
println("Using [ abi_x86_64]: $abi_x86_64")

if (!abi_arm_32 && !abi_arm_64 && !abi_x86_32 && !abi_x86_64) {
throw new GradleException("All supported ABI properties are set to false!")
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -28,8 +28,8 @@ public class SplashScreen extends Activity {
private static final int INSTALL_DIALOG_ID = 0;
private ProgressDialog installDialog;

public CharSequence[] mSettingsNames = { "Software rendering", "Force fullscreen" };
public boolean[] mSettingsValues = { false, false};
public CharSequence[] mSettingsNames = { "Software rendering", "Force fullscreen", "Trap Back button" };
public boolean[] mSettingsValues = { false, false, true };

private String getVersionName() {
try {
Expand Down
38 changes: 19 additions & 19 deletions data/json/bionics.json
Original file line number Diff line number Diff line change
Expand Up @@ -2,15 +2,15 @@
{
"id": "bio_adrenaline",
"type": "bionic",
"name": "Adrenaline Pump",
"name": { "str": "Adrenaline Pump" },
"description": "A stimulator system has been surgically implanted alongside your adrenal glands, allowing you to trigger your body's adrenaline response at the cost of some bionic power.",
"occupied_bodyparts": [ [ "TORSO", 6 ] ],
"act_cost": "5 J"
},
{
"id": "bio_ads",
"type": "bionic",
"name": "Active Defense System",
"name": { "str": "Active Defense System" },
"description": "A thin forcefield surrounds your body, continually draining power. Anything attempting to penetrate this field has a chance of being deflected at the cost of energy, reducing their ability to deal damage. Bullets will be deflected more than melee weapons and those in turn more than massive objects.",
"occupied_bodyparts": [ [ "TORSO", 10 ], [ "HEAD", 1 ], [ "ARM_L", 1 ], [ "ARM_R", 1 ], [ "LEG_L", 2 ], [ "LEG_R", 2 ] ],
"flags": [ "BIONIC_TOGGLED", "BIONIC_NPC_USABLE" ],
Expand All @@ -21,7 +21,7 @@
{
"id": "bio_alarm",
"type": "bionic",
"name": "Alarm System",
"name": { "str": "Alarm System" },
"description": "A motion-detecting alarm system will notice almost all movement within a fifteen-foot radius, and will silently alert you. This is very useful during sleep, or if you suspect a cloaked pursuer.",
"occupied_bodyparts": [ [ "TORSO", 2 ], [ "HEAD", 1 ] ],
"flags": [ "BIONIC_TOGGLED", "BIONIC_SLEEP_FRIENDLY" ],
Expand All @@ -40,7 +40,7 @@
{
"id": "bio_armor_arms",
"type": "bionic",
"name": "Alloy Plating - Arms",
"name": { "str": "Alloy Plating - Arms" },
"description": "The flesh on your arms has been surgically replaced by alloy plating. Provides passive protection and can be used in conjunction with bionic martial arts.",
"occupied_bodyparts": [ [ "ARM_L", 4 ], [ "ARM_R", 4 ] ],
"bash_protec": [ [ "ARM_L", 3 ], [ "ARM_R", 3 ] ],
Expand All @@ -61,7 +61,7 @@
{
"id": "bio_armor_head",
"type": "bionic",
"name": "Alloy Plating - Head",
"name": { "str": "Alloy Plating - Head" },
"description": "The flesh on your head has been surgically replaced by alloy plating, protecting both your head and jaw regions.",
"occupied_bodyparts": [ [ "HEAD", 5 ], [ "MOUTH", 1 ] ],
"bash_protec": [ [ "HEAD", 3 ] ],
Expand All @@ -71,7 +71,7 @@
{
"id": "bio_armor_legs",
"type": "bionic",
"name": "Alloy Plating - Legs",
"name": { "str": "Alloy Plating - Legs" },
"description": "The flesh on your legs has been surgically replaced by alloy plating. Provides passive protection and can be used in conjunction with bionic martial arts.",
"occupied_bodyparts": [ [ "LEG_L", 6 ], [ "LEG_R", 6 ] ],
"bash_protec": [ [ "LEG_L", 3 ], [ "LEG_R", 3 ] ],
Expand All @@ -81,7 +81,7 @@
{
"id": "bio_armor_torso",
"type": "bionic",
"name": "Alloy Plating - Torso",
"name": { "str": "Alloy Plating - Torso" },
"description": "The flesh on your torso has been surgically replaced by alloy plating, protecting it from physical trauma.",
"occupied_bodyparts": [ [ "TORSO", 10 ] ],
"bash_protec": [ [ "TORSO", 3 ] ],
Expand All @@ -91,7 +91,7 @@
{
"id": "bio_batteries",
"type": "bionic",
"name": "Battery System",
"name": { "str": "Battery System" },
"description": "You have a battery draining attachment, and thus can make use of the energy contained in normal, everyday batteries. Use 'E' to drain charge from a battery. Can be toggled on and off at will.",
"occupied_bodyparts": [ [ "TORSO", 25 ] ],
"fuel_options": [ "battery" ],
Expand Down Expand Up @@ -212,7 +212,7 @@
{
"id": "bio_claws",
"type": "bionic",
"name": "Bionic Claws",
"name": { "str": "Bionic Claws" },
"description": "Vicious claws have been surgically installed inside your fingers, allowing you to extend and retract them at the cost of a small amount of power. These do considerable cutting damage, but prevent you from holding anything else while extended.",
"occupied_bodyparts": [ [ "HAND_L", 5 ], [ "HAND_R", 5 ] ],
"act_cost": "25 J",
Expand Down Expand Up @@ -277,7 +277,7 @@
{
"id": "bio_deformity",
"type": "bionic",
"name": "Bionic-Induced Deformity",
"name": { "str": "Bionic-Induced Deformity" },
"description": "A combination of poor surgical installation and unpleasant scarring has lead to the malfunctioning bionic catastrophe you call your face. People who mind that you look like a dime-store Frankenstein will react poorly to your appearance.",
"occupied_bodyparts": [ [ "HEAD", 4 ], [ "MOUTH", 1 ] ],
"flags": [ "BIONIC_FAULTY" ]
Expand All @@ -302,7 +302,7 @@
{
"id": "bio_dis_acid",
"type": "bionic",
"name": "Acidic Discharge",
"name": { "str": "Acidic Discharge" },
"description": "A malfunctioning bionic which occasionally discharges acid into your muscles, causing sharp pain and minor damage.",
"occupied_bodyparts": [ [ "TORSO", 3 ], [ "ARM_L", 1 ], [ "ARM_R", 1 ], [ "LEG_L", 2 ], [ "LEG_R", 2 ] ],
"flags": [ "BIONIC_FAULTY" ]
Expand Down Expand Up @@ -374,7 +374,7 @@
{
"id": "bio_evap",
"type": "bionic",
"name": "Aero-Evaporator",
"name": { "str": "Aero-Evaporator" },
"description": "This unit draws moisture from the surrounding air, which slowly trickles directly into your blood stream. It may fail in very dry environments.",
"occupied_bodyparts": [ [ "TORSO", 5 ] ],
"react_cost": "60 J",
Expand Down Expand Up @@ -705,7 +705,7 @@
{
"id": "bio_night",
"type": "bionic",
"name": "Artificial Night Generator",
"name": { "str": "Artificial Night Generator" },
"description": "When active, this bionic eliminates all light within a 2 tile radius through destructive interference.",
"occupied_bodyparts": [ [ "TORSO", 16 ] ],
"flags": [ "BIONIC_TOGGLED" ],
Expand Down Expand Up @@ -735,7 +735,7 @@
{
"id": "bio_nostril",
"type": "bionic",
"name": "Bionic Nostril",
"name": { "str": "Bionic Nostril" },
"description": "You're really not sure how the CBM ended up in your nose, but no matter how it got there this badly misplaced bionic makes it difficult to breathe. Increases mouth encumbrance by ten.",
"occupied_bodyparts": [ [ "HEAD", 2 ], [ "MOUTH", 1 ] ],
"encumbrance": [ [ "MOUTH", 10 ] ],
Expand Down Expand Up @@ -763,7 +763,7 @@
{
"id": "bio_pokedeye",
"type": "bionic",
"name": "Bionic Visual Impairment",
"name": { "str": "Bionic Visual Impairment" },
"description": "Due to a badly misplaced dielectric stylette, you are now suffering from mild optic neuropathy. Increases eye encumbrance by ten.",
"occupied_bodyparts": [ [ "EYES", 1 ] ],
"encumbrance": [ [ "EYES", 10 ] ],
Expand Down Expand Up @@ -827,7 +827,7 @@
{
"id": "bio_purifier",
"type": "bionic",
"name": "Air Filtration System",
"name": { "str": "Air Filtration System" },
"description": "Surgically implanted in your trachea is an advanced filtration system. If toxins, or airborne diseases find their way into your windpipe, the filter will attempt to remove them.",
"occupied_bodyparts": [ [ "TORSO", 4 ], [ "MOUTH", 2 ] ],
"env_protec": [ [ "MOUTH", 7 ] ],
Expand Down Expand Up @@ -913,7 +913,7 @@
{
"id": "bio_shakes",
"type": "bionic",
"name": "Bionic Short Circuit",
"name": { "str": "Bionic Short Circuit" },
"description": "A poorly-wired bionic which fails to serve its intended purpose, this malfunctioning device periodically short-circuits, causing systemic muscle tremors.",
"occupied_bodyparts": [ [ "TORSO", 1 ], [ "ARM_L", 2 ], [ "ARM_R", 2 ], [ "LEG_L", 3 ], [ "LEG_R", 3 ] ],
"flags": [ "BIONIC_FAULTY" ]
Expand Down Expand Up @@ -1008,15 +1008,15 @@
{
"id": "bio_surgical_razor",
"type": "bionic",
"name": "Autonomous Surgical Scalpels",
"name": { "str": "Autonomous Surgical Scalpels" },
"description": "A system of surgical grade scalpels is implanted on your fingers. They allow you to make automated precise cuts and can also be used as a high-quality butchering tool.",
"occupied_bodyparts": [ [ "ARM_R", 1 ], [ "ARM_L", 1 ] ],
"fake_item": "bio_scalpel"
},
{
"id": "bio_sunglasses",
"type": "bionic",
"name": "Anti-Glare Compensators",
"name": { "str": "Anti-Glare Compensators" },
"description": "Your eyes have quick-reacting transition lenses surgically installed over them. They negate glare penalties, partially protect you from bright flashes, and protect your eyes when welding.",
"occupied_bodyparts": [ [ "EYES", 1 ] ],
"included_bionics": [ "bio_blindfold" ],
Expand Down
2 changes: 1 addition & 1 deletion data/json/items/magazine/12mm.json
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
"id": "hk_g80mag",
"looks_like": "stanag30",
"type": "MAGAZINE",
"name": "H&K G80 magazine",
"name": { "str": "H&K G80 magazine" },
"description": "A magazine for H&K G80 railgun which can hold up to 20 ferromagnetic projectiles.",
"weight": "168 g",
"volume": "250 ml",
Expand Down
6 changes: 3 additions & 3 deletions data/json/items/magazine/3006.json
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@
"id": "blrmag",
"looks_like": "stanag30",
"type": "MAGAZINE",
"name": "Browning BLR magazine",
"name": { "str": "Browning BLR magazine" },
"description": "A compact 4-round box magazine for the Browning BLR.",
"weight": "40 g",
"volume": "250 ml",
Expand Down Expand Up @@ -55,7 +55,7 @@
"id": "m1918bigmag",
"looks_like": "stanag30",
"type": "MAGAZINE",
"name": "BAR extended magazine",
"name": { "str": "BAR extended magazine" },
"description": "An aftermarket magazine for use with the Browning Automatic Rifle, holds 30 rounds.",
"weight": "300 g",
"volume": "750 ml",
Expand All @@ -73,7 +73,7 @@
"id": "m1918mag",
"looks_like": "stanag30",
"type": "MAGAZINE",
"name": "BAR magazine",
"name": { "str": "BAR magazine" },
"//": "Compatable magazines made for reproductions exist, and the standard-capacity mags are fairly cheap compared to variants.",
"description": "A standard capacity magazine for use with the Browning Automatic Rifle, holds 20 rounds.",
"weight": "200 g",
Expand Down
Loading

0 comments on commit e3f8a66

Please sign in to comment.