[PR #2234] [MERGED] Let a brush take a scute off an armadillo #4126

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

📋 Pull Request Information

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

Base: main ← Head: fix/armadillo-brush


📝 Commits (1)

  • 79bfb8f Let a brush take a scute off an armadillo

📊 Changes

1 file changed (+52 additions, -0 deletions)

View changed files

📝 crates/horizon-client/src/game/creatures.rs (+52 -0)

📄 Description

What and why

Right-clicking an adult armadillo with a brush did nothing. Only the dispenser could brush one.

Now the brush drops a scute from the brush/armadillo loot table, plays the brush sound, posts the entity_interact game event, wears the brush by 16 (unbreaking counts) and swings the arm. Babies are left alone, as in vanilla. This sits in the normal mob interaction code, so a guest on the in-process server gets it too (the client already predicted the click).

The armadillo's scared (rolled up) state does not exist in Horizon yet, so the "scared means FAIL" branch is not handled.

Vanilla reference

  • Armadillo.mobInteract
  • Armadillo.brushOffScute (baby check, ARMADILLO_BRUSH loot, ARMADILLO_BRUSH sound, ENTITY_INTERACT)
  • ItemStack.hurtAndBreak

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/2234 **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/armadillo-brush` --- ### 📝 Commits (1) - [`79bfb8f`](https://github.com/horizon-rust/horizon/commit/79bfb8fcb81860893bd4664d4f3e86effd015eef) Let a brush take a scute off an armadillo ### 📊 Changes **1 file changed** (+52 additions, -0 deletions) <details> <summary>View changed files</summary> 📝 `crates/horizon-client/src/game/creatures.rs` (+52 -0) </details> ### 📄 Description ## What and why Right-clicking an adult armadillo with a brush did nothing. Only the dispenser could brush one. Now the brush drops a scute from the `brush/armadillo` loot table, plays the brush sound, posts the `entity_interact` game event, wears the brush by 16 (unbreaking counts) and swings the arm. Babies are left alone, as in vanilla. This sits in the normal mob interaction code, so a guest on the in-process server gets it too (the client already predicted the click). The armadillo's scared (rolled up) state does not exist in Horizon yet, so the "scared means FAIL" branch is not handled. ## Vanilla reference - `Armadillo.mobInteract` - `Armadillo.brushOffScute` (baby check, `ARMADILLO_BRUSH` loot, `ARMADILLO_BRUSH` sound, `ENTITY_INTERACT`) - `ItemStack.hurtAndBreak` ## 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:14:52 +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#4126
No description provided.