Added party itemShare mode: EQUAL

Slightly cleaner way of handling equal item sharing.
Reset the item share modifier back to base when a player leaves the party
Added a new config file for the itemWeights
Removed the debug messages.
Added Lapis_Ore to itemweights.yml
Drop the item on the ground if the winningPlayer's inventory is full.
Unneccesary
Added a feature which allows the party leader to toggle item share categories....
That should be the rest.
ItemWeights to Item_Weights
This commit is contained in:
NuclearW
2013-02-26 18:46:15 -05:00
parent 18510ba851
commit cbbe436a69
11 changed files with 266 additions and 28 deletions

View File

@ -579,16 +579,23 @@ public class ItemChecks {
case POTATO:
case COCOA:
case NETHER_WARTS:
case APPLE:
case BROWN_MUSHROOM:
case RED_MUSHROOM:
case RED_ROSE:
case YELLOW_FLOWER:
case CACTUS:
case SUGAR_CANE:
//TODO Add the rest
case MELON:
case PUMPKIN:
case WATER_LILY:
case VINE:
return true;
case INK_SACK:
if (is.getData().getData() == DyeColor.BROWN.getDyeData()) {
return true;
}
default:
return false;
}
@ -635,6 +642,7 @@ public class ItemChecks {
case LOG:
case LEAVES:
case SAPLING:
case APPLE:
return true;
default: