X-Git-Url: https://ecere.com/cgi-bin/gitweb.cgi?a=blobdiff_plain;f=installer%2Fcoursework%2FChapter%206%20-%20Classes%2C%20Methods%20and%20Instances%2FLab6%2Flab6.ec;h=f55ca3b8e722535d32406919da3fc3d8177bef60;hb=8b145f477aebdf86e177b8646d18f5e42cdcd3ec;hp=9002aa6d0d17facf39818408e607e2717bbf3da8;hpb=200bf956d55c9b9757152aa8347fef53f71b6d6b;p=sdk diff --git a/installer/coursework/Chapter 6 - Classes, Methods and Instances/Lab6/lab6.ec b/installer/coursework/Chapter 6 - Classes, Methods and Instances/Lab6/lab6.ec index 9002aa6..f55ca3b 100644 --- a/installer/coursework/Chapter 6 - Classes, Methods and Instances/Lab6/lab6.ec +++ b/installer/coursework/Chapter 6 - Classes, Methods and Instances/Lab6/lab6.ec @@ -76,7 +76,7 @@ public: void Attack(Creature opponent) { Weapon weapon = (Weapon)(equipment ? equipment[EquipmentSlot::rightHand] : null); - int d, r, o; + int d, o; if(!weapon) weapon = bareHand; o = GetRandom(0, opponent.dexterity); d = GetRandom(0, dexterity - weapon.difficulty);