Skip to content

Commit

Permalink
Merge branch 'release' into autoexplore-speed
Browse files Browse the repository at this point in the history
  • Loading branch information
nstoddard authored Nov 26, 2023
2 parents ac24e36 + 33de9a1 commit 7616b53
Show file tree
Hide file tree
Showing 67 changed files with 5,048 additions and 3,384 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,7 @@ jobs:
path: BrogueCE-linux-x86_64.tar.gz

macos:
runs-on: macos-latest
runs-on: macos-11
steps:
- name: "Checkout sources"
uses: actions/checkout@v3
Expand Down
28 changes: 28 additions & 0 deletions .github/workflows/test.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,28 @@
name: "Test"
on:
pull_request:
# Only run on PRs into release
branches:
- 'release'

jobs:

linux-test:
runs-on: ubuntu-20.04
steps:
- name: "Install dependencies"
run: |
sudo apt update -y
sudo apt install -y libsdl2-dev libsdl2-image-dev
- name: "Checkout sources"
uses: actions/checkout@v3

- name: "Compile"
run: |
make bin/brogue
- name: "Run regression tests on merge to release branch"
run: |
python3 test/run_regression_tests.py test/regression_test_v1_13/
python3 test/run_regression_tests.py --extra_args "--variant rapid_brogue" test/regression_test_rapid_v1_5/
45 changes: 45 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,3 +1,48 @@
1.13
====

Thanks to great work by flend and zenzombie, we now have support for multiple
game variants in CE, and have added Rapid Brogue! Select it in *Play > Change
Variant* in the main menu.

Thanks to other contributors andkem, brturn, nathanf, nstoddard, and omar-polo.

-
Rapid Brogue is now part of Brogue CE!
-
Re-designed the main menu.
-
Lumenstones are worth 500 gold on death, instead of 0.
-
The rapier lunge attack works against invisible enemies when you are
telepathic.
-
Levers are now indestructible via shattering and tunneling, which would leave
some vaults impossible to open.
-
Autoexplore no longer walks through dangerous gases when wearing unidentified
respiration armor.
-
Items falling from the previous level will now trigger any traps they land on.
-
Items and monsters falling from the previous level will no longer fall into
reward rooms.
-
Fixed an issue where unidentified rings could have higher bonuses than they
would have once identified.
-
Fixed an issue where unidentified positive rings would be 1 enchant lower than
they should.
-
Update rapier description to use 'triple damage' instead of 'treble damage'.
-
Added a `-vn` command-line option to play a replay headlessly.
-
Fix the default enchantment value being ignored in wizard mode.
-
Fixed the dungeon version number in the seed catalog.


1.12
====

Expand Down
12 changes: 8 additions & 4 deletions Makefile
Original file line number Diff line number Diff line change
@@ -1,12 +1,12 @@
include config.mk

cflags := -Isrc/brogue -Isrc/platform -std=c99 \
cflags := -Isrc/brogue -Isrc/platform -Isrc/variants -std=c99 \
-Wall -Wpedantic -Werror=implicit -Wno-parentheses -Wno-unused-result \
-Wformat -Werror=format-security -Wformat-overflow=0
-Wformat -Werror=format-security -Wformat-overflow=0 -Wmissing-prototypes
libs := -lm
cppflags := -DDATADIR=$(DATADIR)

sources := $(wildcard src/brogue/*.c) $(addprefix src/platform/,main.c platformdependent.c null-platform.c)
sources := $(wildcard src/brogue/*.c) $(wildcard src/variants/*.c) $(addprefix src/platform/,main.c platformdependent.c null-platform.c)
objects :=

ifeq ($(SYSTEM),WINDOWS)
Expand Down Expand Up @@ -50,6 +50,10 @@ sources += $(addprefix src/platform/,web-platform.c)
cppflags += -DBROGUE_WEB
endif

ifeq ($(RAPIDBROGUE),YES)
cppflags += -DRAPID_BROGUE
endif

ifeq ($(MAC_APP),YES)
cppflags += -DSDL_PATHS
endif
Expand All @@ -76,7 +80,7 @@ clean:

escape = $(subst ','\'',$(1))
vars:
mkdir vars
mkdir -p vars
# Write the value to a temporary file and only overwrite if it's different.
vars/%: vars FORCE
@echo '$(call escape,$($*))' > vars/$*.tmp
Expand Down
Binary file modified bin/assets/tiles.bin
Binary file not shown.
Binary file modified bin/assets/tiles.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
1 change: 1 addition & 0 deletions changes/inventory-full-color.md
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
Change the color of the message when you try to pick up an item when your inventory is full, so it stands out more.
2 changes: 0 additions & 2 deletions changes/issue-541.md

This file was deleted.

1 change: 1 addition & 0 deletions changes/names-for-blueprints.md
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
Added names to blueprints which appear when using D_MESSAGE_MACHINE_GENERATION
1 change: 0 additions & 1 deletion changes/vn-non-interactive-playback.md

This file was deleted.

4 changes: 2 additions & 2 deletions macos/Info.plist
Original file line number Diff line number Diff line change
Expand Up @@ -19,9 +19,9 @@
<key>CFBundlePackageType</key>
<string>APPL</string>
<key>CFBundleVersion</key>
<string>1.12.0</string>
<string>1.13.0</string>
<key>CFBundleShortVersionString</key>
<string>1.12.0</string>
<string>1.13.0</string>
<key>CFBundleSignature</key>
<string>????</string>
<key>CFBundleSupportedPlatforms</key>
Expand Down
3 changes: 3 additions & 0 deletions make/brogue.mk
Original file line number Diff line number Diff line change
@@ -1,5 +1,8 @@
bin/brogue$(.exe): $(objects) vars/cflags vars/LDFLAGS vars/libs vars/objects make/brogue.mk
$(CC) $(cflags) $(LDFLAGS) -o $@ $(objects) $(libs)
# on windows, embedding the manifest modifies the executable, preventing debugging
ifeq ($(SYSTEM),WINDOWS)
ifeq ($(DEBUG),NO)
mt -manifest windows/brogue.exe.manifest '-outputresource:bin/brogue.exe;1'
endif
endif
2 changes: 1 addition & 1 deletion make/o.mk
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
$(sources:.c=.o): %.o: %.c src/brogue/Rogue.h src/brogue/IncludeGlobals.h vars/cppflags vars/cflags make/o.mk
$(sources:.c=.o): %.o: %.c src/brogue/Rogue.h src/brogue/Globals.h src/brogue/GlobalsBase.h vars/cppflags vars/cflags make/o.mk
$(CC) $(cppflags) $(cflags) -c $< -o $@
8 changes: 4 additions & 4 deletions make/releases.mk
Original file line number Diff line number Diff line change
Expand Up @@ -10,15 +10,15 @@ define make_release_base
endef

# Flatten bin/ in the Windows archive
BrogueCE-windows: bin/brogue.exe
BrogueCE-windows:
$(make_release_base)
cp -r $(common_bin) bin/{brogue.exe,brogue-cmd.bat} $@

BrogueCE-macos: Brogue.app
BrogueCE-macos:
$(make_release_base)
cp -r Brogue.app $@/"Brogue CE.app"

BrogueCE-linux: bin/brogue
BrogueCE-linux:
$(make_release_base)
cp brogue $@
cp -r --parents $(common_bin) bin/brogue $@
Expand All @@ -42,5 +42,5 @@ Brogue.app: bin/brogue
cp -r macos/Brogue.icns bin/assets $@/Contents/Resources

macos/sdl2.rb:
curl -L 'https://raw.githubusercontent.com/Homebrew/homebrew-core/master/Formula/sdl2.rb' >$@
curl -L 'https://raw.githubusercontent.com/Homebrew/homebrew-core/master/Formula/s/sdl2.rb' >$@
patch $@ macos/sdl2-deployment-target.patch
Loading

0 comments on commit 7616b53

Please sign in to comment.