add lantern object and implement light management in player and environment
This commit is contained in:
@@ -194,7 +194,11 @@ public class UI {
|
||||
for(int i = 0; i < entity.inventory.size(); i++) {
|
||||
|
||||
// EQUIP CURSOR
|
||||
if(entity.inventory.get(i) == entity.currentWeapon || entity.inventory.get(i) == entity.currentShield) {
|
||||
if(
|
||||
entity.inventory.get(i) == entity.currentWeapon ||
|
||||
entity.inventory.get(i) == entity.currentShield ||
|
||||
entity.inventory.get(i) == entity.currentLight
|
||||
) {
|
||||
graphics2d.setColor(new Color(240, 190,90));
|
||||
graphics2d.fillRoundRect(slotX, slotY, panel.tileSize, panel.tileSize, 10, 10);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user