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
512 B
GDScript
13 lines
No EOL
512 B
GDScript
class_name FireRateMultiplicative extends Modifier
|
|
|
|
@export var fire_rate_multiplier: float = 1.2 # 20% faster firing
|
|
|
|
func _init():
|
|
id = "fire_rate_multiplicative"
|
|
display_name = "Frenzy"
|
|
description = "Increases fire rate by %d%%" % ((fire_rate_multiplier - 1.0) * 100)
|
|
modifier_type = ModifierType.MULTIPLICATIVE
|
|
|
|
func apply_stats_modification(final_stats: Dictionary, _base_stats: Dictionary) -> void:
|
|
if final_stats.has("fire_rate"):
|
|
final_stats.fire_rate *= fire_rate_multiplier |