@Grey Roger, @Levis, @Jack Rackham and anyone else who cares to comment:
What weapons do you think should and shouldn't be distributed in certain conditions?
I could imagine that:
- Ashore anything is fair game, though perhaps NOT musketoons
- In boardings for crew, soldiers can use the default soldier weapons, though this COULD make them use muskets which maybe should be replaced with musketoons (???)
- Captains probably should use guns and not something musket-like
Maybe some weapons should be marked for "soldiers" only? So they wouldn't get used by captains/sailors?
Then what about pirate crews? Could they use those? Or not?
Perhaps the best idea would be this:
- When distributing weapons, check the weapon attributes for any beginning with "is" (for example isSoldier, isSailor, isIndian, isCaptain)
- Then check the character attributes and ONLY distribute these random weapons if the character ALSO has that attribute
So "isSoldier" weapons would only be given to "isSoldier" characters.
This may get us past the whole "hardcoded assignment" that we've got now, which is really quite an ugly solution.
What weapons do you think should and shouldn't be distributed in certain conditions?
I could imagine that:
- Ashore anything is fair game, though perhaps NOT musketoons
- In boardings for crew, soldiers can use the default soldier weapons, though this COULD make them use muskets which maybe should be replaced with musketoons (???)
- Captains probably should use guns and not something musket-like
Maybe some weapons should be marked for "soldiers" only? So they wouldn't get used by captains/sailors?
Then what about pirate crews? Could they use those? Or not?
Perhaps the best idea would be this:
- When distributing weapons, check the weapon attributes for any beginning with "is" (for example isSoldier, isSailor, isIndian, isCaptain)
- Then check the character attributes and ONLY distribute these random weapons if the character ALSO has that attribute
So "isSoldier" weapons would only be given to "isSoldier" characters.
This may get us past the whole "hardcoded assignment" that we've got now, which is really quite an ugly solution.