-
Notifications
You must be signed in to change notification settings - Fork 80
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
feat: Add blackfroest scenario #1332
base: develop
Are you sure you want to change the base?
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
locale/en/redmew_maps.cfg
Outdated
score_cave_collapses=Cave collapses | ||
score_mine_size=Mine size | ||
score_experience_lost=Experience lost |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
These 3 are missing from the German translation. Any reason for that?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
ups, idk, I created it a long time ago. i don't think they are used. I will check tomorrow
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
fixed
fixed |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
There are some warnings in the luacheck. The "cyclomatic complexity of function on_tick is too high" might be hard to fix but the others are probably worth looking at. I can bypass the checks if we think it's not worth the effort but probably worth a look first.
|
||
for rock_index = rock_count, 1, -1 do | ||
local rock = rocks[rock_index] | ||
raise_event(defines.events.on_entity_died, {entity = rock}) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I ran into an issue with trying to raise the on_entity_died
event. Diggy uses defines.events.script_raised_destroy
here instead.
I have a bunch of patches but I can't commit them because git wants write permissions to someone elses repository. @Bienenstock Here, before I throw my computer out the window: Summary: refactor black_forest_grow: iterates every tree on the map, doesn't error on invalid entities any more, checks every tree and reduces redundant tree checks general code quality cleaning, like using entity.destroy{raise_destroy = true}, instead of manual script raised destroy + an empty destroy(). |
I hope there are no bugs left, I created this scenario a long time ago.
Have Fun!