Advertisement
Guest User

Untitled

a guest
Mar 23rd, 2017
78
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1.         //Critical Hit simulation
  2.         public function testCriticalHit():void
  3.         {
  4.             var attackDatas:AttackData;
  5.             var testNumber:int = 2;
  6.             testOutput[testNumber] = new Array();
  7.            
  8.             var imaginaryMonster:Monster = new Monster();
  9.             imaginaryMonster.setup(1);
  10.             imaginaryMonster.maxHealth = new BigNumber(100000);
  11.             imaginaryMonster.restore();
  12.            
  13.             var imaginaryWorld:World = new World();
  14.             imaginaryWorld.addMonsterToWorld(imaginaryMonster);
  15.            
  16.             trace("current monster HP " + imaginaryMonster.health);
  17.            
  18.             //for ( var i:int = 0 ; i < 10000 ; i++)
  19.             //{
  20.                 //CurrentCharacter.instance.basicAttack();
  21.             //}
  22.            
  23.             //trace("after Simulation, Monster Health " + imaginaryMonster.health);
  24.         }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement