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

fixed issue where multiple weapons of same type was not showing #1

Open
wants to merge 6 commits into
base: main
Choose a base branch
from

Conversation

powershellwhizz
Copy link

As mentioned in discord, the issue is that BS organises the data via units so a unit with 6 men has 6 guns. When this is applied to a model in TTS it shows as 6 guns. So to fix this, the original dev just set it so that each MODEL would always get one gun. This had the adverse effect of stripping legitimate duplicate guns. This code fix fixes all of that by adding a new paramater called "number" which passes down the unit number all the to the function which then creates the weapons. At this point it looks at how many weaapons there are then divides it by the unit number which was passed down. Example, 6 man unit they have 2 guns each but in BS you just see 12 guns. My change now, passes the unit number 6 to the function which adds the weapons, It counts 12 guns and divides by 6 units meaning they have 2 guns each, as intended.

@GabrielL
Copy link

Could you add to the PR an example file that trigger the issue ?

@powershellwhizz
Copy link
Author

powershellwhizz commented Jan 21, 2022 via email

@powershellwhizz
Copy link
Author

powershellwhizz commented Jan 21, 2022 via email

@GabrielL
Copy link

Here is a sample that illustrate the issue (escuse the extension to please github)

necron-tombstalker-multiple-weapon-per-model.ros.zip

@powershellwhizz
Copy link
Author

@GabrielL hey buddy, what is your name on the discord server?

@powershellwhizz
Copy link
Author

hey @GabrielL what is your handle of the discord server?

.gitignore Outdated Show resolved Hide resolved
bin/Model.js Outdated Show resolved Hide resolved
bin/Model.js Outdated Show resolved Hide resolved
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

Successfully merging this pull request may close these issues.

2 participants