Add item on item decoder; minor mining changes.

This commit is contained in:
Major-
2013-11-03 05:32:54 +00:00
parent 252b7677ca
commit 42d42af0c5
18 changed files with 208 additions and 30 deletions
+2 -4
View File
@@ -1,5 +1,3 @@
MAX_PLAYERS = 2000 # TODO: obtain from a Java class
# Calculates the number of pulses it takes for an ore to respawn based on the
# number of players currently online.
#
@@ -14,5 +12,5 @@ MAX_PLAYERS = 2000 # TODO: obtain from a Java class
# function. The rest of the mining plugin rounds the base respawn times in
# pulses down where appropriate.
def respawn_pulses(base, players)
base - players * base / (MAX_PLAYERS * 2)
end
base - players * base / (World.world.player_repository.size * 2)
end