Skip to content

Commit

Permalink
Merge branch 'merged' of https://github.com/APN-Pucky/tyrant_optimize
Browse files Browse the repository at this point in the history
…into merged
  • Loading branch information
APN-Pucky committed Feb 19, 2018
2 parents 18dd151 + 79a4b5b commit aeefec7
Show file tree
Hide file tree
Showing 5 changed files with 24 additions and 4 deletions.
4 changes: 4 additions & 0 deletions .travis.yml
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,8 @@ matrix:
- TUO_PLATFORM='windowsXX'
- TUO_FILE_32='tuo-x86.exe'
- TUO_FILE_64='tuo.exe'
- TUO_FILE_32_DEBUG='tuo-x86-debug.exe'
- TUO_FILE_64_DEBUG='tuo-debug.exe'
os: linux
dist: trusty
sudo: required
Expand All @@ -28,7 +30,9 @@ deploy:
secure: vKTCOsNwCpSzB2buiNSroCvhAR5xHv86L7YDa09A3Y4oZ/grFmcARQKFkjG/zJif+4gpHmrscUJIC4Ru9900QQSVP/mUh5NizPFpoQHHQBbRPOFoor0W0lSXhsFMA154sHICDQ7ZZhZbF8s804VL+JsmAblFqJ0XWNtLD9f0ElklEIELYdhVGDipXhWnIqA3TfG6ztm9KjMXZ3pfPRMf/l4D0t7ISHfzfX07O257ppH83DAEs1aJElG3kxDJiEWoi6k9fq7SIYXbFhmwj6aM3K//qj9ZxIhFwRLaEb8l2zOXj3hNtDGGg99P5Dz7UeDy7l/+eWOgIMBJLe1Ck9AbIYivnOychYxVn/wp56SbbaT1ZsNbgLQxygqc0/btfi2lrT9c0T6db+A9LSGOWvGk3n1pOPOMNE3wvOk7dhLfbA2azFDMoPswW7Hvad0ZQYkBg1TJK7gmChb5FYQtypZzA0CzJaw+r1z7d4a7mF7cAkZmGuM+/BbdmsX9AxYcazJAvsxgHmLnFSunKsw0B3kQ6l9DJmli7w4qi4kdjHGpxQCQ6ocqHmDMvFa85ejhvPjJDvYdyxltC1d5Jq+jxFL91d+2ZMGYdgptR05I0Dc9ApUcItv7NNbY8fNPWJT7AXAlY999bRt9Rz//JvSHUHstn5cc1s0ee6NGRTmiD5oAkuc=
file:
- "${TUO_FILE_32}"
- "${TUO_FILE_32_DEBUG}"
- "${TUO_FILE_64}"
- "${TUO_FILE_64_DEBUG}"
- "${TUO_FILE_ZIP}"
skip_cleanup: true
on:
Expand Down
2 changes: 1 addition & 1 deletion CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ set( CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -Wall -Werror -Ofast")
set( BUILD_SHARED_LIBRARIES OFF)
set( BOOST_USE_STATIC_LIBS ON )
set( CMAKE_EXE_LINKER_FLAGS "-static")
add_definitions(-DTYRANT_OPTIMIZER_VERSION="${VERSION}" -DNDEBUG -DNQUEST)
add_definitions(-DTYRANT_OPTIMIZER_VERSION="${VERSION}" ${DEBUG} -DNQUEST)

project(tuo)
file(GLOB TUO_SOURCES "*.cpp")
Expand Down
14 changes: 12 additions & 2 deletions build/windows/build.sh
Original file line number Diff line number Diff line change
Expand Up @@ -6,16 +6,26 @@ MXE_DIR=/usr/lib/mxe

MXE_TARGET=i686-w64-mingw32.static

${MXE_DIR}/usr/bin/${MXE_TARGET}-cmake . -Bbuild-dir32-debug -DVERSION:STRING="${TRAVIS_TAG}--debug"
sed -i -e 's/-DNDEBUG//g' build-dir32-debug/CMakeCache.txt
cmake --build build-dir32-debug
mv build-dir32-debug/tuo.exe $TUO_FILE_32_DEBUG

${MXE_DIR}/usr/bin/${MXE_TARGET}-cmake . -Bbuild-dir32 -DVERSION:STRING="${TRAVIS_TAG}"
cmake --build build-dir32

mv build-dir32/tuo.exe $TUO_FILE_32



MXE_TARGET=x86_64-w64-mingw32.static

${MXE_DIR}/usr/bin/${MXE_TARGET}-cmake . -Bbuild-dir64-debug -DVERSION:STRING="${TRAVIS_TAG}--debug"
sed -i -e 's/-DNDEBUG//g' build-dir64-debug/CMakeCache.txt
cmake --build build-dir64-debug
mv build-dir64-debug/tuo.exe $TUO_FILE_64_DEBUG

${MXE_DIR}/usr/bin/${MXE_TARGET}-cmake . -Bbuild-dir64 -DVERSION:STRING="${TRAVIS_TAG}"
cmake --build build-dir64

mv build-dir64/tuo.exe $TUO_FILE_64

set +xue
3 changes: 2 additions & 1 deletion build/windows/package.sh
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,8 @@ export TUO_FILE_ZIP="tuo.${TRAVIS_TAG}_32+64_bit.zip"

#ls -la

zip -r "$TUO_FILE_ZIP" data/ SimpleTUOptimizeStarter.ahk SimpleTUOptimizeStarter.exe "$TUO_FILE_32" "$TUO_FILE_64"
zip -r "$TUO_FILE_ZIP" data/ SimpleTUOptimizeStarter.ahk SimpleTUOptimizeStarter.exe "$TUO_FILE_32" "$TUO_FILE_64" "$TUO_FILE_32_DEBUG" "$TUO_FILE_64_DEBUG"




Expand Down
5 changes: 5 additions & 0 deletions sim.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -1134,6 +1134,11 @@ void turn_start_phase(Field* fd)
{
CardStatus * status = &structures[index];
status->m_index = index;
//refresh absorb
if(status->has_skill(Skill::absorb))
{
status->m_absorption = status->skill_base_value(Skill::absorb);
}
if (status->m_delay > 0)
{
_DEBUG_MSG(1, "%s reduces its timer\n", status_description(status).c_str());
Expand Down

0 comments on commit aeefec7

Please sign in to comment.