Skip to content

Companion: the eight animals, and buying the new ones (#6) - #24

Merged
cmena92 merged 1 commit into
mainfrom
feat/6-animales
Oct 29, 2026
Merged

cmena92 merged 1 commit into
mainfrom
feat/6-animales

Conversation

@cmena92

@cmena92 cmena92 commented Oct 28, 2026

Copy link
Copy Markdown
Owner

Closes #6

What is here

In the animals region of www/games/companero/index.html:

  • All eight, the capybara first: capybara, fox, owl, cat, bear, rabbit, panda, otter. Animals not owned are drawn paler.
  • Capybara: free for everyone.
  • Rabbit 180, panda 260, otter 340: they show their price. With enough coins, the core's own confirmation (as in Capybara's shop) and, on accepting, a single charge; the animal is worn at once. Without enough coins, a toast with how many are missing and that playing earns them.
  • The core's owl, cat and bear, if not owned, show «unlocked in your profile». They are never sold here: the companion does not write the core's unlocks (Crear economía e inventario seguros para el compañero #3).
  • New strings in the five languages.

Nothing in the core changes; showing the new animals in the profile and menu stays out of scope (epic #2).

Checks run locally

  • node tools/test-companero.js: 73 green. New, in a real browser: the rabbit's price, the owl locked with its note, the confirmation, the single charge (200 → 20), the rabbit worn, both persisting after a reload, the panda's toast with the 240 missing and no charge, the owl not buyable here with the core's unlocks untouched, and the capybara for free. The page source never calls coins.add or achievements.unlock.
  • node tools/test.js: 5,482 green · ./tools/browser-check.sh: 50 of 50.
  • Screenshots at 390 and 1280 px, with and without the rabbit, checked by the owner's agent.

The animals region shows all eight, the capybara first. The capybara is
free for everyone. The rabbit, panda and otter show their price and are
bought with the core's own confirmation (as in Capybara's shop); without
enough coins a toast says how many are missing. The core's owl, cat and
bear, if not owned, show «unlocked in your profile» and are never sold
here: the companion does not write the core's unlocks (#3). Animals not
owned are drawn paler.

tools/test-companero.js drives the purchase in a real browser: the
price, the confirmation, the single charge, the animal worn, the reload,
the toast with what is missing, the core's characters left alone and the
capybara for free. The page never adds coins or awards.
@cmena92
cmena92 merged commit e9757ca into main Oct 29, 2026
3 checks passed
@cmena92
cmena92 deleted the feat/6-animales branch October 29, 2026 03:27
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Ampliar el catálogo de animales

1 participant