User Tools

Site Tools


mr:soul_shard_item

Soul Shard Item - Code References

Java Classes

Java Class Content

package com.nyrds.pixeldungeon.items.material;
 
import com.watabou.pixeldungeon.items.Item;
import com.watabou.pixeldungeon.sprites.Glowing;
 
public class SoulShard extends Item {
	public SoulShard() {
		stackable = true;
		imageFile = "items/materials.png";
		image = 0;
		identify();
	}
 
	@Override
	public Glowing glowing() {
		return new Glowing((int) (Math.random() * 0xaaaaff));
	}
}

Key Properties from Code

  • Stackable: true (can be stacked in inventory)
  • Image File: items/materials.png (sprite sheet)
  • Image Index: 0 (first sprite in the sheet)
  • Auto-identified: identify() called in constructor
  • Glowing Effect: Random blue-ish glow (0xaaaaff color range)

JSON Configuration

No dedicated JSON configuration file found. The item uses default Item behavior.

String Resources

<string name="SoulShard_Name">soul shard</string>
<string name="SoulShard_Info">It's a shard taken from the remains of the Jar of Souls. It shimmers with mysterious power, maybe there is someone who might be interested in something like this.</string>
<string name="SoulShard_Gender">masculine</string>

Lua Scripts

This entity is implemented entirely in Java, no Lua script exists.

Sprite References

  • Sprite Sheet: items/materials.png
  • Wiki Image: Soul Shard
  • Sprite Index: 0 (first sprite in materials.png)
mr/soul_shard_item.txt · Last modified: by 127.0.0.1