karrde / ffg_swrpg

FFG Star Wars RPG system tools
Other
10 stars 4 forks source link

Creature "Weapons" #2

Closed karrde closed 10 years ago

karrde commented 10 years ago

One of the things Brad initially brought up was that the list of "creature" weapons needed better "names" since there were multiple "claw" entries all with different stats. Been giving that some thought as I've been re-looking over the Adversary stuff. I'd been thinking that a model in the Adversary app that either extends or looks like the weapon. I hate to inherit the Weapon model because a claw doesn't need a price/rarity part, and I hate to re-implement half of the weapon code. What probably really needs to happen is factor off the weapon part into a mixin type model and let the equipment.weapon multiply inherit Gear and "Base Weapon". Then the CreatureWeapon could inherit Entry and Weapon.

The adversary.weapon attribute would then have to point to entries instead of gear (probably more appropriate anyway) and it's already doing a filter of the types of Gear subclasses it looks at.

Then I could tie in the Species model on the CreatureWeapon. This would allow it to show the species name on a list display, and just the "weapon" name when it's attached to an adversary.

karrde commented 10 years ago

Currently in place on test site: http://swrpg-test.viluppo.net/