Skip to content

Commit 5fade91

Browse files
committed
Document unusual behavior with equipment droprates
1 parent 2eae885 commit 5fade91

File tree

1 file changed

+4
-2
lines changed

1 file changed

+4
-2
lines changed

src/main/java/com/laytonsmith/core/functions/MobManagement.java

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -880,7 +880,8 @@ public String getName() {
880880
@Override
881881
public String docs() {
882882
return "array {entityUUID} Returns an associative array of the drop rate for each equipment slot."
883-
+ " If the rate is 0, the equipment will not drop. If it is 1, it is guaranteed to drop.";
883+
+ " If the rate is 0.0, the equipment will not drop. A rate of 1.0 will guarantee a drop"
884+
+ " if the entity is killed by a player. A rate above 1.0 will guarantee a drop by any cause.";
884885
}
885886

886887
@Override
@@ -928,7 +929,8 @@ public String getName() {
928929
public String docs() {
929930
return "void {entityUUID, array} Sets the drop chances for each equipment slot on a mob,"
930931
+ " but does not work on players. Passing null instead of an array will automatically"
931-
+ " set all rates to 0, which will cause nothing to drop. A rate of 1 will guarantee a drop.";
932+
+ " set all rates to 0.0, which will cause nothing to drop. A rate of 1.0 will guarantee a drop"
933+
+ " if the entity is killed by a player. A rate above 1.0 will guarantee a drop by any cause.";
932934
}
933935

934936
@Override

0 commit comments

Comments
 (0)