jarcane / handhRL

A simple roguelike based on the Hulks and Horrors tabletop RPG written with Python 2.7 and libtcod
GNU General Public License v3.0
11 stars 1 forks source link

Guns should be ranged #30

Closed jarcane closed 10 years ago

jarcane commented 10 years ago

Weapons are now done, though we need to implement an additional class that allows for ranged attacks when equipped with a gun.

I think we can add an additional sub function or class to the Equipment class that will use get_target_under_mouse to aim at a thing and shoot it. We should also make sure this passes the turn so that the player can't just keep shooting until it's dead.

Possibly we could attach an ammo counter to this new class too, initialized with the item on generation.