Skip to content

Commit

Permalink
Merge remote-tracking branch 'upstream/master' into upstream
Browse files Browse the repository at this point in the history
  • Loading branch information
Doublechest committed Aug 28, 2024
2 parents 66bf8c6 + c0c534b commit dab67fa
Show file tree
Hide file tree
Showing 23 changed files with 83 additions and 25 deletions.
16 changes: 7 additions & 9 deletions Content.Shared/Clothing/ClothingSpeedModifierSystem.cs
Original file line number Diff line number Diff line change
@@ -1,10 +1,8 @@
using Content.Shared.Clothing.Components;
using Content.Shared.Examine;
using Content.Shared.Inventory;
using Content.Shared.Item.ItemToggle;
using Content.Shared.Item.ItemToggle.Components;
using Content.Shared.Movement.Systems;
using Content.Shared.PowerCell;
using Content.Shared.Verbs;
using Robust.Shared.Containers;
using Robust.Shared.GameStates;
Expand Down Expand Up @@ -73,34 +71,34 @@ private void OnClothingVerbExamine(EntityUid uid, ClothingSpeedModifierComponent

var msg = new FormattedMessage();

if (walkModifierPercentage == sprintModifierPercentage)
if (MathHelper.CloseTo(walkModifierPercentage, sprintModifierPercentage, 0.5f))
{
if (walkModifierPercentage < 0.0f)
msg.AddMarkup(Loc.GetString("clothing-speed-increase-equal-examine", ("walkSpeed", (int) MathF.Abs(walkModifierPercentage)), ("runSpeed", (int) MathF.Abs(sprintModifierPercentage))));
msg.AddMarkupOrThrow(Loc.GetString("clothing-speed-increase-equal-examine", ("walkSpeed", (int) MathF.Abs(walkModifierPercentage)), ("runSpeed", (int) MathF.Abs(sprintModifierPercentage))));
else
msg.AddMarkup(Loc.GetString("clothing-speed-decrease-equal-examine", ("walkSpeed", (int) walkModifierPercentage), ("runSpeed", (int) sprintModifierPercentage)));
msg.AddMarkupOrThrow(Loc.GetString("clothing-speed-decrease-equal-examine", ("walkSpeed", (int) walkModifierPercentage), ("runSpeed", (int) sprintModifierPercentage)));
}
else
{
if (sprintModifierPercentage < 0.0f)
{
msg.AddMarkup(Loc.GetString("clothing-speed-increase-run-examine", ("runSpeed", (int) MathF.Abs(sprintModifierPercentage))));
msg.AddMarkupOrThrow(Loc.GetString("clothing-speed-increase-run-examine", ("runSpeed", (int) MathF.Abs(sprintModifierPercentage))));
}
else if (sprintModifierPercentage > 0.0f)
{
msg.AddMarkup(Loc.GetString("clothing-speed-decrease-run-examine", ("runSpeed", (int) sprintModifierPercentage)));
msg.AddMarkupOrThrow(Loc.GetString("clothing-speed-decrease-run-examine", ("runSpeed", (int) sprintModifierPercentage)));
}
if (walkModifierPercentage != 0.0f && sprintModifierPercentage != 0.0f)
{
msg.PushNewline();
}
if (walkModifierPercentage < 0.0f)
{
msg.AddMarkup(Loc.GetString("clothing-speed-increase-walk-examine", ("walkSpeed", (int) MathF.Abs(walkModifierPercentage))));
msg.AddMarkupOrThrow(Loc.GetString("clothing-speed-increase-walk-examine", ("walkSpeed", (int) MathF.Abs(walkModifierPercentage))));
}
else if (walkModifierPercentage > 0.0f)
{
msg.AddMarkup(Loc.GetString("clothing-speed-decrease-walk-examine", ("walkSpeed", (int) walkModifierPercentage)));
msg.AddMarkupOrThrow(Loc.GetString("clothing-speed-decrease-walk-examine", ("walkSpeed", (int) walkModifierPercentage)));
}
}

Expand Down
14 changes: 7 additions & 7 deletions Resources/Changelog/Changelog.yml
Original file line number Diff line number Diff line change
@@ -1,11 +1,4 @@
Entries:
- author: Vermidia
changes:
- message: allies callable by radio in the uplink now have unique icons
type: Tweak
id: 6734
time: '2024-06-14T21:44:23.0000000+00:00'
url: https://github.com/space-wizards/space-station-14/pull/28954
- author: K-Dynamic
changes:
- message: Added witch robes and witch hat to the AutoDrobe.
Expand Down Expand Up @@ -3860,3 +3853,10 @@
id: 7233
time: '2024-08-28T08:18:51.0000000+00:00'
url: https://github.com/space-wizards/space-station-14/pull/31565
- author: lzk228
changes:
- message: Added black suspenders for mime.
type: Add
id: 7234
time: '2024-08-28T09:43:31.0000000+00:00'
url: https://github.com/space-wizards/space-station-14/pull/29055
1 change: 1 addition & 0 deletions Resources/Locale/en-US/preferences/loadout-groups.ftl
Original file line number Diff line number Diff line change
Expand Up @@ -80,6 +80,7 @@ loadout-group-mime-mask = Mime mask
loadout-group-mime-jumpsuit = Mime jumpsuit
loadout-group-mime-backpack = Mime backpack
loadout-group-mime-outerclothing = Mime outer clothing
loadout-group-mime-belt = Mime belt
loadout-group-musician-jumpsuit = Musician jumpsuit
loadout-group-musician-outerclothing = Musician outer clothing
Expand Down
3 changes: 2 additions & 1 deletion Resources/Prototypes/Catalog/Fills/Crates/service.yml
Original file line number Diff line number Diff line change
Expand Up @@ -91,7 +91,8 @@
- id: ClothingUniformJumpskirtOldDress
- id: BikeHorn
- id: ClownRecorder
- id: ClothingBeltSuspenders
- id: ClothingBeltSuspendersRed
- id: ClothingBeltSuspendersBlack

- type: entity
id: CrateServiceCustomSmokable
Expand Down
18 changes: 14 additions & 4 deletions Resources/Prototypes/Entities/Clothing/Belt/belts.yml
Original file line number Diff line number Diff line change
Expand Up @@ -672,20 +672,30 @@

- type: entity
parent: ClothingBeltBase
id: ClothingBeltSuspenders
name: suspenders
id: ClothingBeltSuspendersRed
name: red suspenders
description: For holding your pants up.
components:
- type: Tag
tags:
- MimeBelt
- type: Sprite
sprite: Clothing/Belt/suspenders.rsi
sprite: Clothing/Belt/suspenders_red.rsi
state: icon
- type: Clothing
sprite: Clothing/Belt/suspenders.rsi
sprite: Clothing/Belt/suspenders_red.rsi
quickEquip: true

- type: entity
parent: ClothingBeltSuspendersRed
id: ClothingBeltSuspendersBlack
name: black suspenders
components:
- type: Sprite
sprite: Clothing/Belt/suspenders_black.rsi
- type: Clothing
sprite: Clothing/Belt/suspenders_black.rsi

- type: entity
parent: ClothingBeltStorageBase
id: ClothingBeltWand
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -39,7 +39,8 @@
- id: ClothingMaskRaven
- id: ClothingMaskJackal
- id: ClothingMaskBat
- id: ClothingBeltSuspenders
- id: ClothingBeltSuspendersRed
- id: ClothingBeltSuspendersBlack
- id: ClothingEyesEyepatch
- id: ClothingEyesGlasses
- id: ClothingHandsGlovesLatex
Expand Down
11 changes: 11 additions & 0 deletions Resources/Prototypes/Loadouts/Jobs/Civilian/mime.yml
Original file line number Diff line number Diff line change
Expand Up @@ -62,3 +62,14 @@
id: MimeWintercoat
equipment:
outerClothing: ClothingOuterWinterMime

# Belt
- type: loadout
id: MimeSuspendersRed
equipment:
belt: ClothingBeltSuspendersRed

- type: loadout
id: MimeSuspendersBlack
equipment:
belt: ClothingBeltSuspendersBlack
7 changes: 7 additions & 0 deletions Resources/Prototypes/Loadouts/loadout_groups.yml
Original file line number Diff line number Diff line change
Expand Up @@ -658,6 +658,13 @@
loadouts:
- MimeWintercoat

- type: loadoutGroup
id: MimeBelt
name: loadout-group-mime-belt
loadouts:
- MimeSuspendersRed
- MimeSuspendersBlack

- type: loadoutGroup
id: SurvivalMime
name: loadout-group-survival-mime
Expand Down
1 change: 1 addition & 0 deletions Resources/Prototypes/Loadouts/role_loadouts.yml
Original file line number Diff line number Diff line change
Expand Up @@ -173,6 +173,7 @@
- MimeJumpsuit
- MimeBackpack
- MimeOuterClothing
- MimeBelt
- Glasses
- SurvivalMime
- Trinkets
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,7 @@
- tag: MimeBelt
name: suspenders
icon:
sprite: Clothing/Belt/suspenders.rsi
sprite: Clothing/Belt/suspenders_red.rsi
state: icon
doAfter: 1
- node: mimeHardsuit
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@
name: mime edition happy honk meal
- tag: MimeBelt
icon:
sprite: Clothing/Belt/suspenders.rsi
sprite: Clothing/Belt/suspenders_red.rsi
state: icon
name: suspenders
doAfter: 2
Expand Down
1 change: 0 additions & 1 deletion Resources/Prototypes/Roles/Jobs/Civilian/mime.yml
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,6 @@
- type: startingGear
id: MimeGear
equipment:
belt: ClothingBeltSuspenders
gloves: ClothingHandsGlovesColorWhite
shoes: ClothingShoesColorWhite
pocket1: CrayonMime
Expand Down
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
26 changes: 26 additions & 0 deletions Resources/Textures/Clothing/Belt/suspenders_black.rsi/meta.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,26 @@
{
"version": 1,
"license": "CC-BY-SA-3.0",
"copyright": "Taken from tgstation at commit https://github.com/tgstation/tgstation/commit/c838ba21dae97db345e0113f99596decd1d66039 and resprited",
"size": {
"x": 32,
"y": 32
},
"states": [
{
"name": "icon"
},
{
"name": "equipped-BELT",
"directions": 4
},
{
"name": "inhand-left",
"directions": 4
},
{
"name": "inhand-right",
"directions": 4
}
]
}
3 changes: 3 additions & 0 deletions Resources/migration.yml
Original file line number Diff line number Diff line change
Expand Up @@ -404,5 +404,8 @@ FoodMeatHawaiianKebab: FoodKebabSkewer
FoodMeatKebab: FoodKebabSkewer
FoodMeatFiestaKebab: FoodKebabSkewer

#2024-08-14
ClothingBeltSuspenders: ClothingBeltSuspendersRed

# 2024-08-19
ClothingNeckShockCollar: ClothingBackpackElectropack

0 comments on commit dab67fa

Please sign in to comment.