Adds an in-game debug menu that displays performance metrics (FPS, frame times) and hardware/software information. The menu can be toggled using the F3 key (or a custom input binding). It has different display styles, ranging from a compact FPS display to a detailed view with graphs and system information.
13 lines
No EOL
486 B
GDScript
13 lines
No EOL
486 B
GDScript
class_name FireRateAdditive extends Modifier
|
|
|
|
@export var fire_rate_bonus: float = 1.0 # +1 shot per second
|
|
|
|
func _init():
|
|
id = "fire_rate_additive"
|
|
display_name = "Rapid Fire"
|
|
description = "Increases fire rate by %0.1f shots per second" % fire_rate_bonus
|
|
modifier_type = ModifierType.ADDITIVE
|
|
|
|
func apply_stats_modification(final_stats: Dictionary, _base_stats: Dictionary) -> void:
|
|
if final_stats.has("fire_rate"):
|
|
final_stats.fire_rate += fire_rate_bonus |