Advertisement
Guest User

UPMod Bug Fixes #6

a guest
Jul 16th, 2017
129
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
C# 1.01 KB | None | 0 0
  1. [ModifiesType]
  2. public class mod_ConsumePotion : AI.Achievement.ConsumePotion
  3. {
  4.     public int ConsumeAnimation
  5.     {
  6.         [ModifiesMember]
  7.         get
  8.         {
  9.             // PATCH START:
  10.             // RELATED BUGS: #6
  11.             // NOTES:
  12.             // - drinking potions occasionaly fizzles (unrelated to interruption); the workaround is to make drinking faster
  13.             // - default potion consumption animation duration is 2.333333s (although if you will query this.m_animation.GetLengthOfCurrentAnim early on, the result will be 1.333333s)
  14.             // - we will increase it's speed multiplier, in order to make the animation 1s long
  15.             float animationDuration = 2.333333f; // this.m_animation.GetLengthOfCurrentAnim();
  16.             SetSpeedMultiplier(animationDuration);
  17.             // PATCH END
  18.  
  19.             return this.m_consumeAnimation;
  20.         }
  21.         [ModifiesMember]
  22.         set
  23.         {
  24.             this.m_consumeAnimation = value;
  25.         }
  26.         // EDIT END
  27.     }
  28. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement