source: lost-haven/main/ItemDrop.java@ a49176d

Last change on this file since a49176d 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
RevLine 
[8edd04e]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.