Adds a modifier and stats system to manage combat-related attributes. Introduces StatsComponent for storing entity statistics and ModifierManager for applying dynamic modifiers. Recalculates stats based on modifier type and priority. Updates projectile and weapon components to utilize the new stats system.
23 lines
No EOL
350 B
GDScript
23 lines
No EOL
350 B
GDScript
extends Node
|
|
|
|
class_name GlobalVariables
|
|
|
|
const TILE_SIZE = 32
|
|
const ROOM_WIDTH = 20
|
|
const ROOM_HEIGHT = 16
|
|
const GRID_WIDTH = 4
|
|
const GRID_HEIGHT = 4
|
|
const MAP_EMPTY = 0
|
|
const MAP_PATH = 1
|
|
const MAP_START = 2
|
|
const MAP_FINISH = 4
|
|
const MAP_UP_CELL = 3
|
|
|
|
const ELEMENTS = {
|
|
"NONE": 0,
|
|
"FIRE": 1,
|
|
"WATER": 2,
|
|
"EARTH": 3,
|
|
"AIR": 4,
|
|
"THUNDER": 5,
|
|
} |