Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

WeaponSystem assignment does not work #240

Open
adrsquared opened this issue Jul 25, 2022 · 0 comments
Open

WeaponSystem assignment does not work #240

adrsquared opened this issue Jul 25, 2022 · 0 comments

Comments

@adrsquared
Copy link

Running into an issue with assigning the WeaponSystem in the Behavior. It looks like the default WeaponSystem for the Fighter behavior is getting set before it checks if the custom behavior is attempting to assign a WeaponSystem, so if you use [BehaviorName:Fighter], then you cannot set a [WeaponSystem:.....] in the same behavior. I think the culprit is the check in CoreBehavior.cs:1033.

if(string.IsNullOrWhiteSpace(BehaviorSettings.WeaponsSystemProfile))

Commenting out the line seems to fix the issue (I would assume that any explicit assignments in the behavior should override any defaults).

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

No branches or pull requests

1 participant