[PR #2358] [MERGED] Give a closed shulker its 20 covered armor #4238

Closed
opened 2026-11-03 04:15:42 +07:00 by bsakaguchi · 0 comments
Owner

📋 Pull Request Information

Original PR: https://github.com/horizon-rust/horizon/pull/2358
Author: @kacpherek
Created: 10/26/2026
Status: ✅ Merged
Merged: 10/27/2026
Merged by: @ludovic111

Base: main ← Head: fix/shulker-closed-armor


📝 Commits (1)

  • 0b3e40f Give a closed shulker its 20 covered armor

📊 Changes

1 file changed (+8 additions, -2 deletions)

View changed files

📝 crates/horizon-client/src/mobs.rs (+8 -2)

📄 Description

What and why

A shulker with its shell closed took full damage from melee and other armor-reduced hits, because it had only its base armor. In vanilla a closed shell is armored: it gets +20 armor while closed, which cuts most of the damage until it opens.

Damage to a shulker now adds 20 armor while its shell is closed (peek at 0). It is read from the current peek, so it also holds after a world reload.

Vanilla reference

  • Shulker.COVERED_ARMOR_MODIFIER (+20, ADD_VALUE).
  • Shulker.setRawPeekAmount: the modifier is added when the peek is 0 and removed otherwise.
  • CombatRules.getDamageAfterAbsorb uses the resulting armor value.

Self-check

cargo check -p horizon-client passes.


🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.

## 📋 Pull Request Information **Original PR:** https://github.com/horizon-rust/horizon/pull/2358 **Author:** [@kacpherek](https://github.com/kacpherek) **Created:** 10/26/2026 **Status:** ✅ Merged **Merged:** 10/27/2026 **Merged by:** [@ludovic111](https://github.com/ludovic111) **Base:** `main` ← **Head:** `fix/shulker-closed-armor` --- ### 📝 Commits (1) - [`0b3e40f`](https://github.com/horizon-rust/horizon/commit/0b3e40f9d449923e4bb0d8d4de37211ad2306e07) Give a closed shulker its 20 covered armor ### 📊 Changes **1 file changed** (+8 additions, -2 deletions) <details> <summary>View changed files</summary> 📝 `crates/horizon-client/src/mobs.rs` (+8 -2) </details> ### 📄 Description ## What and why A shulker with its shell closed took full damage from melee and other armor-reduced hits, because it had only its base armor. In vanilla a closed shell is armored: it gets +20 armor while closed, which cuts most of the damage until it opens. Damage to a shulker now adds 20 armor while its shell is closed (peek at 0). It is read from the current peek, so it also holds after a world reload. ## Vanilla reference - `Shulker.COVERED_ARMOR_MODIFIER` (+20, `ADD_VALUE`). - `Shulker.setRawPeekAmount`: the modifier is added when the peek is 0 and removed otherwise. - `CombatRules.getDamageAfterAbsorb` uses the resulting armor value. ## Self-check `cargo check -p horizon-client` passes. --- <sub>🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.</sub>
bsakaguchi 2026-11-03 04:15:42 +07:00
Sign in to join this conversation.
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference
horizon-rust/horizon#4238
No description provided.