Compare commits
31 Commits
Author | SHA1 | Date | |
---|---|---|---|
782d5e2b93
|
|||
ce4a78454d
|
|||
395bda3972
|
|||
a3473a002d
|
|||
48b51324fb
|
|||
0c6328b39d
|
|||
278a0d9278
|
|||
d8c4649f92
|
|||
dd5f7256fc
|
|||
5b1a55973b
|
|||
d3e63ccfcf
|
|||
0e4aa1caa5
|
|||
87378aeb00
|
|||
01fb135385
|
|||
28ba14cb94
|
|||
d001727c2d
|
|||
5694035da3
|
|||
9c3c2e8ea4
|
|||
5f9037251a
|
|||
b62d537f4e
|
|||
02be4b41cc
|
|||
68033424ec
|
|||
13e8f9a8b8
|
|||
ed4ab8f07d
|
|||
547993ad50
|
|||
d270574e26
|
|||
4ab4a8bb38
|
|||
3474cbca99
|
|||
b014280413
|
|||
09d97d4949
|
|||
994a5095ca
|
52
.gitea/workflows/release.yaml
Normal file
52
.gitea/workflows/release.yaml
Normal file
@ -0,0 +1,52 @@
|
|||||||
|
name: "build-release"
|
||||||
|
run-name: "Build and Release MSVB"
|
||||||
|
on:
|
||||||
|
push:
|
||||||
|
tags:
|
||||||
|
- 'v*'
|
||||||
|
|
||||||
|
jobs:
|
||||||
|
release:
|
||||||
|
runs-on: arch-x86
|
||||||
|
container:
|
||||||
|
image: git.jackbondpreston.me/jack/msvb-build:latest
|
||||||
|
steps:
|
||||||
|
- name: Check out
|
||||||
|
uses: actions/checkout@v4
|
||||||
|
with:
|
||||||
|
path: MagicStorageVoidBag
|
||||||
|
- run: ls
|
||||||
|
- run: steamcmd "+login anonymous" "+workshop_download_item 1281930 2563309347" "+quit"
|
||||||
|
- run: wget https://github.com/tModLoader/tModLoader/releases/latest/download/tModLoader.zip
|
||||||
|
- run: unzip -q tModLoader.zip -d tModLoader
|
||||||
|
- run: rm tModLoader.zip
|
||||||
|
- run: ln -sf ${{ gitea.workspace }}/tModLoader/Libraries/Native/Linux/libSDL2-2.0.so.0 ${{ gitea.workspace }}/tModLoader/Libraries/Native/Linux/libSDL2.so
|
||||||
|
- run: >
|
||||||
|
echo "<Project ToolsVersion=\"14.0\" xmlns=\"http://schemas.microsoft.com/developer/msbuild/2003\">
|
||||||
|
<Import Project=\"${{ gitea.workspace }}/tModLoader/tMLMod.targets\" />
|
||||||
|
</Project>" > tModLoader.targets
|
||||||
|
- run: |
|
||||||
|
wget https://github.com/steviegt6/fnb/archive/refs/tags/0.1.0.zip
|
||||||
|
unzip -q 0.1.0.zip -d TMLPatcher
|
||||||
|
dotnet build --configuration=Release TMLPatcher/fnb-0.1.0/src/
|
||||||
|
- run: |
|
||||||
|
rm -f ~/.steam/SteamApps/workshop/content/1281930/2563309347/workshop.json
|
||||||
|
YEAR=$(ls ~/.steam/SteamApps/workshop/content/1281930/2563309347/ | cut -c -4 | sort -nr | head -n 1)
|
||||||
|
VER=$(find ~/.steam/SteamApps/workshop/content/1281930/2563309347/ -type d -name "$YEAR.*" -printf "%f\n" | cut -c 6- | sort -nr | head -n 1)
|
||||||
|
cp ~/.steam/SteamApps/workshop/content/1281930/2563309347/$YEAR.$VER/MagicStorage.tmod ./
|
||||||
|
- run: dotnet TMLPatcher/fnb-0.1.0/src/Tomat.FNB/bin/Release/net8.0/fnb.dll tmod extract MagicStorage.tmod
|
||||||
|
- run: cp MagicStorage/MagicStorage.dll ${{ gitea.workspace }}
|
||||||
|
- run: rm -rf MagicStorageVoidBag/.git
|
||||||
|
- run: dotnet build -c Release MagicStorageVoidBag/MagicStorageVoidBag.sln || true
|
||||||
|
- run: cp MagicStorageVoidBag/bin/Release/net8.0/MagicStorageVoidBag.dll .
|
||||||
|
- run: mkdir release
|
||||||
|
- run: cp ~/.local/share/Terraria/tModLoader/Mods/MagicStorageVoidBag.tmod release/
|
||||||
|
- run: cp MagicStorageVoidBag.dll release/
|
||||||
|
- run: ls release
|
||||||
|
- name: Add Gitea Release
|
||||||
|
id: gitea-release
|
||||||
|
uses: https://gitea.com/actions/release-action@main
|
||||||
|
with:
|
||||||
|
files: |-
|
||||||
|
release/**
|
||||||
|
api_key: '${{secrets.RELEASE_TOKEN}}'
|
30
.github/workflows/tag.yml
vendored
30
.github/workflows/tag.yml
vendored
@ -1,30 +0,0 @@
|
|||||||
name: Create Release
|
|
||||||
|
|
||||||
on:
|
|
||||||
push:
|
|
||||||
tags:
|
|
||||||
- '*'
|
|
||||||
|
|
||||||
jobs:
|
|
||||||
create-release:
|
|
||||||
runs-on: ubuntu-latest
|
|
||||||
|
|
||||||
steps:
|
|
||||||
- name: Checkout
|
|
||||||
uses: actions/checkout@v2
|
|
||||||
|
|
||||||
- name: Create changelog text
|
|
||||||
id: changelog
|
|
||||||
uses: loopwerk/tag-changelog@v1
|
|
||||||
with:
|
|
||||||
token: ${{ secrets.GITHUB_TOKEN }}
|
|
||||||
config_file: .github/workflows/tag_changelog_config.js
|
|
||||||
|
|
||||||
- name: Create release
|
|
||||||
uses: actions/create-release@latest
|
|
||||||
env:
|
|
||||||
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
|
|
||||||
with:
|
|
||||||
tag_name: ${{ github.ref }}
|
|
||||||
release_name: ${{ github.ref }}
|
|
||||||
body: ${{ steps.changelog.outputs.changes }}
|
|
15
.github/workflows/tag_changelog_config.js
vendored
15
.github/workflows/tag_changelog_config.js
vendored
@ -1,15 +0,0 @@
|
|||||||
module.exports = {
|
|
||||||
types: [
|
|
||||||
{ types: ["feat", "feature"], label: "🎉 New Features" },
|
|
||||||
{ types: ["fix", "bugfix"], label: "🐛 Bugfixes" },
|
|
||||||
{ types: ["improvements", "enhancement"], label: "🔨 Improvements" },
|
|
||||||
{ types: ["perf"], label: "🏎️ Performance Improvements" },
|
|
||||||
{ types: ["build", "ci"], label: "🏗️ Build System" },
|
|
||||||
{ types: ["refactor"], label: "🪚 Refactors" },
|
|
||||||
{ types: ["doc", "docs"], label: "📚 Documentation Changes" },
|
|
||||||
{ types: ["test", "tests"], label: "🔍 Tests" },
|
|
||||||
{ types: ["style"], label: "💅 Code Style Changes" },
|
|
||||||
{ types: ["chore"], label: "🧹 Chores" },
|
|
||||||
{ types: ["other"], label: "Other Changes" },
|
|
||||||
],
|
|
||||||
};
|
|
@ -1,4 +1,5 @@
|
|||||||
using MagicStorage;
|
using MagicStorage;
|
||||||
|
using MagicStorage.Common.Systems;
|
||||||
using MagicStorage.Components;
|
using MagicStorage.Components;
|
||||||
using MagicStorageVoidBag.Items;
|
using MagicStorageVoidBag.Items;
|
||||||
using System.Linq;
|
using System.Linq;
|
||||||
@ -12,7 +13,7 @@ using Terraria.ModLoader;
|
|||||||
namespace MagicStorageVoidBag.Hooks {
|
namespace MagicStorageVoidBag.Hooks {
|
||||||
internal class GetItemVoidVaultHook {
|
internal class GetItemVoidVaultHook {
|
||||||
private static readonly log4net.ILog Logger = MagicStorageVoidBag.Instance.Logger;
|
private static readonly log4net.ILog Logger = MagicStorageVoidBag.Instance.Logger;
|
||||||
public static bool Hook(On.Terraria.Player.orig_GetItem_VoidVault orig, Player player, int plr, Item[] inventory, Item newItem, GetItemSettings settings, Item returnItem) {
|
public static bool Hook(Terraria.On_Player.orig_GetItem_VoidVault orig, Player player, int plr, Item[] inventory, Item newItem, GetItemSettings settings, Item returnItem) {
|
||||||
var i = player.inventory.FirstOrDefault(i => i.type == ModContent.ItemType<MSVoidBag>(), null);
|
var i = player.inventory.FirstOrDefault(i => i.type == ModContent.ItemType<MSVoidBag>(), null);
|
||||||
|
|
||||||
newItem = newItem.Clone();
|
newItem = newItem.Clone();
|
||||||
@ -21,19 +22,19 @@ namespace MagicStorageVoidBag.Hooks {
|
|||||||
|
|
||||||
var bag = (MSVoidBag)i.ModItem;
|
var bag = (MSVoidBag)i.ModItem;
|
||||||
|
|
||||||
if (bag.location.X < 0 || bag.location.Y < 0) goto original;
|
if (bag.Location.X < 0 || bag.Location.Y < 0) goto original;
|
||||||
|
|
||||||
Tile tile = Main.tile[bag.location.X, bag.location.Y];
|
Tile tile = Main.tile[bag.Location.X, bag.Location.Y];
|
||||||
|
|
||||||
if (!tile.HasTile || tile.TileType != ModContent.TileType<StorageHeart>() || tile.TileFrameX != 0 || tile.TileFrameY != 0) goto original;
|
if (!tile.HasTile || tile.TileType != ModContent.TileType<StorageHeart>() || tile.TileFrameX != 0 || tile.TileFrameY != 0) goto original;
|
||||||
if (!TileEntity.ByPosition.TryGetValue(bag.location, out TileEntity te)) goto original;
|
if (!TileEntity.ByPosition.TryGetValue(bag.Location, out TileEntity te)) goto original;
|
||||||
if (te.type != ModContent.TileEntityType<TEStorageHeart>()) goto original;
|
if (te.type != ModContent.TileEntityType<TEStorageHeart>()) goto original;
|
||||||
|
|
||||||
TEStorageHeart heart = (TEStorageHeart)te;
|
TEStorageHeart heart = (TEStorageHeart)te;
|
||||||
|
|
||||||
heart.TryDeposit(returnItem);
|
heart.TryDeposit(returnItem);
|
||||||
heart.ResetCompactStage();
|
heart.ResetCompactStage();
|
||||||
StorageGUI.modSearchBox.OnChanged();
|
MagicUI.SetRefresh();
|
||||||
|
|
||||||
if (returnItem.stack != newItem.stack) {
|
if (returnItem.stack != newItem.stack) {
|
||||||
if (newItem.IsACoin) {
|
if (newItem.IsACoin) {
|
||||||
|
@ -16,7 +16,7 @@ namespace MagicStorageVoidBag.Hooks {
|
|||||||
private static readonly log4net.ILog Logger = MagicStorageVoidBag.Instance.Logger;
|
private static readonly log4net.ILog Logger = MagicStorageVoidBag.Instance.Logger;
|
||||||
|
|
||||||
// Despite the constant negative press cofveve
|
// Despite the constant negative press cofveve
|
||||||
public static bool Hook(On.Terraria.Player.orig_ItemSpaceForCofveve orig, Player player, Item newItem) {
|
public static bool Hook(Terraria.On_Player.orig_ItemSpaceForCofveve orig, Player player, Item newItem) {
|
||||||
var i = player.inventory.FirstOrDefault(i => i.type == ModContent.ItemType<MSVoidBag>(), null);
|
var i = player.inventory.FirstOrDefault(i => i.type == ModContent.ItemType<MSVoidBag>(), null);
|
||||||
if (i == null) goto original;
|
if (i == null) goto original;
|
||||||
|
|
||||||
@ -24,12 +24,12 @@ namespace MagicStorageVoidBag.Hooks {
|
|||||||
|
|
||||||
var bag = (MSVoidBag)i.ModItem;
|
var bag = (MSVoidBag)i.ModItem;
|
||||||
|
|
||||||
if (bag.location.X < 0 || bag.location.Y < 0) goto original;
|
if (bag.Location.X < 0 || bag.Location.Y < 0) goto original;
|
||||||
|
|
||||||
Tile tile = Main.tile[bag.location.X, bag.location.Y];
|
Tile tile = Main.tile[bag.Location.X, bag.Location.Y];
|
||||||
|
|
||||||
if (!tile.HasTile || tile.TileType != ModContent.TileType<StorageHeart>() || tile.TileFrameX != 0 || tile.TileFrameY != 0) goto original;
|
if (!tile.HasTile || tile.TileType != ModContent.TileType<StorageHeart>() || tile.TileFrameX != 0 || tile.TileFrameY != 0) goto original;
|
||||||
if (!TileEntity.ByPosition.TryGetValue(bag.location, out TileEntity te)) goto original;
|
if (!TileEntity.ByPosition.TryGetValue(bag.Location, out TileEntity te)) goto original;
|
||||||
if (te.type != ModContent.TileEntityType<TEStorageHeart>()) goto original;
|
if (te.type != ModContent.TileEntityType<TEStorageHeart>()) goto original;
|
||||||
|
|
||||||
if (Utility.HeartHasSpaceFor(newItem, (TEStorageHeart)te)) return true;
|
if (Utility.HeartHasSpaceFor(newItem, (TEStorageHeart)te)) return true;
|
||||||
|
@ -1,33 +0,0 @@
|
|||||||
using MagicStorage.Components;
|
|
||||||
using MagicStorageVoidBag.Items;
|
|
||||||
using Terraria;
|
|
||||||
using Terraria.DataStructures;
|
|
||||||
using Terraria.Localization;
|
|
||||||
using Terraria.ModLoader;
|
|
||||||
|
|
||||||
|
|
||||||
namespace MagicStorageVoidBag.Hooks {
|
|
||||||
internal class StorageHeartRightClickHook {
|
|
||||||
private static readonly log4net.ILog Logger = MagicStorageVoidBag.Instance.Logger;
|
|
||||||
public static bool Hook(On.MagicStorage.Components.StorageHeart.orig_RightClick orig, StorageHeart heart, int i, int j) {
|
|
||||||
// https://github.com/blushiemagic/MagicStorage/blob/1.4-stable/Components/StorageHeart.cs#L23
|
|
||||||
Player player = Main.LocalPlayer;
|
|
||||||
Item item = player.HeldItem;
|
|
||||||
if (item.type == ModContent.ItemType<MSVoidBag>()) {
|
|
||||||
if (Main.tile[i, j].TileFrameX % 36 == 18) i--;
|
|
||||||
if (Main.tile[i, j].TileFrameY % 36 == 18) j--;
|
|
||||||
|
|
||||||
MSVoidBag bag = (MSVoidBag)item.ModItem;
|
|
||||||
bag.location = new Point16(i, j);
|
|
||||||
if (player.selectedItem == 58) {
|
|
||||||
Main.mouseItem = item.Clone();
|
|
||||||
}
|
|
||||||
|
|
||||||
Main.NewText(Language.GetTextValue("Mods.MagicStorage.LocatorSet", i, j));
|
|
||||||
return true;
|
|
||||||
}
|
|
||||||
|
|
||||||
return orig(heart, i, j);
|
|
||||||
}
|
|
||||||
}
|
|
||||||
}
|
|
@ -13,27 +13,35 @@ namespace MagicStorageVoidBag.ILPatches {
|
|||||||
internal class PlayerUpdatePatch : ILPatch {
|
internal class PlayerUpdatePatch : ILPatch {
|
||||||
private static readonly log4net.ILog Logger = MagicStorageVoidBag.Instance.Logger;
|
private static readonly log4net.ILog Logger = MagicStorageVoidBag.Instance.Logger;
|
||||||
public void Patch(ILContext il) {
|
public void Patch(ILContext il) {
|
||||||
if (il == null) {
|
try {
|
||||||
Logger.Error("ILContext null!");
|
if (il == null) {
|
||||||
return;
|
Logger.Error("ILContext null!");
|
||||||
|
return;
|
||||||
|
}
|
||||||
|
|
||||||
|
Logger.Debug("Patching Terraria.Player.Update IL...");
|
||||||
|
|
||||||
|
var c = new ILCursor(il);
|
||||||
|
var setterMethod = typeof(Player).GetProperty(nameof(Player.IsVoidVaultEnabled)).GetSetMethod();
|
||||||
|
if (!c.TryGotoNext(i => i.MatchCallOrCallvirt(setterMethod))) {
|
||||||
|
Logger.Error("Failed to go to next call or callvirt! :(");
|
||||||
|
return;
|
||||||
|
}
|
||||||
|
|
||||||
|
c.Emit(OpCodes.Ldarg_0);
|
||||||
|
c.Emit(OpCodes.Ldc_I4, ModContent.ItemType<MSVoidBag>());
|
||||||
|
var hasItemMethod = typeof(Player).GetMethod(nameof(Player.HasItem), new[] { typeof(int) });
|
||||||
|
if (hasItemMethod == null) {
|
||||||
|
Logger.Error("Failed to reflect Player.HasItem(int)! :(");
|
||||||
|
return;
|
||||||
|
}
|
||||||
|
c.Emit(OpCodes.Call, hasItemMethod);
|
||||||
|
c.Emit(OpCodes.Or);
|
||||||
|
|
||||||
|
Logger.Debug("...Complete!");
|
||||||
|
} catch (Exception e) {
|
||||||
|
throw new ILPatchFailureException(MagicStorageVoidBag.Instance, il, e);
|
||||||
}
|
}
|
||||||
|
|
||||||
Logger.Debug("Patching Terraria.Player.Update IL...");
|
|
||||||
|
|
||||||
var c = new ILCursor(il);
|
|
||||||
var setterMethod = typeof(Player).GetProperty(nameof(Player.IsVoidVaultEnabled)).GetSetMethod();
|
|
||||||
if (!c.TryGotoNext(i => i.MatchCallOrCallvirt(setterMethod))) {
|
|
||||||
Logger.Warn("Failed to go to next call or callvirt! :(");
|
|
||||||
return;
|
|
||||||
}
|
|
||||||
|
|
||||||
c.Emit(OpCodes.Ldarg_0);
|
|
||||||
c.Emit(OpCodes.Ldc_I4, ModContent.ItemType<MSVoidBag>());
|
|
||||||
var hasItemMethod = typeof(Player).GetMethod(nameof(Player.HasItem));
|
|
||||||
c.Emit(OpCodes.Call, hasItemMethod);
|
|
||||||
c.Emit(OpCodes.Or);
|
|
||||||
|
|
||||||
Logger.Debug("...Complete!");
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
@ -27,10 +27,10 @@ namespace MagicStorageVoidBag.Items {
|
|||||||
}
|
}
|
||||||
|
|
||||||
public override void ModifyTooltips(List<TooltipLine> lines) {
|
public override void ModifyTooltips(List<TooltipLine> lines) {
|
||||||
bool isSet = location.X >= 0 && location.Y >= 0;
|
bool isSet = Location.X >= 0 && Location.Y >= 0;
|
||||||
for (int k = 0; k < lines.Count; k++)
|
for (int k = 0; k < lines.Count; k++)
|
||||||
if (isSet && lines[k].Mod == "Terraria" && lines[k].Name == "Tooltip1") {
|
if (isSet && lines[k].Mod == "Terraria" && lines[k].Name == "Tooltip1") {
|
||||||
lines[k].Text = Language.GetTextValue("Mods.MagicStorage.SetTo", location.X, location.Y);
|
lines[k].Text = Language.GetTextValue("Mods.MagicStorage.SetTo", Location.X, Location.Y);
|
||||||
} else if (!isSet && lines[k].Mod == "Terraria" && lines[k].Name == "Tooltip2") {
|
} else if (!isSet && lines[k].Mod == "Terraria" && lines[k].Name == "Tooltip2") {
|
||||||
lines.RemoveAt(k);
|
lines.RemoveAt(k);
|
||||||
k--;
|
k--;
|
||||||
|
21
LICENSE
Normal file
21
LICENSE
Normal file
@ -0,0 +1,21 @@
|
|||||||
|
MIT License
|
||||||
|
|
||||||
|
Copyright (c) 2022 Jack Bond-Preston
|
||||||
|
|
||||||
|
Permission is hereby granted, free of charge, to any person obtaining a copy
|
||||||
|
of this software and associated documentation files (the "Software"), to deal
|
||||||
|
in the Software without restriction, including without limitation the rights
|
||||||
|
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
|
||||||
|
copies of the Software, and to permit persons to whom the Software is
|
||||||
|
furnished to do so, subject to the following conditions:
|
||||||
|
|
||||||
|
The above copyright notice and this permission notice shall be included in all
|
||||||
|
copies or substantial portions of the Software.
|
||||||
|
|
||||||
|
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
|
||||||
|
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
|
||||||
|
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
|
||||||
|
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
|
||||||
|
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
|
||||||
|
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
|
||||||
|
SOFTWARE.
|
@ -1,15 +1,17 @@
|
|||||||
Mods: {
|
Mods: {
|
||||||
MagicStorageVoidBag: {
|
MagicStorageVoidBag: {
|
||||||
ItemName: {
|
ItemName.MSVoidBag: Magic Void Bag
|
||||||
MSVoidBag: Magic Void Bag
|
ItemTooltip.MSVoidBag:
|
||||||
}
|
|
||||||
ItemTooltip: {
|
|
||||||
MSVoidBag:
|
|
||||||
'''
|
'''
|
||||||
<right> Storage Heart to store location
|
<right> Storage Heart to store location
|
||||||
Currently not set to any location
|
Currently not set to any location
|
||||||
'''
|
'''
|
||||||
|
|
||||||
|
Items: {
|
||||||
|
MSVoidBag: {
|
||||||
|
DisplayName: M S Void Bag
|
||||||
|
Tooltip: ""
|
||||||
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
}
|
||||||
}
|
|
||||||
|
@ -10,20 +10,18 @@ namespace MagicStorageVoidBag {
|
|||||||
// IL Patches
|
// IL Patches
|
||||||
private PlayerUpdatePatch playerUpdatePatch = new();
|
private PlayerUpdatePatch playerUpdatePatch = new();
|
||||||
|
|
||||||
public override void Load() {
|
public override void Load() {
|
||||||
IL.Terraria.Player.Update += playerUpdatePatch.Patch;
|
Terraria.IL_Player.Update += playerUpdatePatch.Patch;
|
||||||
|
|
||||||
On.Terraria.Player.GetItem_VoidVault += GetItemVoidVaultHook.Hook;
|
Terraria.On_Player.GetItem_VoidVault += GetItemVoidVaultHook.Hook;
|
||||||
On.Terraria.Player.ItemSpaceForCofveve += ItemSpaceForCofveveHook.Hook;
|
Terraria.On_Player.ItemSpaceForCofveve += ItemSpaceForCofveveHook.Hook;
|
||||||
On.MagicStorage.Components.StorageHeart.RightClick += StorageHeartRightClickHook.Hook;
|
|
||||||
}
|
}
|
||||||
|
|
||||||
public override void Unload() {
|
public override void Unload() {
|
||||||
IL.Terraria.Player.Update -= playerUpdatePatch.Patch;
|
Terraria.IL_Player.Update -= playerUpdatePatch.Patch;
|
||||||
|
|
||||||
On.Terraria.Player.GetItem_VoidVault -= GetItemVoidVaultHook.Hook;
|
Terraria.On_Player.GetItem_VoidVault -= GetItemVoidVaultHook.Hook;
|
||||||
On.Terraria.Player.ItemSpaceForCofveve -= ItemSpaceForCofveveHook.Hook;
|
Terraria.On_Player.ItemSpaceForCofveve -= ItemSpaceForCofveveHook.Hook;
|
||||||
On.MagicStorage.Components.StorageHeart.RightClick -= StorageHeartRightClickHook.Hook;
|
|
||||||
|
|
||||||
base.Unload();
|
base.Unload();
|
||||||
}
|
}
|
||||||
|
@ -1,21 +1,15 @@
|
|||||||
<?xml version="1.0" encoding="utf-8"?>
|
|
||||||
<Project Sdk="Microsoft.NET.Sdk">
|
<Project Sdk="Microsoft.NET.Sdk">
|
||||||
|
<!-- Import tModLoader mod properties -->
|
||||||
<Import Project="../tModLoader.targets" />
|
<Import Project="../tModLoader.targets" />
|
||||||
<PropertyGroup>
|
<PropertyGroup>
|
||||||
<AssemblyName>MagicStorageVoidBag</AssemblyName>
|
<AssemblyName>MagicStorageVoidBag</AssemblyName>
|
||||||
<TargetFramework>net6.0</TargetFramework>
|
|
||||||
<PlatformTarget>AnyCPU</PlatformTarget>
|
|
||||||
<LangVersion>latest</LangVersion>
|
<LangVersion>latest</LangVersion>
|
||||||
</PropertyGroup>
|
</PropertyGroup>
|
||||||
<ItemGroup>
|
<ItemGroup>
|
||||||
<PackageReference Include="tModLoader.CodeAssist" Version="0.1.*" />
|
|
||||||
</ItemGroup>
|
</ItemGroup>
|
||||||
<ItemGroup>
|
<ItemGroup>
|
||||||
<Reference Include="MagicStorage">
|
<Reference Include="MagicStorage">
|
||||||
<HintPath>../Mod Libraries/MagicStorage.dll</HintPath>
|
<HintPath>..\MagicStorage\MagicStorage.dll</HintPath>
|
||||||
</Reference>
|
|
||||||
<Reference Include="MagicStorageHooks">
|
|
||||||
<HintPath>lib\MagicStorageHooks.dll</HintPath>
|
|
||||||
</Reference>
|
</Reference>
|
||||||
</ItemGroup>
|
</ItemGroup>
|
||||||
</Project>
|
</Project>
|
@ -1,16 +1,16 @@
|
|||||||
{
|
{
|
||||||
"profiles": {
|
"profiles": {
|
||||||
"Terraria": {
|
"Terraria": {
|
||||||
"commandName": "Executable",
|
"commandName": "Executable",
|
||||||
"executablePath": "dotnet",
|
"executablePath": "dotnet",
|
||||||
"commandLineArgs": "$(tMLPath)",
|
"commandLineArgs": "$(tMLPath)",
|
||||||
"workingDirectory": "$(tMLSteamPath)"
|
"workingDirectory": "$(tMLSteamPath)"
|
||||||
},
|
},
|
||||||
"TerrariaServer": {
|
"TerrariaServer": {
|
||||||
"commandName": "Executable",
|
"commandName": "Executable",
|
||||||
"executablePath": "dotnet",
|
"executablePath": "dotnet",
|
||||||
"commandLineArgs": "$(tMLServerPath)",
|
"commandLineArgs": "$(tMLServerPath)",
|
||||||
"workingDirectory": "$(tMLSteamPath)"
|
"workingDirectory": "$(tMLSteamPath)"
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
15
build.txt
15
build.txt
@ -1,8 +1,7 @@
|
|||||||
displayName = MagicStorage Void Bag
|
displayName = MagicStorage Void Bag
|
||||||
author = jack
|
author = jack
|
||||||
version = 1.1
|
version = 1.8
|
||||||
modReferences = MagicStorage
|
modReferences = MagicStorage
|
||||||
dllReferences = MagicStorageHooks
|
sortAfter = MagicStorage
|
||||||
sortAfter = MagicStorage
|
includeSource = true
|
||||||
includeSource = true
|
homepage = https://git.jackbondpreston.me/jack/MagicStorageVoidBag
|
||||||
homepage = https://github.com/jackbondpreston/MagicStorageVoidBag
|
|
||||||
|
@ -1,2 +1,4 @@
|
|||||||
Adds an upgraded void bag that combines functionality of the Void Bag and Portable Remote Storage Access, by putting items into a magic storage system when your inventory is full (and allowing remote access as usual).
|
Adds an upgraded void bag that combines functionality of the Void Bag and Portable Remote Storage Access, by putting items into a magic storage system when your inventory is full (and allowing remote access as usual).
|
||||||
This item is crafted by combining a Void Bag with a Portable Remote Storage Access. To link it with your storage system, right click the Storage Heart with the bag equipped.
|
This item is crafted by combining a Void Bag with a Portable Remote Storage Access. To link it with your storage system, right click the Storage Heart with the bag equipped.
|
||||||
|
|
||||||
|
Thanks to the original MagicStorage mod for some code and of course the functionality of the original mod!
|
@ -1,4 +1,7 @@
|
|||||||
Adds an upgraded void bag that combines functionality of the Void Bag and Portable Remote Storage Access, by putting items into a magic storage system when your inventory is full (and allowing remote access as usual).
|
Adds an upgraded void bag that combines functionality of the Void Bag and Portable Remote Storage Access, by putting items into a magic storage system when your inventory is full (and allowing remote access as usual).
|
||||||
This item is crafted by combining a Void Bag with a Portable Remote Storage Access. To link it with your storage system, right click the Storage Heart with the bag equipped.
|
This item is crafted by combining a Void Bag with a Portable Remote Storage Access. To link it with your storage system, right click the Storage Heart with the bag equipped.
|
||||||
|
|
||||||
|
Git: https://git.jackbondpreston.me/jack/MagicStorageVoidBag
|
||||||
|
Discord server if you need support/don't want to report bugs on GitHub: https://discord.gg/Z6V77mbtZQ
|
||||||
|
|
||||||
Thanks to the original MagicStorage mod for some code and of course the functionality of the original mod!
|
Thanks to the original MagicStorage mod for some code and of course the functionality of the original mod!
|
Binary file not shown.
Reference in New Issue
Block a user