jwvhewitt / gearhead-caramel

A coffeebreaklike set in the GearHead world.
http://gearheadrpg.com
Other
86 stars 17 forks source link

Short textual weapon stat summaries #141

Open AmkG opened 4 years ago

AmkG commented 4 years ago

In the old Sid Meier's Alpha Centauri, a unit would be defined by a triple of numbers: attack-defense-movepoints. So for example the most basic Scout unit would be 1-1-1.

The cute thing is that this simple text description was used by Sid Meier's Alpha Centauri to also indicate to you any special abilities a unit has. For example, a flying unit would be described as <4>-1-6, while a ground-bound anti-air unit would be 1-<3>-1. An interceptor, a flying unit that automatically defends against other flying units, would be <4>-<1>-6. An artillery unit would be (5)-1-1, and a "trance" unit that has good defense against psi attacks would be 1-4t-1. A marine unit that could attack directly from a seafaring transport would be 8~-1-1. etc.

I think we can create similar descriptions for weapons/missiles. For example:

Having such a short text description of each weapon would be useful in the longform display of mecha. The longform display can list the weapons of the mecha, together with the short text description of the weapon stats, without requiring long infopanels for each weapon.

Thoughts?

AmkG commented 4 years ago

To implement, every attack attribute would include two classmethods: get_shortstat_decoration_index and decorate_shortstat. get_shortstat_decoration_index would return a numeric index that indicates in what order they would decorate the basic damage-accuracy-penetration tuple, so that e.g. Haywire Overload and Overload Haywire weapons would have the same short stat description. Then decorate_shortstat would be given damage accuracy penetration strings, and would then return a tuple of those three strings, but with their decorations added.