New remove method in Inventory

- Document transaction classes
This commit is contained in:
atomicint
2016-02-17 15:16:22 -05:00
parent 7685fb69cf
commit a56ac01203
10 changed files with 260 additions and 19 deletions
+1 -1
View File
@@ -68,7 +68,7 @@ class FishingAction < DistancedAction
fish = options.sample # TODO: it's a ~70/30 chance, not 50/50
if successful_catch(fishing_level, fish.level)
inventory.remove(bait) unless bait.nil?
inventory.remove(bait, 1) unless bait.nil?
inventory.add(fish.id)
name = fish.name