コード例 #1
0
 // IsLikeKind checks if another incumbent effect is equal to this effect
 // Can use class type, key, or whatever conditions you need to test equivalency
 protected override bool IsLikeKind(IncumbentEffect other)
 {
     return(other is MageLight);
 }
コード例 #2
0
 protected override bool IsLikeKind(IncumbentEffect other)
 {
     return(other is PassiveSpecialsEffect);
 }
コード例 #3
0
 protected override bool IsLikeKind(IncumbentEffect other)
 {
     return(other is DetectMagic);
 }
コード例 #4
0
 protected override bool IsLikeKind(IncumbentEffect other)
 {
     return(other is ChameleonNormal);
 }
コード例 #5
0
 protected override void AddState(IncumbentEffect incumbent)
 {
     // Prompt from incumbent as it has the position data for teleport
     (incumbent as Teleport).PromptPlayer();
 }
コード例 #6
0
 protected abstract bool IsLikeKind(IncumbentEffect other);
コード例 #7
0
 protected override bool IsLikeKind(IncumbentEffect other)
 {
     return(other is InvisibilityNormal);
 }
コード例 #8
0
 protected override bool IsLikeKind(IncumbentEffect other)
 {
     return((other is VampiricFortifyEffect && (other as VampiricFortifyEffect).fortifyStat == fortifyStat) ? true : false);
 }
コード例 #9
0
 protected override bool IsLikeKind(IncumbentEffect other)
 {
     return(other is DrainEffect && (other as DrainEffect).drainStat == drainStat);
 }
コード例 #10
0
 protected override bool IsLikeKind(IncumbentEffect other)
 {
     return(other is DetectTreasure);
 }
コード例 #11
0
 protected override bool IsLikeKind(IncumbentEffect other)
 {
     return(other is Slowfall);
 }
コード例 #12
0
 protected override bool IsLikeKind(IncumbentEffect other)
 {
     return(other is ComprehendLanguages);
 }
コード例 #13
0
 protected override bool IsLikeKind(IncumbentEffect other)
 {
     return(other is WaterBreathing);
 }
コード例 #14
0
 protected override bool IsLikeKind(IncumbentEffect other)
 {
     return(other is Lock);
 }
コード例 #15
0
 protected override bool IsLikeKind(IncumbentEffect other)
 {
     return (other is Regenerate);
 }
コード例 #16
0
 protected override bool IsLikeKind(IncumbentEffect other)
 {
     return((other.Key == Key) ? true : false);
 }
コード例 #17
0
 protected override bool IsLikeKind(IncumbentEffect other)
 {
     return(other is ContinuousDamageSpellPoints);
 }
コード例 #18
0
 protected override void AddState(IncumbentEffect incumbent)
 {
     incumbent.RoundsRemaining += RoundsRemaining;
 }
コード例 #19
0
 protected abstract void AddState(IncumbentEffect incumbent);
コード例 #20
0
 protected override bool IsLikeKind(IncumbentEffect other)
 {
     return(other is Paralyze);
 }
コード例 #21
0
 protected override bool IsLikeKind(IncumbentEffect other)
 {
     return(other is ShadowNormal);
 }
コード例 #22
0
 protected override void AddState(IncumbentEffect incumbent)
 {
     // Stack my rounds onto incumbent
     incumbent.RoundsRemaining += RoundsRemaining;
     ShowPlayerParalyzed();
 }
コード例 #23
0
 protected override bool IsLikeKind(IncumbentEffect other)
 {
     return(other is Teleport);
 }
コード例 #24
0
 protected override void AddState(IncumbentEffect incumbent)
 {
     // The player can catch multiple instances of the same disease in classic, but
     // in Daggerfall Unity host cannot catch same disease twice so do nothing further here.
     // Specific diseases can override and do something else if they require
 }
コード例 #25
0
 protected override bool IsLikeKind(IncumbentEffect other)
 {
     return(other is FreeAction);
 }
コード例 #26
0
 protected override bool IsLikeKind(IncumbentEffect other)
 {
     // Comparing keys should be enough for like-kind test
     // Child classes can override test if they need to
     return(other.Key == Key);
 }
コード例 #27
0
 protected override void AddState(IncumbentEffect incumbent)
 {
     return;
 }
コード例 #28
0
 protected override bool IsLikeKind(IncumbentEffect other)
 {
     return((other is ElementalResistance && (other as ElementalResistance).ElementResisted == ElementResisted) ? true : false);
 }
コード例 #29
0
 protected override void AddState(IncumbentEffect incumbent)
 {
     // Stack my rounds onto incumbent
     incumbent.RoundsRemaining += RoundsRemaining;
 }
コード例 #30
0
 protected override bool IsLikeKind(IncumbentEffect other)
 {
     return(false);
 }