13,047 Commits over 2,831 Days - 0.19cph!
Moving while channelling a spell cancels the spell
Hooked up spell cooldown UI
All status effects are removed when killed
Removed some unused fields from ItemProtectionStats, including the whole ApplyForSeconds section
Can now only modify a PoolValue and ValuePerSecond
Can now set PoolValue and ValuePerSecond at the same time, so an item can increase a stat and modify that stat per second at the same time
Might have fixed itemstats not getting marked as dirty if a float field for Health/Mana/Stamina was modified (would explain the changes that keep getting lost)
Reworked some stun condition checks to still let some systems run during a stun (fixes the stun fullscreen fx not playing properly)
Tweaked third person orientation of shield
Fixed Shield not calling base.OnHolster (fixes shield getting left on in 3rd person when switching weapons)
Fixed cast channelling bar appearing when attempting to cast while not holding a staff
Effect procs for NPC attacks are now an array of Effect/Chance rather than just a single effect
If an effect is added while the same effect is already added, the duration of the existing effect is reset rather than adding a new effect
Fixed bleeding effect healing rather than hurting
Fixed damage from status effects procing the status effect on hit of an NPC (should fix effect spam)
Added an onStatusEffectsChanged callback to GlobalMessages
Fixed ArmorIndex ui element not checking status effect protection values
Added a statuseffects.removeall command to remove all active effects
Added Bleeding and Frozen effects to demo all of the fullscreen effects
Added ability for ItemStatsProperties to lower protection values (previously could only do positive values)
Bleeding slows by 20% and deals 5 dmg per second for 10 seconds
Frozen stuns the player for 5 seconds, lowers all damage resistances and will break when the player takes damage (so the hit that breaks the freeze should do a lot of damage)
Moved status effect fxPrefabs into the standard Effect system
Fixed charge effect on fireball spell not working (was missing an EffectRecycle)
Fixed spell charge bar looking weird after casting multiple spells
Hooked poison effect up to the Poison fullscreen fx
Hooked up the spell charging bar
Added a StatusEffectFullscreenFX manager that enables/disables fullscreen UI roots as necessary
Added a RemoveOnDamage field to StatusEffectDefinition
Added a new FastHeal status effect that heals over time and gets removed if the player takes damage
Added a console command to add effects to the local player eg. statuseffects.add poison
Removed the status effect slot on the shield, not necessary with a console command
Poison no longer slows
Added a new Slowed effect to show how to slow down the player
Exposed a field to assign an NPC a chance to add a status effect on impact
Spider attacks now apply poison status effect
Fixed some exceptions for StatusEffects with no stats assets
Added a basic stun field to StatusEffect, just locks off all input (except UI) right now (needs some effects, it looks like the game locks up)
Instead of just putting all of the examples onto Poison, made a few other examples to showcase actual functionality:
-ProtectionBuff raises all damage protection values to max
-Stun
-Weakness temporarily lowers the max HP and Stamina by 50
Added some damping to the shield animator params on the PlayerModel
Mapped Health, Mana and Stamina fields on StatusEffects to appropriate stats (Pool and Per Second modes work)
Hooked up crit chance modifier on effects
Theoretically hooked up the protection values (Physical, Heat, Cold, Poison, Magic, Decay - same as items)
Status Effect protection buffs happens after shield damage has been calculated but before damage is dealt to the player
HasShield animator param on ModelState should now be correctly assigned
Items not held as primary no longer modify the HoldModel
Status Effects now spawn and destroy their fxPrefab
Added a terrible particle effect to Poison to demonstrate
Rehooked up shield effect on the prefab
Fixed starting shield not being visible when game starts
Fixed issue where repeatedly equipping and unequipping a weapon would stop the weapon from appearing
Pressing H while holding a shield triggers the Poisoned effect in the editor (for testing)
Status Effects can now mark themselves as related to a metabolism effect, the corresponding VitalNote on the HUD will be displayed while that effect is active
Enabled poison VitalNote and filled in the text so it reads correctly
Status Effects can now apply damage over their duration (standard DamageTypes list implementation)
Added an ItemStatsProperties field to StatusEffects (same as Items) so status effects can now modify movement speeds
First pass on StatusEffects framework
Effects are defined via a definition file in Resources/StatusEffects/
Currently adds and removes the effect over the network (based on the duration of the effect specified in the definition)
Fixed NRE when equipping clothing
Can no longer equip a weapon that blocks the offhand if you have an offhand item equipped
Can no longer equip an offhand if you have a primary weapon that blocks offhand
Fixed not being able to equip tools in Primary Slot
Exposed a valid Categories field on DropMe, primary slot can take Primary and Tool, secondary slot can take Offhand only
Corpses should now detach from a spit once they have been fully consumed (no more items to dispense)
Fixed missing stranger AI field in GroupMember on Human
New RPC conditional - IsActiveSecondaryItem
Moved some shield bash logic out of BaseMelee into BaseShield
BaseShield now derives from AttackEntity (since a shield can now attack things)
Exposed an ImpactSoundDefinition field for when a shield bash connects with a target (just put the regular wooden block def in for now, sounds ok)
Exposed bashDamageTypes on the BaseShield to control how much damage each bash can do (38 with 7 variance right now, same as sword)
Basic shield bash implementation
Fixed being able to click accept/decline on a new tribe member pop up before it had finished animating in (pretty sure this was causing the soft lock when accepting a new tribe member)
Shields have an exposed ImpactSoundDefinition that gets played when the player blocks an attack
Hooked up Block-Wood to the current test shield
Potentially fixed impact sounds not playing when getting hit
Merging equipment_slot_rework
Updated Data.dll with new primary/secondary containers
Hopefully fixed the weapon disappearing bug
Reduced belt size back down to 4
Ran CodeGen to make new button input work
Updated PlayerInventoryProperties so sword, shield and staff start in the correct equipment slots
Q to swap equipment sets (not currently working, code is setup though)
Some belt stuff
Reverted the spell commit from yesterday
Lowered bravery stat to +10 so rats will attack people
Disabled wander to territory while raiding
Fix not being able to equip spells in offhand slot
Attempting to make equipped items update automatically after being equipped
WIP weapon switching work