SoulTicket internal implementation (#1372)
* Fix the Blood Tank BB * Add modid to command localizations to prevent conflicts * Fixed the items not being drawn on the right Y-level for the Sigil of Holding HUD Corrected localizations of other lang files * SoulTicket internal implementation * do what TehNut says * implement hashCode() * Fix toggleable sigils draining on r-click when it shouldn't Also moved the ItemSigil and ItemSigilToggleable to the sigil package (why wasn't it there???)
This commit is contained in:
parent
093cfb13ef
commit
b441e7fc1e
56 changed files with 210 additions and 147 deletions
|
@ -1,6 +1,7 @@
|
|||
package WayofTime.bloodmagic.command.sub;
|
||||
|
||||
import WayofTime.bloodmagic.core.data.SoulNetwork;
|
||||
import WayofTime.bloodmagic.core.data.SoulTicket;
|
||||
import WayofTime.bloodmagic.util.helper.NetworkHelper;
|
||||
import WayofTime.bloodmagic.command.CommandBloodMagic;
|
||||
import WayofTime.bloodmagic.util.Utils;
|
||||
|
@ -66,7 +67,7 @@ public class SubCommandNetwork extends CommandBase {
|
|||
if (args.length == 3) {
|
||||
if (Utils.isInteger(args[2])) {
|
||||
int amount = Integer.parseInt(args[2]);
|
||||
NetworkHelper.getSoulNetwork(player).syphonAndDamage(player, amount);
|
||||
NetworkHelper.getSoulNetwork(player).syphonAndDamage(player, SoulTicket.command(sender, "syphon", amount));
|
||||
CommandBloodMagic.displaySuccessString(sender, "commands.bloodmagic.network.syphon.success", amount, player.getDisplayName().getFormattedText());
|
||||
} else {
|
||||
CommandBloodMagic.displayErrorString(sender, "commands.bloodmagic.error.arg.invalid");
|
||||
|
@ -90,7 +91,7 @@ public class SubCommandNetwork extends CommandBase {
|
|||
if (Utils.isInteger(args[2])) {
|
||||
int amount = Integer.parseInt(args[2]);
|
||||
int maxOrb = NetworkHelper.getMaximumForTier(network.getOrbTier());
|
||||
CommandBloodMagic.displaySuccessString(sender, "commands.bloodmagic.network.add.success", network.add(amount, maxOrb), player.getDisplayName().getFormattedText());
|
||||
CommandBloodMagic.displaySuccessString(sender, "commands.bloodmagic.network.add.success", network.add(SoulTicket.command(sender, "add", amount), maxOrb), player.getDisplayName().getFormattedText());
|
||||
} else {
|
||||
CommandBloodMagic.displayErrorString(sender, "commands.bloodmagic.error.arg.invalid");
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue