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
Constructors -
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:ScriptExecutes this script.- Specified by:
executein interfaceScript- Overrides:
executein classScriptImpl- Parameters:
admin- the admin who load it ornullon server start.args- the arguments the admin specified ornullon server start.
-