Skip to content

Commit

Permalink
Downgrade - Missing Inventory
Browse files Browse the repository at this point in the history
Add an error message for the Downgrade Ritual for when the inventory is missing.
  • Loading branch information
VT-14 committed Oct 10, 2023
1 parent 7f94c06 commit 793bc9f
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 0 deletions.
1 change: 1 addition & 0 deletions src/generated/resources/assets/bloodmagic/lang/en_us.json
Original file line number Diff line number Diff line change
Expand Up @@ -118,6 +118,7 @@
"chat.bloodmagic.ritual.notValid": "You feel that these runes are not configured correctly...",
"chat.bloodmagic.ritual.prevent": "The ritual is actively resisting you!",
"chat.bloodmagic.ritual.weak": "You feel a push, but are too weak to perform this ritual.",
"chat.bloodmagic.ritualLivingDowngrade.missingInventory": "No inventory found at %d, %d, %d.",
"chat.bloodmagic.ritualLivingDowngrade.notEnoughKeyItems": "You sense you need more %s to apply a stronger Downgrade.",
"chat.bloodmagic.ritualLivingDowngrade.notEnoughPoints": "You sense you will need more Upgrade Points to apply these Downgrades.",
"chat.bloodmagic.ritualLivingDowngrade.trainingBraceletBlock": "Your Training Bracelet vibrates as it prevents the downgrade from being applied.",
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -938,6 +938,7 @@ protected void addTranslations()
add("chat.bloodmagic.ritualLivingDowngrade.trainingBraceletBlock", "Your Training Bracelet vibrates as it prevents the downgrade from being applied.");
add("chat.bloodmagic.ritualLivingDowngrade.notEnoughKeyItems", "You sense you need more %s to apply a stronger Downgrade.");
add("chat.bloodmagic.ritualLivingDowngrade.notEnoughPoints", "You sense you will need more Upgrade Points to apply these Downgrades.");
add("chat.bloodmagic.ritualLivingDowngrade.missingInventory", "No inventory found at %d, %d, %d.");

// GUI
add("gui.bloodmagic.empty", "Empty");
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -89,6 +89,7 @@ public void performRitual(IMasterRitualStone masterRitualStone)

if (tile == null)
{
selectedPlayer.displayClientMessage(Component.translatable("chat.bloodmagic.ritualLivingDowngrade.missingInventory", chestPos.getX(), chestPos.getY(), chestPos.getZ()), true);
return;
}

Expand Down

0 comments on commit 793bc9f

Please sign in to comment.