Conversation
src/general/world_effects/patch_events/GlobalGlaciationEvent.cs
Outdated
Show resolved
Hide resolved
src/general/world_effects/patch_events/GlobalGlaciationEvent.cs
Outdated
Show resolved
Hide resolved
src/general/world_effects/patch_events/GlobalGlaciationEvent.cs
Outdated
Show resolved
Hide resolved
src/general/world_effects/patch_events/GlobalGlaciationEvent.cs
Outdated
Show resolved
Hide resolved
hhyyrylainen
left a comment
There was a problem hiding this comment.
I started commenting and ended up doing an almost full review... though once I saw this major architecture problem I stopped as I think that needs to be the first thing to be actually fixed before it makes sense to polish the rest of the code.
src/general/world_effects/patch_events/GlobalGlaciationEvent.cs
Outdated
Show resolved
Hide resolved
# Conflicts: # locale/af.po # locale/ar.po # locale/be.po # locale/bg.po # locale/bn.po # locale/ca.po # locale/cs.po # locale/da.po # locale/de.po # locale/el.po # locale/en.po # locale/eo.po # locale/es.po # locale/es_AR.po # locale/et.po # locale/fi.po # locale/fr.po # locale/frm.po # locale/gsw.po # locale/he.po # locale/hr.po # locale/hu.po # locale/id.po # locale/it.po # locale/ja.po # locale/ka.po # locale/ko.po # locale/la.po # locale/lb_LU.po # locale/lt.po # locale/lv.po # locale/messages.pot # locale/mk.po # locale/nb_NO.po # locale/nl.po # locale/nl_BE.po # locale/pl.po # locale/pt_BR.po # locale/pt_PT.po # locale/ro.po # locale/ru.po # locale/si_LK.po # locale/sk.po # locale/sr_Cyrl.po # locale/sr_Latn.po # locale/sv.po # locale/th_TH.po # locale/tok.po # locale/tr.po # locale/tt.po # locale/uk.po # locale/vi.po # locale/zh_CN.po # locale/zh_TW.po
|
@hhyyrylainen does this PR need any other work besides master merge? Or is it ready to be merged in your opinion? |
|
Does this yet have the fix for multiple events being able to start and stop at different times and still be able to correctly restore the old state? I was kind of waiting for that change to be done before reviewing the code again. Sorry if I missed it being added already. |
|
I thought that we came to conclusion in previous comments that such system would come in another PRs with more events as now it is not needed. And I changed the glaciation event a little bit in my meteor event PR to be able to work properly with that one so that previous states would be restored properly |
|
I got the opposite impression, that you wanted to prepare for the meteor event in this PR, oops. I guess I can re-review this PR, but if there is still the problem here that it cannot restore stuff correctly, I'll ask for changes here. |
|
It restores the state correctly and the PR is ready for review |
src/general/world_effects/patch_events/GlobalGlaciationEvent.cs
Outdated
Show resolved
Hide resolved
src/general/world_effects/patch_events/GlobalGlaciationEvent.cs
Outdated
Show resolved
Hide resolved
src/general/world_effects/patch_events/GlobalGlaciationEvent.cs
Outdated
Show resolved
Hide resolved
src/general/world_effects/patch_events/GlobalGlaciationEvent.cs
Outdated
Show resolved
Hide resolved
|
Okay, I reviewed this again. I think I noticed one bug but other than that there's just some code cleanliness stuff I commented on. |
# Conflicts: # locale/af.po # locale/ar.po # locale/be.po # locale/bg.po # locale/bn.po # locale/ca.po # locale/cs.po # locale/da.po # locale/de.po # locale/el.po # locale/en.po # locale/eo.po # locale/es.po # locale/es_AR.po # locale/et.po # locale/fi.po # locale/fr.po # locale/frm.po # locale/gsw.po # locale/he.po # locale/hr.po # locale/hu.po # locale/id.po # locale/it.po # locale/ja.po # locale/ka.po # locale/ko.po # locale/la.po # locale/lb_LU.po # locale/lt.po # locale/lv.po # locale/messages.pot # locale/mk.po # locale/nb_NO.po # locale/nl.po # locale/nl_BE.po # locale/pl.po # locale/pt_BR.po # locale/pt_PT.po # locale/ro.po # locale/ru.po # locale/si_LK.po # locale/sk.po # locale/sr_Cyrl.po # locale/sr_Latn.po # locale/sv.po # locale/th_TH.po # locale/tok.po # locale/tr.po # locale/tt.po # locale/uk.po # locale/vi.po # locale/zh_CN.po # locale/zh_TW.po # src/macroscopic_stage/editor/MacroscopicEditor.cs # src/microbe_stage/editor/MicrobeEditor.cs # src/multicellular_stage/editor/MulticellularEditor.cs
hhyyrylainen
left a comment
There was a problem hiding this comment.
I was doing final testing and I noticed a bug. The glaciation events per patch are put in the global timeline and not the patch local timelines. So this is incorrect:
The patch local timelines list "Global glaciation event" already so I think that is fine, just need to remove that huge spam of events from the global timeline.
…alGlaciationEvent # Conflicts: # locale/en.po
hhyyrylainen
left a comment
There was a problem hiding this comment.
With the event log change this should be perfect now. I'll assume from the code change that it works without re-testing.

Brief Description of What This PR Does
Adds global glaciation event. Still needs the new icon and translation files
Progress Checklist
Note: before starting this checklist the PR should be marked as non-draft.
break existing features:
https://wiki.revolutionarygamesstudio.com/wiki/Testing_Checklist
(this is important as to not waste the time of Thrive team
members reviewing this PR)
styleguide.
Before merging all CI jobs should finish on this PR without errors, if
there are automatically detected style issues they should be fixed by
the PR author. Merging must follow our
styleguide.