Skip to content

Commit

Permalink
Merge pull request #6 from CleverRaven/master
Browse files Browse the repository at this point in the history
Catch up to main
  • Loading branch information
Maleclypse authored Nov 24, 2019
2 parents 004a0a2 + 1a06c34 commit f439157
Show file tree
Hide file tree
Showing 414 changed files with 102,218 additions and 49,221 deletions.
2 changes: 2 additions & 0 deletions .github/CONTRIBUTING.md
Original file line number Diff line number Diff line change
Expand Up @@ -149,6 +149,8 @@ If you are also looking for suggestions then mark it with [CR] — "comments req

This can help speed up our review process by allowing us to only review the things that are ready for it, and will prevent anything that isn't completely ready from being merged in.

It is not required to solve or reference an open issue to file a PR, however, if you do so, you need to explain the problem your PR is solving in full detail.

### All PRs should have a "Summary" line
Summary is a one-line description of your change that will be extracted and added to the project changelog at https://github.com/CleverRaven/Cataclysm-DDA/blob/master/data/changelog.txt

Expand Down
6 changes: 3 additions & 3 deletions android/app/build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -94,7 +94,7 @@ unzipDeps.dependsOn makeLocalization
preBuild.dependsOn unzipDeps

android {
compileSdkVersion 28
compileSdkVersion 26

if (override_version.isEmpty()) {
println("Generating version number to $version_header_path")
Expand Down Expand Up @@ -127,8 +127,8 @@ android {
}

defaultConfig {
minSdkVersion 16
targetSdkVersion 28
minSdkVersion 14
targetSdkVersion 26
versionCode Integer.valueOf(System.env.UPSTREAM_BUILD_NUMBER ?: 1)
versionName new File("$version_header_path").text.split('\"')[1]
if (buildAsApplication) {
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" };
public boolean[] mSettingsValues = { true };
public CharSequence[] mSettingsNames = { "Software rendering", "Force fullscreen" };
public boolean[] mSettingsValues = { false, false};

private String getVersionName() {
try {
Expand Down
9 changes: 6 additions & 3 deletions android/app/src/main/java/org/libsdl/app/SDLActivity.java
Original file line number Diff line number Diff line change
Expand Up @@ -21,6 +21,7 @@
import android.widget.LinearLayout;
import android.widget.TextView;
import android.os.*;
import android.preference.PreferenceManager;
import android.util.DisplayMetrics;
import android.util.Log;
import android.util.SparseArray;
Expand Down Expand Up @@ -631,9 +632,11 @@ public void handleMessage(Message msg) {
} else {
int flags = View.SYSTEM_UI_FLAG_LAYOUT_STABLE | View.SYSTEM_UI_FLAG_VISIBLE;
window.getDecorView().setSystemUiVisibility(flags);
window.addFlags(WindowManager.LayoutParams.FLAG_FULLSCREEN);
window.clearFlags(WindowManager.LayoutParams.FLAG_FORCE_NOT_FULLSCREEN);
SDLActivity.mFullscreenModeActive = true;
Context appContext = context.getApplicationContext();
boolean forceFullScreen = PreferenceManager.getDefaultSharedPreferences(appContext).getBoolean("Force fullscreen", false);
window.addFlags(forceFullScreen ? WindowManager.LayoutParams.FLAG_FULLSCREEN : WindowManager.LayoutParams.FLAG_FORCE_NOT_FULLSCREEN);
window.clearFlags(forceFullScreen ? WindowManager.LayoutParams.FLAG_FORCE_NOT_FULLSCREEN : WindowManager.LayoutParams.FLAG_FULLSCREEN);
SDLActivity.mFullscreenModeActive = forceFullScreen;
}
}
} else {
Expand Down
5 changes: 3 additions & 2 deletions build-scripts/build.sh
Original file line number Diff line number Diff line change
Expand Up @@ -2,13 +2,14 @@

# Build script intended for use in Travis CI

set -ex
set -ex pipefail

num_jobs=3

function run_tests
{
$WINE "$@" -d yes --rng-seed time $EXTRA_TEST_OPTS
# The grep supresses lines that begin with "0.0## s:", which are timing lines for tests with a very short duration.
$WINE "$@" -d yes --use-colour yes --rng-seed time $EXTRA_TEST_OPTS | grep -Ev "^0\.0[0-9]{2} s:"
}

date +%s > build-start-time
Expand Down
6 changes: 3 additions & 3 deletions data/core/tips.json
Original file line number Diff line number Diff line change
Expand Up @@ -122,7 +122,7 @@
{
"type": "snippet",
"category": "tip",
"text": [ "Rotten food typically attracts bugs, and bugs got a lot bigger recently..." ]
"text": [ "Rotten food typically attracts bugs, and bugs got a lot bigger recently" ]
},
{
"type": "snippet",
Expand Down Expand Up @@ -222,7 +222,7 @@
{
"type": "snippet",
"category": "tip",
"text": [ "Routine kills. Stay alert! Don't let your guard down." ]
"text": [ "Routine kills. Stay alert! Don't let your guard down." ]
},
{
"type": "snippet",
Expand Down Expand Up @@ -312,7 +312,7 @@
{
"type": "snippet",
"category": "tip",
"text": [ "A survivor saved is a friend earned. Most of the time..." ]
"text": [ "A survivor saved is a friend earned. Most of the time" ]
},
{
"type": "snippet",
Expand Down
20 changes: 8 additions & 12 deletions data/json/bionics.json
Original file line number Diff line number Diff line change
Expand Up @@ -59,7 +59,7 @@
"type": "bionic",
"name": "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 ] ],
"occupied_bodyparts": [ [ "HEAD", 5 ], [ "MOUTH", 1 ] ],
"flags": [ "BIONIC_NPC_USABLE", "BIONIC_SHOCKPROOF" ]
},
{
Expand Down Expand Up @@ -325,9 +325,14 @@
"id": "bio_ethanol",
"type": "bionic",
"name": "Ethanol Burner",
"description": "You burn alcohol as fuel in an extremely efficient reaction. However, you will still suffer the inebriating effects of the substance.",
"description": "You burn alcohol as fuel in an extremely efficient reaction.",
"occupied_bodyparts": [ [ "TORSO", 26 ] ],
"flags": [ "BIONIC_POWER_SOURCE", "BIONIC_NPC_USABLE", "BIONIC_SHOCKPROOF" ]
"fuel_options": [ "chem_ethanol", "chem_methanol", "denat_alcohol" ],
"fuel_capacity": 500,
"fuel_efficiency": 0.5,
"exothermic_power_gen": true,
"time": 1,
"flags": [ "BIONIC_POWER_SOURCE", "BIONIC_NPC_USABLE", "BIONIC_SHOCKPROOF", "BIONIC_TOGGLED" ]
},
{
"id": "bio_evap",
Expand Down Expand Up @@ -878,15 +883,6 @@
"occupied_bodyparts": [ [ "HEAD", 2 ] ],
"flags": [ "BIONIC_FAULTY" ]
},
{
"id": "bio_solar",
"type": "bionic",
"name": "Solar Panels",
"description": "You have a few solar panels surgically installed. While in direct sunlight, your power level will slowly recharge.",
"occupied_bodyparts": [ [ "TORSO", 20 ] ],
"flags": [ "BIONIC_POWER_SOURCE", "BIONIC_NPC_USABLE" ],
"//": "Should be removed after 0.D."
},
{
"id": "bio_spasm",
"type": "bionic",
Expand Down
36 changes: 24 additions & 12 deletions data/json/body_parts.json
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,8 @@
"hit_size_relative": [ 20, 33.33, 36.57 ],
"hit_difficulty": 1,
"side": "both",
"legacy_id": "TORSO"
"legacy_id": "TORSO",
"bionic_slots": 80
},
{
"id": "head",
Expand All @@ -29,7 +30,8 @@
"hit_size_relative": [ 0, 2.33, 5.71 ],
"hit_difficulty": 1.35,
"side": "both",
"legacy_id": "HEAD"
"legacy_id": "HEAD",
"bionic_slots": 18
},
{
"id": "eyes",
Expand All @@ -44,7 +46,8 @@
"hit_size_relative": [ 0, 0.33, 0.57 ],
"hit_difficulty": 1.15,
"side": "both",
"legacy_id": "EYES"
"legacy_id": "EYES",
"bionic_slots": 4
},
{
"id": "mouth",
Expand All @@ -59,7 +62,8 @@
"hit_size_relative": [ 0, 0, 0 ],
"hit_difficulty": 1.15,
"side": "both",
"legacy_id": "MOUTH"
"legacy_id": "MOUTH",
"bionic_slots": 4
},
{
"id": "arm_l",
Expand All @@ -76,7 +80,8 @@
"hit_size_relative": [ 15, 20, 22.86 ],
"hit_difficulty": 0.95,
"side": "left",
"legacy_id": "ARM_L"
"legacy_id": "ARM_L",
"bionic_slots": 20
},
{
"id": "arm_r",
Expand All @@ -93,7 +98,8 @@
"hit_size_relative": [ 15, 20, 22.86 ],
"hit_difficulty": 0.95,
"side": "right",
"legacy_id": "ARM_R"
"legacy_id": "ARM_R",
"bionic_slots": 20
},
{
"id": "hand_l",
Expand All @@ -109,7 +115,8 @@
"hit_size_relative": [ 0, 0, 0 ],
"hit_difficulty": 1.1,
"side": "left",
"legacy_id": "HAND_L"
"legacy_id": "HAND_L",
"bionic_slots": 5
},
{
"id": "hand_r",
Expand All @@ -125,7 +132,8 @@
"hit_size_relative": [ 0, 0, 0 ],
"hit_difficulty": 1.1,
"side": "right",
"legacy_id": "HAND_R"
"legacy_id": "HAND_R",
"bionic_slots": 5
},
{
"id": "leg_l",
Expand All @@ -142,7 +150,8 @@
"hit_size_relative": [ 25, 12, 5.71 ],
"hit_difficulty": 0.975,
"side": "left",
"legacy_id": "LEG_L"
"legacy_id": "LEG_L",
"bionic_slots": 30
},
{
"id": "leg_r",
Expand All @@ -159,7 +168,8 @@
"hit_size_relative": [ 25, 12, 5.71 ],
"hit_difficulty": 0.975,
"side": "right",
"legacy_id": "LEG_R"
"legacy_id": "LEG_R",
"bionic_slots": 30
},
{
"id": "foot_l",
Expand All @@ -175,7 +185,8 @@
"hit_size_relative": [ 0, 0, 0 ],
"hit_difficulty": 0.8,
"side": "left",
"legacy_id": "FOOT_L"
"legacy_id": "FOOT_L",
"bionic_slots": 7
},
{
"id": "foot_r",
Expand All @@ -191,7 +202,8 @@
"hit_size_relative": [ 0, 0, 0 ],
"hit_difficulty": 0.8,
"side": "right",
"legacy_id": "FOOT_R"
"legacy_id": "FOOT_R",
"bionic_slots": 7
},
{
"id": "num_bp",
Expand Down
14 changes: 14 additions & 0 deletions data/json/clothing_mods.json
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,20 @@
{ "type": "encumbrance", "value": 2, "round_up": true, "proportion": [ "thickness", "coverage" ] }
]
},
{
"type": "clothing_mod",
"id": "steel_padded",
"flag": "steel_padded",
"item": "steel_armor",
"implement_prompt": "Pad with steel",
"destroy_prompt": "Destroy steel padding",
"restricted": true,
"mod_value": [
{ "type": "bash", "value": 1, "proportion": [ "thickness", "coverage" ] },
{ "type": "cut", "value": 1, "proportion": [ "thickness", "coverage" ] },
{ "type": "encumbrance", "value": 2, "round_up": true, "proportion": [ "thickness", "coverage" ] }
]
},
{
"type": "clothing_mod",
"id": "kevlar_padded",
Expand Down
8 changes: 4 additions & 4 deletions data/json/construction.json
Original file line number Diff line number Diff line change
Expand Up @@ -2235,7 +2235,7 @@
[ { "id": "HAMMER", "level": 2 } ],
[ { "id": "DIG", "level": 2 } ]
],
"tools": [ [ [ "pickaxe", -1 ], [ "jackhammer", 30 ], [ "elec_jackhammer", 30 ] ] ],
"tools": [ [ [ "pickaxe", -1 ], [ "jackhammer", 140 ], [ "elec_jackhammer", 7000 ] ] ],
"components": [ [ [ "2x4", 8 ], [ "log", 8 ] ], [ [ "rope_makeshift_30", 1 ], [ "rope_30", 1 ], [ "vine_30", 1 ] ] ],
"pre_flags": "DIGGABLE",
"post_special": "done_dig_stair"
Expand All @@ -2251,7 +2251,7 @@
[ { "id": "HAMMER", "level": 2 } ],
[ { "id": "DIG", "level": 2 } ]
],
"tools": [ [ [ "pickaxe", -1 ], [ "jackhammer", 30 ], [ "elec_jackhammer", 30 ] ] ],
"tools": [ [ [ "pickaxe", -1 ], [ "jackhammer", 160 ], [ "elec_jackhammer", 8000 ] ] ],
"components": [ [ [ "2x4", 12 ], [ "log", 12 ] ], [ [ "rope_makeshift_30", 1 ], [ "rope_30", 1 ], [ "vine_30", 1 ] ] ],
"pre_special": "check_down_OK",
"pre_terrain": "t_rock_floor",
Expand Down Expand Up @@ -2307,7 +2307,7 @@
[ { "id": "DIG", "level": 2 } ]
],
"tools": [
[ [ "pickaxe", -1 ], [ "jackhammer", 30 ], [ "elec_jackhammer", 30 ] ],
[ [ "pickaxe", -1 ], [ "jackhammer", 160 ], [ "elec_jackhammer", 8000 ] ],
[
"miner_hat",
"hat_hard",
Expand Down Expand Up @@ -3190,7 +3190,7 @@
"components": [
[ [ "processor", 2 ] ],
[ [ "RAM", 2 ] ],
[ [ "small_lcd_screen", 1 ] ],
[ [ "large_lcd_screen", 1 ] ],
[ [ "e_scrap", 8 ] ],
[ [ "frame", 1 ] ],
[ [ "circuit", 4 ] ],
Expand Down
16 changes: 8 additions & 8 deletions data/json/effects.json
Original file line number Diff line number Diff line change
Expand Up @@ -734,15 +734,15 @@
"str_mod": [ -1 ],
"dex_mod": [ -1 ],
"vomit_chance": [ 1000, 1200 ],
"sleep_min": [ 60, 30 ],
"sleep_chance": [ -102 ]
"fatigue_min": [ 360, 180 ],
"fatigue_chance": [ -102 ]
},
"scaling_mods": {
"pain_max_val": [ 30, 20 ],
"str_mod": [ -1, -0.5 ],
"dex_mod": [ -1, -0.5 ],
"vomit_chance": [ -400 ],
"sleep_chance": [ 101 ]
"fatigue_chance": [ 101 ]
}
},
{
Expand All @@ -760,10 +760,10 @@
"str_mod": [ -1 ],
"dex_mod": [ -1 ],
"vomit_chance": [ 1000 ],
"sleep_min": [ 60 ],
"sleep_chance": [ -102 ]
"fatigue_min": [ 360 ],
"fatigue_chance": [ -102 ]
},
"scaling_mods": { "pain_max_val": [ 30 ], "str_mod": [ -1 ], "dex_mod": [ -1 ], "vomit_chance": [ -400 ], "sleep_chance": [ 101 ] }
"scaling_mods": { "pain_max_val": [ 30 ], "str_mod": [ -1 ], "dex_mod": [ -1 ], "vomit_chance": [ -400 ], "fatigue_chance": [ 101 ] }
},
{
"type": "effect_type",
Expand Down Expand Up @@ -1271,8 +1271,8 @@
"base_mods": {
"vomit_chance": [ -43 ],
"sleep_chance": [ -1003 ],
"sleep_min": [ 2500 ],
"sleep_max": [ 3500 ],
"sleep_min": [ 15000 ],
"sleep_max": [ 21000 ],
"pkill_amount": [ 3 ],
"pkill_max_val": [ 3 ],
"pkill_min": [ 1 ],
Expand Down
Loading

0 comments on commit f439157

Please sign in to comment.