source: lost-haven/main/ItemDrop.java

Last change on this file was 8edd04e, checked in by Dmitry Portnoy <dmitry.portnoy@…>, 4 years ago

Make the decompiled game code compile successfully

  • Property mode set to 100644
File size: 444 bytes
Line 
1package main;
2
3public class ItemDrop {
4
5 private Item item;
6 private double dropChance;
7
8 public ItemDrop(Item item, double dropChance) {
9 this.item = item;
10 this.dropChance = dropChance;
11 }
12
13 public ItemDrop(Item item, int percentDrop) {
14 this.item = item;
15 this.dropChance = percentDrop / 100.0D;
16 }
17
18 public Item getItem() {
19 return this.item;
20 }
21
22 public double getDropChance() {
23 return this.dropChance;
24 }
25}
Note: See TracBrowser for help on using the repository browser.