Devlogs
1.0.1 Bug Fixes & Warning Improvements
This update is mostly bug fixes and improvements to some elements released in 1.0 especially regarding the AgeState and related components.
New Signals
Added a couple lower frequency signals to AgeState. Most age related components only care about when an AgeState's age reaches a full age value like 1, 2, 3 (example, triggering on a player's birthday) so having the option for these signals is better in many cases than the age_changed or total_age_changed signals that update even on small decimal point increments to the age values.
- signal age_reached(current : float) - Emitted whenever the whole values of the current age changes (ex 1.0, 2.0, 3.0)
- signal total_age_reached(total : float) - Emitted whenever the whole number values of the total age changes (ex 1.0, 2.0, 3.0)
Bug Fix
- Fixed a bug where update_age would call on an AgeingComponent after a SceneReplacement replace call before the AgeData on the instanced scene had a chance to update (subtracting the threshold from the replacement from the new current_age)
- Fixed a bug where AddWhenAgeingComponent was adding way more frequently than it was suppose to because of age increase threshold checks not triggering properly.
Improvement
- Replaced assert calls on TimeOfDayDirectionalLight2D with push_warning calls in a validate method so that problems in setup could be reported without directly interrupting scene testing.
- AddWhenAgeingComponent and AddAfterGameSecondsComponent have a extra property for targeting resources