Compare commits

...

13 Commits

Author SHA1 Message Date
Kevin Granade 3a1e04656d Merge pull request #64167 from esotericist/less-severe-nyctophobia-backport
Less severe nyctophobia backport from #64141
2023-03-13 19:03:54 -07:00
eso b700ad304b @esotericist remove unused variable. thanks, clang-tidy. 2023-03-11 13:39:15 -08:00
eso c946676bbd greatly reduce the severity of nyctophobia, also removing hallucinations 2023-03-11 02:23:52 -08:00
Kevin Granade 8f9c0c6ae2 Merge pull request #63887 from KorGgenT/default-overmap-tiles
Default overmap tiles
2023-03-02 20:36:01 -08:00
KorGgenT 5a1306aa2a flip overmap tiles to default true
also fixes the keybinding used to a global keybinding for zoom in and zoom out.
2023-03-02 18:35:45 -05:00
Kevin Granade 4ad561b115 Merge pull request #63865 from CleverRaven/kevingranade-whyyy
bump hardcode version in release.yml
2023-03-01 20:23:28 -08:00
Kevin Granade 8156eb3b65 bunp hardcode version in release.yml 2023-03-01 20:15:18 -08:00
Kevin Granade c6acba5914 Merge pull request #63862 from CleverRaven/kevingranade-release-whoopsie
fix release version numbers
2023-03-01 19:26:53 -08:00
Kevin Granade edd9b21003 activate release workflow for emergency branch 2023-03-01 19:23:45 -08:00
Kevin Granade a454a93aff override version for android 2023-03-01 19:08:14 -08:00
Kevin Granade e8e1c7b457 Update fallback version string 2023-03-01 18:46:51 -08:00
Kevin Granade e5537a1002 change version number in Windows exe 2023-03-01 18:29:17 -08:00
Kevin Granade 1f8f2b36d3 hardcode version to 0.G 2023-03-01 18:15:40 -08:00
9 changed files with 34 additions and 75 deletions
+4 -3
View File
@@ -4,6 +4,7 @@ on:
push:
branches:
- master
- 0.G-branch
paths:
- '.github/workflows/release.yml'
- 'android/**'
@@ -282,14 +283,14 @@ jobs:
if: runner.os == 'Linux' && matrix.mxe == 'none' && matrix.android == 'none'
run: |
make -j$((`nproc`+0)) TILES=${{ matrix.tiles }} SOUND=${{ matrix.tiles }} RELEASE=1 LOCALIZE=1 LANGUAGES=all BACKTRACE=0 PCH=0 bindist
mv cataclysmdda-0.F.tar.gz cdda-${{ matrix.artifact }}-${{ needs.release.outputs.timestamp }}.tar.gz
mv cataclysmdda-0.G.tar.gz cdda-${{ matrix.artifact }}-${{ needs.release.outputs.timestamp }}.tar.gz
- name: Build CDDA (windows mxe)
if: matrix.mxe != 'none'
env:
PLATFORM: /opt/mxe/usr/bin/${{ matrix.mxe }}-w64-mingw32.static.gcc11-
run: |
make -j$((`nproc`+0)) CROSS="${PLATFORM}" TILES=1 SOUND=1 RELEASE=1 LOCALIZE=1 LANGUAGES=all BACKTRACE=1 PCH=0 bindist
mv cataclysmdda-0.F.zip cdda-${{ matrix.artifact }}-${{ needs.release.outputs.timestamp }}.zip
mv cataclysmdda-0.G.zip cdda-${{ matrix.artifact }}-${{ needs.release.outputs.timestamp }}.zip
- name: Build CDDA (windows msvc)
if: runner.os == 'Windows'
env:
@@ -297,7 +298,7 @@ jobs:
run: |
msbuild -m -p:Configuration=Release -p:Platform=${{ matrix.arch }} "-target:Cataclysm-vcpkg-static;JsonFormatter-vcpkg-static" msvc-full-features\Cataclysm-vcpkg-static.sln
.\build-scripts\windist.ps1
mv cataclysmdda-0.F.zip cdda-${{ matrix.artifact }}-${{ needs.release.outputs.timestamp }}.zip
mv cataclysmdda-0.G.zip cdda-${{ matrix.artifact }}-${{ needs.release.outputs.timestamp }}.zip
- name: Build CDDA (osx)
if: runner.os == 'macOS'
run: |
+1 -2
View File
@@ -136,7 +136,7 @@ export CCACHE_COMMENTS=1
# Explicitly let 'char' to be 'signed char' to fix #18776
OTHERS += -fsigned-char
VERSION = 0.F
VERSION = 0.G
TARGET_NAME = cataclysm
TILES_TARGET_NAME = $(TARGET_NAME)-tiles
@@ -944,7 +944,6 @@ $(BUILD_PREFIX)$(TARGET_NAME).a: $(OBJS)
.PHONY: version prefix
version:
@( VERSION_STRING=$(VERSION) ; \
[ -e ".git" ] && GITVERSION=$$( git describe --tags --always --match "[0-9A-Z]*.[0-9A-Z]*" ) && DIRTYFLAG=$$( [ -z "$$(git diff --numstat | grep -v lang/po/)" ] || echo "-dirty") && VERSION_STRING=$$GITVERSION$$DIRTYFLAG ; \
[ -e "$(SRC_DIR)/version.h" ] && OLDVERSION=$$(grep VERSION $(SRC_DIR)/version.h|cut -d '"' -f2) ; \
if [ "x$$VERSION_STRING" != "x$$OLDVERSION" ]; then printf '// NOLINT(cata-header-guard)\n#define VERSION "%s"\n' "$$VERSION_STRING" | tee $(SRC_DIR)/version.h ; fi \
)
+1 -1
View File
@@ -46,7 +46,7 @@ deps=./deps.zip
# This property controls which override version number to use
# You can override this from the command line by passing "-Poverride_version=#"
override_version=
override_version=0.G
# This property controls path where overridden version number header should be generated
# You can override this from the command line by passing "-Pversion_header_path=#"
+1 -1
View File
@@ -13,4 +13,4 @@ $extras = "data", "doc", "gfx", "LICENSE.txt", "LICENSE-OFL-Terminus-Font.txt",
ForEach ($extra in $extras) {
cp -r $extra bindist
}
Compress-Archive -Force -Path bindist/* -DestinationPath "cataclysmdda-0.F.zip"
Compress-Archive -Force -Path bindist/* -DestinationPath "cataclysmdda-0.G.zip"
-14
View File
@@ -1015,20 +1015,6 @@
{ "input_method": "mouse", "key": "MOUSE_RIGHT" }
]
},
{
"type": "keybinding",
"id": "ZOOM_OUT",
"category": "OVERMAP",
"name": "Zoom out",
"bindings": [ { "input_method": "keyboard_char", "key": "Z" }, { "input_method": "keyboard_code", "key": "z", "mod": [ "shift" ] } ]
},
{
"type": "keybinding",
"id": "ZOOM_IN",
"category": "OVERMAP",
"name": "Zoom in",
"bindings": [ { "input_method": "keyboard_any", "key": "z" } ]
},
{
"type": "keybinding",
"id": "DELETE_NOTE",
+6 -6
View File
@@ -2167,12 +2167,12 @@ void options_manager::add_options_graphics()
get_option( "DISTANT_TILES" ).setPrerequisite( "USE_DISTANT_TILES" );
get_option( "SWAP_ZOOM" ).setPrerequisite( "USE_DISTANT_TILES" );
add( "USE_TILES_OVERMAP", "graphics", to_translation( "Use tiles to display overmap" ),
add( "USE_OVERMAP_TILES", "graphics", to_translation( "Use tiles to display overmap" ),
to_translation( "If true, replaces some TTF-rendered text with tiles for overmap display." ),
false, COPT_CURSES_HIDE
true, COPT_CURSES_HIDE
);
get_option( "USE_TILES_OVERMAP" ).setPrerequisite( "USE_TILES" );
get_option( "USE_OVERMAP_TILES" ).setPrerequisite( "USE_TILES" );
std::vector<options_manager::id_and_option> om_tilesets = build_tilesets_list();
// filter out iso tilesets from overmap tilesets
@@ -2185,10 +2185,10 @@ void options_manager::add_options_graphics()
add( "OVERMAP_TILES", "graphics", to_translation( "Choose overmap tileset" ),
to_translation( "Choose the overmap tileset you want to use." ),
om_tilesets, "retrodays", COPT_CURSES_HIDE
om_tilesets, "Larwick Overmap", COPT_CURSES_HIDE
); // populate the options dynamically
get_option( "OVERMAP_TILES" ).setPrerequisite( "USE_TILES_OVERMAP" );
get_option( "OVERMAP_TILES" ).setPrerequisite( "USE_OVERMAP_TILES" );
add_empty_line();
@@ -3638,7 +3638,7 @@ static void update_options_cache()
// if the tilesets are identical don't duplicate
use_far_tiles = ::get_option<bool>( "USE_DISTANT_TILES" ) ||
get_option<std::string>( "TILES" ) == get_option<std::string>( "DISTANT_TILES" );
use_tiles_overmap = ::get_option<bool>( "USE_TILES_OVERMAP" );
use_tiles_overmap = ::get_option<bool>( "USE_OVERMAP_TILES" );
log_from_top = ::get_option<std::string>( "LOG_FLOW" ) == "new_top";
message_ttl = ::get_option<int>( "MESSAGE_TTL" );
message_cooldown = ::get_option<int>( "MESSAGE_COOLDOWN" );
+4 -4
View File
@@ -1742,8 +1742,8 @@ static tripoint_abs_omt display( const tripoint_abs_omt &orig,
ictxt.register_action( "CONFIRM" );
ictxt.register_action( "LEVEL_UP" );
ictxt.register_action( "LEVEL_DOWN" );
ictxt.register_action( "ZOOM_OUT" );
ictxt.register_action( "ZOOM_IN" );
ictxt.register_action( "zoom_in" );
ictxt.register_action( "zoom_out" );
ictxt.register_action( "HELP_KEYBINDINGS" );
ictxt.register_action( "MOUSE_MOVE" );
ictxt.register_action( "SELECT" );
@@ -1818,10 +1818,10 @@ static tripoint_abs_omt display( const tripoint_abs_omt &orig,
curs.z() -= 1;
} else if( action == "LEVEL_UP" && curs.z() < OVERMAP_HEIGHT ) {
curs.z() += 1;
} else if( action == "ZOOM_OUT" ) {
} else if( action == "zoom_out" ) {
g->zoom_out_overmap();
ui.mark_resize();
} else if( action == "ZOOM_IN" ) {
} else if( action == "zoom_in" ) {
g->zoom_in_overmap();
ui.mark_resize();
} else if( action == "CONFIRM" ) {
+16 -43
View File
@@ -85,7 +85,6 @@ static const efftype_id effect_deaf( "deaf" );
static const efftype_id effect_disabled( "disabled" );
static const efftype_id effect_downed( "downed" );
static const efftype_id effect_drunk( "drunk" );
static const efftype_id effect_fearparalyze( "fearparalyze" );
static const efftype_id effect_formication( "formication" );
static const efftype_id effect_grabbed( "grabbed" );
static const efftype_id effect_hallu( "hallu" );
@@ -1692,56 +1691,30 @@ void suffer::from_pain( Character &you )
void suffer::from_nyctophobia( Character &you )
{
std::vector<tripoint> dark_places;
const float nyctophobia_threshold = LIGHT_AMBIENT_LIT - 3.0f;
for( const tripoint &dark_place : points_in_radius( you.pos(), 5 ) ) {
if( !you.sees( dark_place ) || get_map().ambient_light_at( dark_place ) >= nyctophobia_threshold ) {
continue;
}
dark_places.push_back( dark_place );
}
const bool in_darkness = get_map().ambient_light_at( you.pos() ) < nyctophobia_threshold;
const int chance = in_darkness ? 10 : 50;
if( you.is_avatar() && !dark_places.empty() && one_in( chance ) ) {
g->spawn_hallucination( random_entry( dark_places ) );
}
if( in_darkness ) {
if( one_in( 80 ) && !you.has_effect( effect_shakes ) ) {
you.add_msg_if_player( m_bad,
_( "Your fear of the dark is so intense that your hands start shaking uncontrollably." ) );
you.add_effect( effect_shakes, rng( 1_minutes, 3_minutes ) );
return;
}
if( one_in( 80 ) ) {
you.add_msg_if_player( m_bad,
_( "Your fear of the dark is so intense that you start breathing rapidly, and you feel like your heart is ready to jump out of your chest." ) );
you.mod_stamina( -500 * rng( 1, 3 ) );
return;
}
if( one_turn_in( 5_minutes ) ) {
you.add_msg_if_player( m_bad, _( "You feel a twinge of panic as darkness engulfs you." ) );
}
if( one_in( 2 ) && one_turn_in( 30_seconds ) ) {
you.sound_hallu();
}
if( one_in( 50 ) && !you.is_on_ground() ) {
you.add_msg_if_player( m_bad,
_( "Your fear of the dark is so intense that your trembling legs fail you, and you fall to the ground." ) );
you.add_effect( effect_downed, rng( 1_minutes, 2_minutes ) );
}
if( one_in( 50 ) && !you.has_effect( effect_shakes ) ) {
you.add_msg_if_player( m_bad,
_( "Your fear of the dark is so intense that your hands start shaking uncontrollably." ) );
you.add_effect( effect_shakes, rng( 1_minutes, 2_minutes ) );
}
if( one_in( 50 ) ) {
you.add_msg_if_player( m_bad,
_( "Your fear of the dark is so intense that you start breathing rapidly, and you feel like your heart is ready to jump out of your chest." ) );
you.mod_stamina( -500 * rng( 1, 3 ) );
}
if( one_in( 50 ) && !you.has_effect( effect_fearparalyze ) ) {
you.add_msg_if_player( m_bad,
_( "Your fear of the dark is so intense that you stand paralyzed." ) );
you.add_effect( effect_fearparalyze, 5_turns );
you.mod_moves( -4 * you.get_speed() );
}
}
}
+1 -1
View File
@@ -3,7 +3,7 @@
#if (defined(_WIN32) || defined(MINGW)) && !defined(GIT_VERSION) && !defined(CROSS_LINUX) && !defined(_MSC_VER)
#ifndef VERSION
#define VERSION "0.F"
#define VERSION "0.G"
#endif
#else