fix borg limbs and make borg legs good (#916)

* fix borg limbs

* 25% speed boost

* add container automatically i hope

---------

Co-authored-by: deltanedas <@deltanedas:kde.org>
This commit is contained in:
deltanedas 2024-11-23 17:28:39 +00:00 committed by deltanedas
parent c8ad050c69
commit b05f6a3708
2 changed files with 34 additions and 2 deletions

View File

@ -50,6 +50,12 @@ public partial class SharedBodySystem
_slots.AddItemSlot(ent, ent.Comp.ContainerName, ent.Comp.ItemInsertionSlot);
Dirty(ent, ent.Comp);
}
// Shitmed Change Start
foreach (var connection in ent.Comp.Children.Keys)
{
Containers.EnsureContainer<ContainerSlot>(ent, GetPartSlotContainerId(connection));
}
// Shitmed Change End
}
private void OnBodyPartRemove(Entity<BodyPartComponent> ent, ref ComponentRemove args)

View File

@ -43,6 +43,11 @@
- type: BodyPart
partType: Arm # Shitmed Change
symmetry: Left
toolName: "a left arm" # Shitmed Change
children: # Shitmed Change
left hand:
id: "left hand"
type: Hand
- type: Sprite
state: borg_l_arm
- type: Icon
@ -61,6 +66,11 @@
- type: BodyPart
partType: Arm # Shitmed Change
symmetry: Right
toolName: "a right arm" # Shitmed Change
children: # Shitmed Change
right hand:
id: "right hand"
type: Hand
- type: Sprite
state: borg_r_arm
- type: Icon
@ -79,6 +89,11 @@
- type: BodyPart
partType: Leg
symmetry: Left
toolName: "a left leg" # Shitmed Change
children: # Shitmed Change
left foot:
id: "left foot"
type: Foot
- type: Sprite
state: borg_l_leg
- type: Icon
@ -88,7 +103,9 @@
- Trash
- BorgLeg
- BorgLLeg
- type: MovementBodyPart # Shitmed Change
- type: MovementBodyPart # Shitmed Change: 25% speed boost
walkSpeed: 3.125
sprintSpeed: 5.625
- type: entity
id: RightLegBorg
@ -98,6 +115,11 @@
- type: BodyPart
partType: Leg
symmetry: Right
toolName: "a right leg" # Shitmed Change
children: # Shitmed Change
right foot:
id: "right foot"
type: Foot
- type: Sprite
state: borg_r_leg
- type: Icon
@ -107,7 +129,9 @@
- Trash
- BorgLeg
- BorgRLeg
- type: MovementBodyPart # Shitmed Change
- type: MovementBodyPart # Shitmed Change: 25% speed boost
walkSpeed: 3.125
sprintSpeed: 5.625
- type: entity
id: LightHeadBorg
@ -116,6 +140,7 @@
components:
- type: BodyPart
partType: Head
toolName: "a head" # Shitmed Change
- type: Sprite
state: borg_head
- type: Icon
@ -132,6 +157,7 @@
components:
- type: BodyPart
partType: Torso
toolName: "a torso" # Shitmed Change
- type: Sprite
state: borg_chest
- type: Icon