Package games.stendhal.server.script
Class ItemRarity
java.lang.Object
games.stendhal.server.core.scripting.ScriptImpl
games.stendhal.server.script.ItemRarity
- All Implemented Interfaces:
Script
Calculates item rarity metric for every dropped item. The rarity is
1/p
, where p
is the probability of a creature
that would drop (taking in account the creature drop probability)
the item spawning anywhere in an empty world.-
Field Summary
Fields inherited from class games.stendhal.server.core.scripting.ScriptImpl
sandbox
-
Constructor Summary
-
Method Summary
Methods inherited from class games.stendhal.server.core.scripting.ScriptImpl
load, unload
-
Constructor Details
-
ItemRarity
public ItemRarity()
-
-
Method Details
-
execute
Description copied from interface:Script
Executes this script.- Specified by:
execute
in interfaceScript
- Overrides:
execute
in classScriptImpl
- Parameters:
admin
- the admin who load it ornull
on server start.args
- the arguments the admin specified ornull
on server start.
-