Skip to content
This repository has been archived by the owner on Oct 26, 2020. It is now read-only.

A simpler ModuleVariable request #167

Open
NathanKell opened this issue Aug 1, 2017 · 0 comments
Open

A simpler ModuleVariable request #167

NathanKell opened this issue Aug 1, 2017 · 0 comments

Comments

@NathanKell
Copy link
Contributor

Well, I hope simpler! :)

Can there be a third set of variables? As such: If at least one part is found to have the listed module, then that multiplier is applied to the entire vessel's BP total.
So e.g. we have a GlobalModuleVariable, ModuleTagHumanRated = 2. That means that if at least one part on the vessel is HumanRated, then the entire BP of the vessel is doubled.

As I understand things that should be fairly easy to do? Have a global multiplier that starts at one, and a blank hashset, and check each module against the global module vars; if it is a global module var, and the hashset doesn't contain it, multiply the global mult by that and add the module name to the hashset.

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant