diff options
author | tpart <tpart120@proton.me> | 2024-09-30 23:22:31 +0200 |
---|---|---|
committer | tpart <tpart120@proton.me> | 2024-09-30 23:22:31 +0200 |
commit | 474ec9345b4a7dd79745b5fbdcb952ee7e4236bb (patch) | |
tree | 72a32ae5e0424c04b7375936a0db3a8548c90044 /client | |
parent | 1779deedea4cb68c7798f6ee8b4121b33526e782 (diff) | |
download | hurrycurry-474ec9345b4a7dd79745b5fbdcb952ee7e4236bb.tar hurrycurry-474ec9345b4a7dd79745b5fbdcb952ee7e4236bb.tar.bz2 hurrycurry-474ec9345b4a7dd79745b5fbdcb952ee7e4236bb.tar.zst |
Fix incorrect customer style; Fix incorrect robot style
Diffstat (limited to 'client')
-rw-r--r-- | client/player/character/character.gd | 21 | ||||
-rw-r--r-- | client/player/character/robot/body.res | bin | 30064 -> 0 bytes |
2 files changed, 6 insertions, 15 deletions
diff --git a/client/player/character/character.gd b/client/player/character/character.gd index 65275549..cd41e7ff 100644 --- a/client/player/character/character.gd +++ b/client/player/character/character.gd @@ -19,7 +19,6 @@ class_name Character const DEFAULT_MAIN_MESH = preload("res://player/character/default/main.res") const CUSTOMER_MAIN_MESH = preload("res://player/character/customer_body.res") -const ROBOT_MAIN_MESH = preload("res://player/character/robot/body.res") const WALK_ANIM_STRENGTH := 0.05 const WALK_ANIM_SPEED:= 15.0 @@ -105,22 +104,14 @@ func _process(delta): func set_style(id: int): var p = ParsedStyle.new(id) - set_customer(p.customer) - set_robot(p.robot) + main.mesh = CUSTOMER_MAIN_MESH if p.customer else DEFAULT_MAIN_MESH + if p.customer: + tie.queue_free() + head_robot.visible = p.robot + head_default.visible = not p.robot for h in hairstyles: h.hide() hairstyles[p.hair].show() - $Main.get_active_material(0).albedo_color = colors[p.color] - -func set_customer(b: bool): - if b: - main.mesh = CUSTOMER_MAIN_MESH - tie.queue_free() - else: pass # TODO - -func set_robot(b: bool): - head_robot.visible = b - head_default.visible = not b - main.mesh = ROBOT_MAIN_MESH if b else DEFAULT_MAIN_MESH + $Main.get_active_material(0).albedo_color = Color(0.349, 0.349, 0.349) if p.robot else colors[p.color] func play_animation(name_: String): current_animation = name_ diff --git a/client/player/character/robot/body.res b/client/player/character/robot/body.res Binary files differdeleted file mode 100644 index b82147d3..00000000 --- a/client/player/character/robot/body.res +++ /dev/null |