feat: Add blackfroest scenario#1332
Conversation
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.
These 3 are missing from the German translation. Any reason for that?
There was a problem hiding this comment.
ups, idk, I created it a long time ago. i don't think they are used. I will check tomorrow
fixed |
grilledham
left a comment
There was a problem hiding this comment.
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.
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!