Chistix-ShrinkTotem icon

ShrinkTotem

A totem built like a ward: tamed creatures in its zone (a circle or a rectangle set by marks) take the size you set at it. Big bears and lox fit in pens again. Install on every player.

CHANGELOG

Changelog

0.2.3

  • Long names in the totem window are cut off plainly instead of with "…" (the game's fonts have no such sign, and the game wrote a warning to the log each time).

0.2.2

  • The totem window looks like the game's own crafting window: its wooden board and dark inset (taken from the game while it runs), its title, text and item-name colours and fonts, the container's buttons and the crafting arrows for - / +. No own shades any more (the darker look of 0.1.1 is gone).

0.2.1

  • The totem window now sits above the game's HUD, as the game puts its own pop-ups above their parent: the crosshair and the hover text no longer show over it or take the clicks of the buttons under them. The E that closes the window no longer reaches the totem behind it.
  • The totem's and the marks' names are translated also when the game set its language up before the mod loaded (no more "[piece_chistix_shrinktotem]").

0.2.0

  • Each totem can have its own zone instead of the settings' circle. Three zone marks join the hammer (corner 1, corner 2, radius; 2 wood each, MarkIngredients). E on a mark, then E on the totem: a radius mark gives a circle through it, corner 1 and corner 2 give the rectangle between them along the totem's sides (turn the totem with the hammer to turn the rectangle). The zone is kept on the totem; the marks may be taken down afterwards.
  • The rectangle shows on the ground like the game's own radius circle. The window shows the zone and a "Default zone" button. Zones reach at most 64 m from the totem (MaxZone).

0.1.1

  • The totem window keeps a fixed order: by kind, then name, then the creature itself. Rows no longer jump as creatures walk about; newcomers slot in, leavers drop out.
  • A button switches the list between "one by one" and "by kinds": a row per kind with how many there are, their size (×0.5-1.0 when they differ) and - / + for all of that kind. The choice is kept per player (ListByKind).
  • A darker window, like the game's inventory and crafting windows: dimmed wood, each row on a dark strip, the light text stays readable.

0.1.0

  • First release: the shrinking totem, built with the hammer like a ward (stone, wood, resin, greydwarf eyes at the workbench; Ingredients, Station). It shows its radius like a ward (32 m, Radius).
  • E on the totem: every tamed creature within its radius with its name and kind, its size (×1.0) and - / + buttons; a row "All at once" with - / + and ×1. Step 0.1 from ×0.3 to ×1.5 (Step, Min, Max).
  • The size is stored on the creature and seen by every player. It holds only while the creature is within the radius of any shrinking totem; out of it, its own size again. Model and collisions change together; health, damage and loot stay as they are.
  • Paths by size (PathBySize): a shrunk creature uses the game's navigation for a smaller creature, a grown one for a larger one, so neither gets stuck at gates. Scaling itself is done the way the game's own "enemy size" world setting does it (the whole creature's scale).
  • Who may change the sizes: who built the totem, and the players a ward over the totem lets in (its owner and the permitted); AnyoneCanChange lets everyone.
  • Works on top of sizes other mods give creatures (Leash's breeds, level mods): the two multiply. Leash may carry the same totem built in; then this plugin turns itself off and the settings are in Leash's config.