- Szczegóły
- 1850
// Certain coins and gems attract lightning.
// The hero should only grab silver coins and blue gems.
while (true) {
var item = hero.findNearestItem();
// A silver coin has a value of 2.
// Collect if item.type is equal to "coin"
// AND item.value is equal to 2.