X-Git-Url: https://git.ctpug.org.za/?a=blobdiff_plain;f=koperkapel%2Fweapons.py;fp=koperkapel%2Fweapons.py;h=ee83eb816c6eb5c9295db74c05fb78199d506e56;hb=11394cc68ca2f312c93706c52bb02a0e0999b01f;hp=f07caedb2404ae802bc94f280ea839fc9a38f621;hpb=4d41e3b2902e496b7129f44b5b1c6b7a96191ee3;p=koperkapel.git diff --git a/koperkapel/weapons.py b/koperkapel/weapons.py index f07caed..ee83eb8 100644 --- a/koperkapel/weapons.py +++ b/koperkapel/weapons.py @@ -18,6 +18,10 @@ class Weapon: if sound: self.sound = sounds.load(sound) + def play_sound(self): + if self.sound: + self.sound.play() + WEAPONS = [ Weapon("spit", damage=1, bullet_range=2, can_tape=False,