Merge branch 'general-devel' into fishoutnpc-event
This commit is contained in:
commit
1398b1e079
3 changed files with 47 additions and 42 deletions
74
.github/workflows/build.yml
vendored
74
.github/workflows/build.yml
vendored
|
|
@ -5,68 +5,62 @@ on: [push, pull_request]
|
||||||
jobs:
|
jobs:
|
||||||
build:
|
build:
|
||||||
runs-on: windows-latest
|
runs-on: windows-latest
|
||||||
|
strategy:
|
||||||
|
matrix:
|
||||||
|
mode: ["Debug", "Release"]
|
||||||
steps:
|
steps:
|
||||||
- uses: actions/checkout@v1
|
- name: Git checkout
|
||||||
|
uses: actions/checkout@v1
|
||||||
with:
|
with:
|
||||||
submodules: recursive
|
submodules: recursive
|
||||||
- name: Install nuget
|
- name: Install NuGet client
|
||||||
run: choco install nuget.commandline
|
uses: nuget/setup-nuget@v1
|
||||||
- name: OTAPI Debug
|
- name: Restore NuGet packages
|
||||||
shell: cmd
|
|
||||||
run: |
|
run: |
|
||||||
nuget restore .\TerrariaServerAPI\TShock.4.OTAPI.sln
|
nuget restore .\TerrariaServerAPI\TShock.4.OTAPI.sln
|
||||||
"C:\Program Files (x86)\Microsoft Visual Studio\2019\Enterprise\MSBuild\Current\Bin\msbuild.exe" .\TerrariaServerAPI\TShock.4.OTAPI.sln /p:Configuration=Debug
|
nuget restore TShock.sln
|
||||||
cd .\TerrariaServerAPI\TShock.Modifications.Bootstrapper\bin\Debug
|
- name: Build OTAPI
|
||||||
TShock.Modifications.Bootstrapper.exe
|
|
||||||
- name: OTAPI Release
|
|
||||||
shell: cmd
|
shell: cmd
|
||||||
run: |
|
run: |
|
||||||
nuget restore .\TerrariaServerAPI\TShock.4.OTAPI.sln
|
"C:\Program Files (x86)\Microsoft Visual Studio\2019\Enterprise\MSBuild\Current\Bin\msbuild.exe" .\TerrariaServerAPI\TShock.4.OTAPI.sln /p:Configuration=${{ matrix.mode }}
|
||||||
"C:\Program Files (x86)\Microsoft Visual Studio\2019\Enterprise\MSBuild\Current\Bin\msbuild.exe" .\TerrariaServerAPI\TShock.4.OTAPI.sln /p:Configuration=Release
|
cd .\TerrariaServerAPI\TShock.Modifications.Bootstrapper\bin\${{ matrix.mode }}
|
||||||
cd .\TerrariaServerAPI\TShock.Modifications.Bootstrapper\bin\Release
|
|
||||||
TShock.Modifications.Bootstrapper.exe
|
TShock.Modifications.Bootstrapper.exe
|
||||||
- name: TerrariaServerAPI Debug
|
- name: Build TerrariaServerAPI
|
||||||
shell: cmd
|
shell: cmd
|
||||||
run: |
|
run: |
|
||||||
cd .\TerrariaServerAPI
|
cd .\TerrariaServerAPI
|
||||||
"C:\Program Files (x86)\Microsoft Visual Studio\2019\Enterprise\MSBuild\Current\Bin\msbuild.exe" .\TerrariaServerAPI\TerrariaServerAPI.csproj /p:Configuration=Debug
|
"C:\Program Files (x86)\Microsoft Visual Studio\2019\Enterprise\MSBuild\Current\Bin\msbuild.exe" .\TerrariaServerAPI\TerrariaServerAPI.csproj /p:Configuration=${{ matrix.mode }}
|
||||||
- name: TShock Debug
|
- name: Build TShock
|
||||||
shell: cmd
|
shell: cmd
|
||||||
run: |
|
run: |
|
||||||
nuget restore TShock.sln
|
"C:\Program Files (x86)\Microsoft Visual Studio\2019\Enterprise\MSBuild\Current\Bin\msbuild.exe" .\TShockAPI\TShockAPI.csproj /p:Configuration=${{ matrix.mode }}
|
||||||
"C:\Program Files (x86)\Microsoft Visual Studio\2019\Enterprise\MSBuild\Current\Bin\msbuild.exe" .\TShockAPI\TShockAPI.csproj /p:Configuration=Debug
|
|
||||||
- name: TerrariaServerAPI Release
|
|
||||||
shell: cmd
|
|
||||||
run: |
|
|
||||||
cd .\TerrariaServerAPI
|
|
||||||
"C:\Program Files (x86)\Microsoft Visual Studio\2019\Enterprise\MSBuild\Current\Bin\msbuild.exe" .\TerrariaServerAPI\TerrariaServerAPI.csproj /p:Configuration=Release
|
|
||||||
- name: TShock Release
|
|
||||||
shell: cmd
|
|
||||||
run: |
|
|
||||||
nuget restore TShock.sln
|
|
||||||
"C:\Program Files (x86)\Microsoft Visual Studio\2019\Enterprise\MSBuild\Current\Bin\msbuild.exe" .\TShockAPI\TShockAPI.csproj /p:Configuration=Release
|
|
||||||
- name: Normalize release packaging
|
- name: Normalize release packaging
|
||||||
shell: cmd
|
shell: cmd
|
||||||
run: |
|
run: |
|
||||||
xcopy /Y prebuilts\*.* TShockAPI\bin\Release
|
xcopy /Y prebuilts\*.* TShockAPI\bin\${{ matrix.mode }}
|
||||||
xcopy /Y prebuilts\*.* TShockAPI\bin\Debug
|
mkdir TShockAPI\bin\${{ matrix.mode }}\ServerPlugins
|
||||||
mkdir TShockAPI\bin\Debug\ServerPlugins
|
move TShockAPI\bin\${{ matrix.mode }}\TShockAPI.dll TShockAPI\bin\${{ matrix.mode }}\ServerPlugins
|
||||||
mkdir TShockAPI\bin\Release\ServerPlugins
|
- name: Upload TShock (Debug)
|
||||||
move TShockAPI\bin\Release\TShockAPI.dll TShockAPI\bin\Release\ServerPlugins
|
if: contains(matrix.mode, 'Debug')
|
||||||
move TShockAPI\bin\Debug\TShockAPI.dll TShockAPI\bin\Debug\ServerPlugins
|
uses: actions/upload-artifact@master
|
||||||
- uses: actions/upload-artifact@master
|
|
||||||
with:
|
|
||||||
name: Experimental TShock (not debug)
|
|
||||||
path: TShockAPI\bin\Release
|
|
||||||
- uses: actions/upload-artifact@master
|
|
||||||
with:
|
with:
|
||||||
name: Experimental TShock (debug)
|
name: Experimental TShock (debug)
|
||||||
path: TShockAPI\bin\Debug
|
path: TShockAPI\bin\Debug
|
||||||
- uses: actions/upload-artifact@master
|
- name: Upload OTAPI Bootstrapper (Debug)
|
||||||
|
if: contains(matrix.mode, 'Debug')
|
||||||
|
uses: actions/upload-artifact@master
|
||||||
with:
|
with:
|
||||||
name: Experimental (debug) OTAPI Bootstrapper
|
name: Experimental (debug) OTAPI Bootstrapper
|
||||||
path: .\TerrariaServerAPI\TShock.Modifications.Bootstrapper\bin\Debug\TShock.Modifications.Bootstrapper.exe
|
path: .\TerrariaServerAPI\TShock.Modifications.Bootstrapper\bin\Debug\TShock.Modifications.Bootstrapper.exe
|
||||||
- uses: actions/upload-artifact@master
|
- name: Upload TShock (Not Debug)
|
||||||
|
if: contains(matrix.mode, 'Release')
|
||||||
|
uses: actions/upload-artifact@master
|
||||||
|
with:
|
||||||
|
name: Experimental TShock (not debug)
|
||||||
|
path: TShockAPI\bin\Release
|
||||||
|
- name: Upload OTAPI Bootstrapper (Not Debug)
|
||||||
|
if: contains(matrix.mode, 'Release')
|
||||||
|
uses: actions/upload-artifact@master
|
||||||
with:
|
with:
|
||||||
name: Experimental (not debug) OTAPI Bootstrapper
|
name: Experimental (not debug) OTAPI Bootstrapper
|
||||||
path: .\TerrariaServerAPI\TShock.Modifications.Bootstrapper\bin\Release\TShock.Modifications.Bootstrapper.exe
|
path: .\TerrariaServerAPI\TShock.Modifications.Bootstrapper\bin\Release\TShock.Modifications.Bootstrapper.exe
|
||||||
|
|
|
||||||
|
|
@ -2,7 +2,10 @@
|
||||||
|
|
||||||
This is the rolling changelog for TShock for Terraria. Use past tense when adding new entries; sign your name off when you add or change something. This should primarily be things like user changes, not necessarily codebase changes unless it's really relevant or large.
|
This is the rolling changelog for TShock for Terraria. Use past tense when adding new entries; sign your name off when you add or change something. This should primarily be things like user changes, not necessarily codebase changes unless it's really relevant or large.
|
||||||
|
|
||||||
## Upcoming Release
|
## Upcoming release
|
||||||
|
* Your change goes here!
|
||||||
|
|
||||||
|
## TShock 4.4.0 (Pre-release 9)
|
||||||
* Fixed pet licenses. (@Olink)
|
* Fixed pet licenses. (@Olink)
|
||||||
* Added initial support for Journey mode in SSC worlds. (@Olink)
|
* Added initial support for Journey mode in SSC worlds. (@Olink)
|
||||||
* Made TShock database MySQL 8 compatible by escaping column names in our IQueryBuilder code. (Name `Groups` is a reserved element in this version, which is used in our `Region` table.) (@Patrikkk)
|
* Made TShock database MySQL 8 compatible by escaping column names in our IQueryBuilder code. (Name `Groups` is a reserved element in this version, which is used in our `Region` table.) (@Patrikkk)
|
||||||
|
|
@ -29,6 +32,7 @@ This is the rolling changelog for TShock for Terraria. Use past tense when addin
|
||||||
* To add this command to your guest group, give them `tshock.synclocalarea`, with `/group addperm guest tshock.synclocalarea`.
|
* To add this command to your guest group, give them `tshock.synclocalarea`, with `/group addperm guest tshock.synclocalarea`.
|
||||||
* This command may be removed at any time in the future (and will likely be removed when send tile square handling is fixed).
|
* This command may be removed at any time in the future (and will likely be removed when send tile square handling is fixed).
|
||||||
* Add FishOutNPC event handler, which is called whenever a player fishes out an NPC using a fishing rod. Added antihack to Bouncer, to prevent unathorized and invalid mob spawning, by checking player action, NPC IDs and range. (@Patrikkk, @moisterrific)
|
* Add FishOutNPC event handler, which is called whenever a player fishes out an NPC using a fishing rod. Added antihack to Bouncer, to prevent unathorized and invalid mob spawning, by checking player action, NPC IDs and range. (@Patrikkk, @moisterrific)
|
||||||
|
* Fixed smart door automatic door desync and deletion issue. (@hakusaro)
|
||||||
|
|
||||||
## TShock 4.4.0 (Pre-release 8)
|
## TShock 4.4.0 (Pre-release 8)
|
||||||
* Update for OTAPI 2.0.0.36 and Terraria 1.4.0.4. (@hakusaro, @Patrikkk, @DeathCradle)
|
* Update for OTAPI 2.0.0.36 and Terraria 1.4.0.4. (@hakusaro, @Patrikkk, @DeathCradle)
|
||||||
|
|
|
||||||
|
|
@ -561,6 +561,7 @@ namespace TShockAPI
|
||||||
|
|
||||||
bool changed = false;
|
bool changed = false;
|
||||||
bool failed = false;
|
bool failed = false;
|
||||||
|
bool doorRelated = false;
|
||||||
try
|
try
|
||||||
{
|
{
|
||||||
var tiles = new NetTile[size, size];
|
var tiles = new NetTile[size, size];
|
||||||
|
|
@ -592,6 +593,11 @@ namespace TShockAPI
|
||||||
continue;
|
continue;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
if (newtile.Active && Terraria.ID.TileID.Sets.RoomNeeds.CountsAsDoor.Contains(newtile.Type))
|
||||||
|
{
|
||||||
|
doorRelated = true;
|
||||||
|
}
|
||||||
|
|
||||||
// Fixes the Flower Boots not creating flowers issue
|
// Fixes the Flower Boots not creating flowers issue
|
||||||
if (size == 1 && args.Player.Accessories.Any(i => i.active && i.netID == ItemID.FlowerBoots))
|
if (size == 1 && args.Player.Accessories.Any(i => i.active && i.netID == ItemID.FlowerBoots))
|
||||||
{
|
{
|
||||||
|
|
@ -705,7 +711,8 @@ namespace TShockAPI
|
||||||
}
|
}
|
||||||
else
|
else
|
||||||
{
|
{
|
||||||
args.Player.SendTileSquare(tileX, tileY, size);
|
if (!doorRelated)
|
||||||
|
args.Player.SendTileSquare(tileX, tileY, size);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
catch
|
catch
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue