Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- //Critical Hit simulation
- public function testCriticalHit():void
- {
- var attackDatas:AttackData;
- var testNumber:int = 2;
- testOutput[testNumber] = new Array();
- var imaginaryMonster:Monster = new Monster();
- imaginaryMonster.setup(1);
- imaginaryMonster.maxHealth = new BigNumber(100000);
- imaginaryMonster.restore();
- var imaginaryWorld:World = new World();
- imaginaryWorld.addMonsterToWorld(imaginaryMonster);
- trace("current monster HP " + imaginaryMonster.health);
- //for ( var i:int = 0 ; i < 10000 ; i++)
- //{
- //CurrentCharacter.instance.basicAttack();
- //}
- //trace("after Simulation, Monster Health " + imaginaryMonster.health);
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement