Items - HopsonCommunity/CommunityCrawler GitHub Wiki
Item
Items is an abstract class.
All of the items that inherit from this class should have these mutual attributes:
id
String. The unique ID of the item.
name
String. The name of the item.
description
String. The description shown on the tooltip when hovering over the item with the mouse.
texture
Image. The texture of the item.
Weapon
Weapon is an abstract class that inherits from Item.
All of the items that inherit from this class should have these mutual attributes:
minDmg
maxDmg
critMultiplier
cooldown
Ranged
Ranged is a class that inherits from Weapon.
The Ranged class has the following unique attributes:
bulletNum
spread
Melee
The Melee class has the following unique attributes:
range
Common
Each item type shares a type attribute, which is a string representing the type of item it is.