@@ -239,9 +239,9 @@ public void Periodic_effect_example()
239239 )
240240 } ,
241241 periodicData : new PeriodicData (
242- period : new ScalableFloat ( 2.0f ) ,
243- executeOnApplication : true ,
244- periodInhibitionRemovedPolicy : PeriodInhibitionRemovedPolicy . ResetPeriod
242+ Period : new ScalableFloat ( 2.0f ) ,
243+ ExecuteOnApplication : true ,
244+ PeriodInhibitionRemovedPolicy : PeriodInhibitionRemovedPolicy . ResetPeriod
245245 )
246246 ) ;
247247
@@ -282,23 +282,23 @@ public void Stacking_poison_effect_example()
282282 )
283283 } ,
284284 periodicData : new PeriodicData (
285- period : new ScalableFloat ( 2.0f ) ,
286- executeOnApplication : false ,
287- periodInhibitionRemovedPolicy : PeriodInhibitionRemovedPolicy . ResetPeriod
285+ Period : new ScalableFloat ( 2.0f ) ,
286+ ExecuteOnApplication : false ,
287+ PeriodInhibitionRemovedPolicy : PeriodInhibitionRemovedPolicy . ResetPeriod
288288 ) ,
289289 stackingData : new StackingData (
290- stackLimit : new ScalableInt ( 3 ) , // Max 3 stacks
291- initialStack : new ScalableInt ( 1 ) , // Starts with 1 stack
292- overflowPolicy : StackOverflowPolicy . DenyApplication , // Deny if max stacks reached
293- magnitudePolicy : StackMagnitudePolicy . Sum , // Total damage increases with stacks
294- expirationPolicy : StackExpirationPolicy . ClearEntireStack , // All stacks expire together
295- applicationRefreshPolicy : StackApplicationRefreshPolicy . RefreshOnSuccessfulApplication ,
296- stackPolicy : StackPolicy . AggregateBySource , // Aggregate stacks from the same source
297- stackLevelPolicy : StackLevelPolicy . SegregateLevels , // Each stack can have its own level
290+ StackLimit : new ScalableInt ( 3 ) , // Max 3 stacks
291+ InitialStack : new ScalableInt ( 1 ) , // Starts with 1 stack
292+ OverflowPolicy : StackOverflowPolicy . DenyApplication , // Deny if max stacks reached
293+ MagnitudePolicy : StackMagnitudePolicy . Sum , // Total damage increases with stacks
294+ ExpirationPolicy : StackExpirationPolicy . ClearEntireStack , // All stacks expire together
295+ ApplicationRefreshPolicy : StackApplicationRefreshPolicy . RefreshOnSuccessfulApplication ,
296+ StackPolicy : StackPolicy . AggregateBySource , // Aggregate stacks from the same source
297+ StackLevelPolicy : StackLevelPolicy . SegregateLevels , // Each stack can have its own level
298298
299299 // The next two values must be defined because this is a periodic effect with stacking
300- executeOnSuccessfulApplication : false , // Do not execute on successful application
301- applicationResetPeriodPolicy : StackApplicationResetPeriodPolicy . ResetOnSuccessfulApplication
300+ ExecuteOnSuccessfulApplication : false , // Do not execute on successful application
301+ ApplicationResetPeriodPolicy : StackApplicationResetPeriodPolicy . ResetOnSuccessfulApplication
302302 )
303303 ) ;
304304
@@ -351,20 +351,20 @@ public void Unique_effect_example()
351351 )
352352 } ,
353353 stackingData : new StackingData (
354- stackLimit : new ScalableInt ( 1 ) , // Only 1 instance allowed
355- initialStack : new ScalableInt ( 1 ) , // Starts with 1 stack
356- overflowPolicy : StackOverflowPolicy . AllowApplication , // Allow application even if max stacks reached
357- magnitudePolicy : StackMagnitudePolicy . Sum , // Total damage increases with stacks
358- expirationPolicy : StackExpirationPolicy . ClearEntireStack , // All stacks expire together
359- applicationRefreshPolicy : StackApplicationRefreshPolicy . RefreshOnSuccessfulApplication ,
360- stackPolicy : StackPolicy . AggregateByTarget , // Only one effect per target
361- ownerDenialPolicy : StackOwnerDenialPolicy . AlwaysAllow , // Always allow application regardless of owner
362- ownerOverridePolicy : StackOwnerOverridePolicy . Override , // Override existing effect if applied again
363- ownerOverrideStackCountPolicy : StackOwnerOverrideStackCountPolicy . ResetStacks ,
364- stackLevelPolicy : StackLevelPolicy . AggregateLevels , // Aggregate levels of the effect
365- levelOverridePolicy : LevelComparison . Equal | LevelComparison . Higher ,
366- levelDenialPolicy : LevelComparison . Lower , // Deny lower-level effects
367- levelOverrideStackCountPolicy : StackLevelOverrideStackCountPolicy . ResetStacks
354+ StackLimit : new ScalableInt ( 1 ) , // Only 1 instance allowed
355+ InitialStack : new ScalableInt ( 1 ) , // Starts with 1 stack
356+ OverflowPolicy : StackOverflowPolicy . AllowApplication , // Allow application even if max stacks reached
357+ MagnitudePolicy : StackMagnitudePolicy . Sum , // Total damage increases with stacks
358+ ExpirationPolicy : StackExpirationPolicy . ClearEntireStack , // All stacks expire together
359+ ApplicationRefreshPolicy : StackApplicationRefreshPolicy . RefreshOnSuccessfulApplication ,
360+ StackPolicy : StackPolicy . AggregateByTarget , // Only one effect per target
361+ OwnerDenialPolicy : StackOwnerDenialPolicy . AlwaysAllow , // Always allow application regardless of owner
362+ OwnerOverridePolicy : StackOwnerOverridePolicy . Override , // Override existing effect if applied again
363+ OwnerOverrideStackCountPolicy : StackOwnerOverrideStackCountPolicy . ResetStacks ,
364+ StackLevelPolicy : StackLevelPolicy . AggregateLevels , // Aggregate levels of the effect
365+ LevelOverridePolicy : LevelComparison . Equal | LevelComparison . Higher ,
366+ LevelDenialPolicy : LevelComparison . Lower , // Deny lower-level effects
367+ LevelOverrideStackCountPolicy : StackLevelOverrideStackCountPolicy . ResetStacks
368368 )
369369 ) ;
370370
@@ -456,7 +456,7 @@ public void Preventing_effect_application_based_on_tags()
456456 new TargetTagRequirementsEffectComponent (
457457 applicationTagRequirements : new TagRequirements (
458458 // Prevent application if target has "status.immune.fire"
459- ignoreTags : tagsManager . RequestTagContainer ( new [ ] { "status.immune.fire" } )
459+ IgnoreTags : tagsManager . RequestTagContainer ( new [ ] { "status.immune.fire" } )
460460 )
461461 )
462462 }
@@ -638,17 +638,17 @@ public void Triggering_a_cue_through_effects()
638638 )
639639 } ,
640640 periodicData : new PeriodicData (
641- period : new ScalableFloat ( 1.0f ) , // Ticks every second
642- executeOnApplication : true ,
643- periodInhibitionRemovedPolicy : PeriodInhibitionRemovedPolicy . ResetPeriod
641+ Period : new ScalableFloat ( 1.0f ) , // Ticks every second
642+ ExecuteOnApplication : true ,
643+ PeriodInhibitionRemovedPolicy : PeriodInhibitionRemovedPolicy . ResetPeriod
644644 ) ,
645645 cues : new [ ] {
646646 new CueData (
647- cueTags : tagsManager . RequestTagContainer ( new [ ] { "cues.damage.fire" } ) ,
648- minValue : 0 ,
649- maxValue : 100 ,
650- magnitudeType : CueMagnitudeType . AttributeValueChange ,
651- magnitudeAttribute : "PlayerAttributeSet.Health" // Tracks health changes
647+ CueTags : tagsManager . RequestTagContainer ( new [ ] { "cues.damage.fire" } ) ,
648+ MinValue : 0 ,
649+ MaxValue : 100 ,
650+ MagnitudeType : CueMagnitudeType . AttributeValueChange ,
651+ MagnitudeAttribute : "PlayerAttributeSet.Health" // Tracks health changes
652652 )
653653 }
654654 ) ;
@@ -700,10 +700,10 @@ public void Manually_triggering_a_cue()
700700
701701 // Manually trigger a fire damage cue
702702 var parameters = new CueParameters (
703- magnitude : 25 , // Raw damage value
704- normalizedMagnitude : 0.25f , // Normalized between 0-1
705- source : player ,
706- customParameters : new Dictionary < StringKey , object >
703+ Magnitude : 25 , // Raw damage value
704+ NormalizedMagnitude : 0.25f , // Normalized between 0-1
705+ Source : player ,
706+ CustomParameters : new Dictionary < StringKey , object >
707707 {
708708 { "DamageType" , "Fire" } ,
709709 { "IsCritical" , true }
@@ -797,12 +797,12 @@ public StrengthDamageCalculator()
797797 StrengthAttribute = new AttributeCaptureDefinition (
798798 "PlayerAttributeSet.Strength" ,
799799 AttributeCaptureSource . Source ,
800- snapshot : true ) ;
800+ Snapshot : true ) ;
801801
802802 SpeedAttribute = new AttributeCaptureDefinition (
803803 "PlayerAttributeSet.Speed" ,
804804 AttributeCaptureSource . Source ,
805- snapshot : true ) ;
805+ Snapshot : true ) ;
806806
807807 AttributesToCapture . Add ( StrengthAttribute ) ;
808808 AttributesToCapture . Add ( SpeedAttribute ) ;
@@ -833,17 +833,17 @@ public HealthDrainExecution()
833833 TargetHealth = new AttributeCaptureDefinition (
834834 "PlayerAttributeSet.Health" ,
835835 AttributeCaptureSource . Target ,
836- snapshot : false ) ;
836+ Snapshot : false ) ;
837837
838838 SourceHealth = new AttributeCaptureDefinition (
839839 "PlayerAttributeSet.Health" ,
840840 AttributeCaptureSource . Source ,
841- snapshot : false ) ;
841+ Snapshot : false ) ;
842842
843843 SourceStrength = new AttributeCaptureDefinition (
844844 "PlayerAttributeSet.Strength" ,
845845 AttributeCaptureSource . Source ,
846- snapshot : false ) ;
846+ Snapshot : false ) ;
847847
848848 // Register attributes for capture
849849 AttributesToCapture . Add ( TargetHealth ) ;
@@ -922,7 +922,7 @@ public void OnUpdate(IForgeEntity? target, CueParameters? parameters)
922922 // Logic for updating persistent cues (e.g., adjust fire intensity)
923923 if ( parameters . HasValue )
924924 {
925- Console . WriteLine ( $ "Fire damage cue updated with magnitude : { parameters . Value . Magnitude } ") ;
925+ Console . WriteLine ( $ "Fire damage cue updated with Magnitude : { parameters . Value . Magnitude } ") ;
926926 }
927927 }
928928 }
0 commit comments