tfm-modify-card

Modifies Terraforming Mars card implementation files and synchronizes unit tests.

Updated Feb 11, 2023
One-click install
npx skills add https://github.com/Ender-Wiggin2019/elo --skill tfm-modify-card
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: tfm-modify-card
Source: https://github.com/Ender-Wiggin2019/elo/tree/main/.agents/skills/tfm-modify-card
Command: npx skills add https://github.com/Ender-Wiggin2019/elo --skill tfm-modify-card

SYSTEM DOCUMENTATION & REQUIREMENTS

💡 This Skill includes references (resource) components.

What problem does it solve?

This Skill enables precise modifications to existing cards within the Terraforming Mars project, ensuring game balance and accurate representation of desired changes.

Core Features & Use Cases

  • Card Value Adjustment: Modify costs, tags, victory points, and behavior parameters of TFM cards.
  • Constant Extraction: Identify and extract repeated numerical values into constants for better maintainability.
  • Unit Test Synchronization: Update corresponding unit tests to reflect card modifications, ensuring test suite integrity.
  • Use Case: You need to increase the cost of a specific card by 2 M€ and update its victory point value. This Skill guides you through locating the card's implementation, making the changes, and ensuring the tests pass.

Quick Start

Use the tfm-modify-card skill to change the cost of the 'Advanced Bio-Reptiles' card to 18 M€.

Frequently Asked Questions about tfm-modify-card

High-intent search queries and answers about installing and using this skill.

FAQPage Schema
How do I modify card values in the Terraforming Mars project codebase?

To modify Terraforming Mars card values, you locate the card implementation file by name or enum, adjust numerical values like cost and victory points, update tags, and modify behavior objects or callback methods.

How do I update unit tests after changing Terraforming Mars card properties?

Updating unit tests after Terraforming Mars card modifications involves synchronizing the corresponding test files to reflect changes in cost or victory points, then verifying the test suite passes via command-line execution.

Can I extract repeated numerical values into constants when editing TFM cards?

Yes, when editing TFM cards you can extract repeated numerical values into constants to improve code maintainability, ensuring the modified card implementation remains clean and easy to manage.

How do I locate a specific card implementation file in the Terraforming Mars codebase?

You locate a specific Terraforming Mars card implementation file by searching for the card name or its corresponding enum value within the project codebase, allowing precise targeting of the file to modify.

What is the best way to adjust card costs and tags in Terraforming Mars?

The best way to adjust Terraforming Mars card costs and tags is by modifying the numerical values and tag properties directly within the card implementation file, followed by updating behavior objects for accurate game balance.