Keep supplied source text in canonical Git line endings
Some checks failed
DuneRealms Plugin CI / plugins (push) Failing after 8m59s
Supplied Dune Item Art Build / supplied-item-art (push) Successful in 30s

This commit is contained in:
unimatrixgit 2026-12-03 20:52:03 +01:00
commit c9944bb832
13 changed files with 8437 additions and 8397 deletions

View file

@ -0,0 +1,40 @@
# Soft Dune item art (all item sprites)
Direction: items should feel like Arrakis. The Butlerian Jihad means no screens, holograms or circuit lattices: the
futurism is clean machined brass, bone, sun-bleached stillsuit cloth, spice-amber crystal and water-glass, painted
with soft light and warm umber shadows instead of black outlines or neon glow. GUI/menu/tooltip textures are untouched.
## What changed
- **Custom generated items** (`central/generator/soft_*.py`, `dunesoft.py`): coins, notes and legacy Dunemark ids,
planet sigils, office crests, spy module, spice crystals, water vials, Imperial Codex, and all 224 equipment icons.
`build_pack.py` now imports the soft modules; its output replaces the 268 generated PNGs in `central/overlay`.
Item model and definition JSON are unchanged.
- **Equipment orientation follows vanilla sprites**: grip bottom-left and working end top-right for sword, pickaxe,
axe, shovel, mace and trident; the hoe blade hooks to the upper-left; bow and crossbow face the upper-left.
Tools are classic silhouettes with bone blades, leather-wrapped grips, brass sockets and small cog details.
Armour reads as stillsuits: veiled hoods, catchtubes, brass buckles and boots with leather straps.
- **Vanilla items** (`dune-items/overlay`): all 833 item sprites in `vanilla-art` + `owner-items` regraded by
`central/generator/dune_item_grade.py`. Alpha, size and silhouette are unchanged. This is a deterministic
recolour into one dusty palette (greens to sage, yellows to ochre, reds to terracotta, metals to pewter/brass,
diamond to pale water-crystal), not 833 new drawings. The seven ingot/raw icons are redrawn.
- **Hand-supplied custom items** (`dune-items/custom`): ecology items, crysknife, maker's tooth, wrench and the
Goldmembers shovel get the same colour grade only.
## Protected functional art
Tint layers (`*_overlay`, `tipped_arrow_head`, map markings) are copied byte-for-byte. Dye-tinted base sprites
(leather armour, wolf armour, firework star) only get a lightness curve so dye colours stay correct. Colour-coded
items (dyes, bundles, candles, harnesses, spawn eggs, discs, potions) keep their hues with a lighter grade.
## Reproduce and check
```
python3 network/resource-pack/central/generator/build_pack.py /tmp/central # custom items
python3 network/resource-pack/central/generator/dune_item_grade.py network/resource-pack/dune-items
python3 tools/test_dune_item_grade.py -v
```
`tools/plugin_resource_pack.py` loads `dune-items/overlay` after `owner-items` and `dune-items/custom` last.
Not run here: the full pack build needs the pinned Mojang client jar, so the pack hash, `test_plugin_resource_pack`
and the hash pins for changed files need a CI run and a connected-client check. Offline sheets are not in-game proof.