-
Notifications
You must be signed in to change notification settings - Fork 14
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
What is the purpose of the modifier_grid_ ? #14
Comments
I added when implementing Blight in DotaCraft because I needed something more dynamic and customizable. The problem is Blight only takes effect after the building finishes construction, unlike the normal KV blocks which are networked only once in lua when the library starts. If you check the blight.lua implementation, it does both But you are correct, it seems redundant and could be changed to a net-table with the entity index of the building, checking if that entity has any custom grid types attached to it. |
How about calling That way it is created when the construction is done and then you don't have to call I was a bit confused because I added a grid type "Expand" around my main building (in order to prevent building too far from it) and noticed that it didn't actually generate the custom grid type. Until I realized I had to call |
Yeah I see the issue. Problem with doing it there is, what if you want the custom grid type to be set as soon as it starts building? Or proggressively increase it as it finishes? Would probably need to add a new key for the custom grid behavior, such as Honestly the custom grid types deal is very unfinished, let me know if you find any other problems or suggestions I'd be glad to add them in! |
Ok, I see. Thanks for your explanations :) |
I was wondering why is the JS checking if the building has the modifier_grid_blablabla :
https://github.com/MNoya/BuildingHelper/blob/master/panorama/scripts/building_helper.js#L688
I'm asking because it seems redundant to add the modifier when there is already the KV defining the custom grid type.
The text was updated successfully, but these errors were encountered: