fix: rename shadowed 'visible' param, prefix unused 'impulse' with underscore
This commit is contained in:
@@ -192,10 +192,10 @@ func apply_skin(skin: PlayerSkin) -> void:
|
||||
skin_model = null
|
||||
_apply_color(skin.color_tint)
|
||||
|
||||
func _set_procedural_visible(visible: bool) -> void:
|
||||
func _set_procedural_visible(is_visible: bool) -> void:
|
||||
for part in [torso, head, upper_arm_l, lower_arm_l, upper_arm_r, lower_arm_r, thigh_l, calf_l, thigh_r, calf_r]:
|
||||
if part:
|
||||
part.visible = visible
|
||||
part.visible = is_visible
|
||||
|
||||
func _apply_color(col: Color) -> void:
|
||||
var mat = StandardMaterial3D.new()
|
||||
|
||||
@@ -33,7 +33,7 @@ func _ready() -> void:
|
||||
dps_label.modulate = Color(1, 0.8, 0)
|
||||
add_child(dps_label)
|
||||
|
||||
func take_damage(amount: float, hit_position: Vector3, source: Node = null, impulse: Vector3 = Vector3.ZERO) -> void:
|
||||
func take_damage(amount: float, hit_position: Vector3, source: Node = null, _impulse: Vector3 = Vector3.ZERO) -> void:
|
||||
var now = Time.get_ticks_msec() / 1000.0
|
||||
damage_history.append({"time": now, "amount": amount})
|
||||
|
||||
|
||||
Reference in New Issue
Block a user