19,298 Commits over 1,614 Days - 0.50cph!
Implemented Need mood drain as a stat manipulator with a maximum amount of possible drain instead of infinite drain. Currently only working for individual Unit Needs.
Let's make the mood drain negative...
UI bits
StatManipulator pooling
Compile fix + stat manipulators for settlement needs.
We now calculate a cap modifier that's the total of all the active needs to ensure that needs act as a mood penalty.
Various fixes to needs stuff.
Testing tree and bush impostors
UI bits
Fucked off static AI events
Fixed Settlement.HasRequiredLevel
Fixed buggy building status indicator UI
Fixed building UI and settlement inspector overlap
Removed homeless overlay icons (will show up as an effect)
Fixed a bug in BaseAnimatedUIObject.Hide and Show methods that meant some UI elements not being properly reset
Grass Roof as default upgrade on huts
added navmeshpath status to debugpanel navigation
IsBeingAttackedBy now returns false if the attacker is dead, disabled or sleeping
InCombat flag early exit on UnitIsBeingAttacked condition
Default PlayerCamera.HasFocus to true (should fix initial focus bug on steam build)
UI widget state event fixes, (fixed overlapping building widget)
Added TimedButton component, for click & hold buttons
Fixed massive GC spike caused by SettlementInfoWidget.Assign being called every frame
If settlement leader leaves or dies show the UI.
Set Leader rank on the settlement leader (this should prevent them from leaving)
Removed Sleep In Building Goal Plan
Fixed clicking a unit while you have more than one unit selected not selecting just that one unit.
Various UI
Fixed potential NRE in Roles.OnPrimaryGoalPlanCompleted callback
TimeButton invokes after time, doesnt require mouse up
Removed extra role assignment confirmation
Fixed NRE when quitting to menu
Fix UIListElement not showing
TimedButton fix
Role selection popup confirmation closes on accept
made dead peoples eyes larger so you can see them
Disabled cooking on stick AI for now
Various UI
Moved BaseScale to Aging component.
made it actually be applied to units.
made rats smaller.
Fixed testbox_nospawns spawning
UI cleanup, removed a bunch of old widgets and refactored selected unit widget class
Settlement level up now only shows you unlocks that are unlocked by levelling up the settlement
building upgrade icons (placeholder)
Game events can limit max concurrent instances
Game events defs can override ShouldEnd method (returns true by default so events will end on the first tick)
Selected building + inspection widget
Various UI
Added AI for raids that attempt to steal your food instead of attacking you.
Raids now have a duration.
Raids target a Settlement.
Units raiding you are now considered hostile.
Various Conditions and Selectors related to Settlements and Raids.
Fixed potential NRE in UnitStatusUtility.GetHostility
Removed DynamicDecals, replaced with basic impl based on amplify stuff (WIP)
Added alpha test + cutoff to decal std shader