Exemplo n.º 1
0
 private void updateTime(Dalamud.Game.ClientState.Actors.Types.PlayerCharacter pc)
 {
     if (pluginInterface.ClientState.JobGauges.Get <BLMGauge>().InUmbralIce() && pc.CurrentMp - lastMp > 500)
     {
         if (mpTickTimestamp == 0)
         {
             mpTickTimestamp = DateTimeOffset.UtcNow.ToUnixTimeMilliseconds();
         }
         else if ((DateTimeOffset.UtcNow.ToUnixTimeMilliseconds() - mpTickTimestamp) % 3000 > 100)
         {
             mpTickTimestamp = DateTimeOffset.UtcNow.ToUnixTimeMilliseconds();
         }
     }
     lastMp = pc.CurrentMp;
 }
Exemplo n.º 2
0
 public PartyMem(Dalamud.Game.ClientState.Actors.Types.PlayerCharacter pc, IntPtr intptr)
 {
     PC           = pc;
     NamePlatePtr = intptr;
 }