JackDanna / FogentRoleplayCharacterSheet

4 stars 0 forks source link

Refactor weapon and spell weapon to maybe use the same base type #9

Open JackDanna opened 15 hours ago

JackDanna commented 15 hours ago

Currently WeaponSpell and 'Weapon' are defined as two different things, with WeaponSpell being converted to a Weapon before being converted into a combat roll.

Since WeaponSpells are really just reusing the stats of weapons, I'm wondering if there wasn't a way to define a BaseWeapon type that both of them shared. I need to do more thinking on this and this is just a place to place my thoughts.

JackDanna commented 14 hours ago

Whatever this BaseWeapon type becomes, it should be able to consume mutiple weapon resource. For instance an automatic firearm could consume mutiple bulltes or a fire ball could consume multiple weapon magic resource.