Compare commits

...

9 Commits

Author SHA1 Message Date
Ed
8890a72257 Reapply "fix #744"
This reverts commit 03ba5a2c3b.
2025-01-13 18:08:20 +03:00
Ed
03ba5a2c3b Revert "fix #744"
This reverts commit b63b0f7e67.
2025-01-13 18:07:52 +03:00
Ed
78d90c30b8 fix #722 2025-01-13 12:51:33 +03:00
Ed
f90b090ed8 fix #741 2025-01-13 12:50:02 +03:00
Ed
255dad8b55 fix #743 2025-01-13 12:47:15 +03:00
Ed
b63b0f7e67 fix #744 2025-01-13 12:46:35 +03:00
Ed
c624194486 fix #747 2025-01-13 12:37:49 +03:00
Ed
2b4af1892d fix #745 2025-01-13 12:26:53 +03:00
Ed
46cfaad625 fix #746 2025-01-13 12:25:07 +03:00
10 changed files with 34 additions and 37 deletions

View File

@@ -135,7 +135,9 @@ public partial class SharedCP14MagicEnergySystem : EntitySystem
if (ent.Comp.MagicAlert == null)
return;
var level = ContentHelpers.RoundToLevels(MathF.Max(0f, (float) ent.Comp.Energy), (float) ent.Comp.MaxEnergy, 11);
var level = ContentHelpers.RoundToLevels(MathF.Max(0f, (float)ent.Comp.Energy),
(float)ent.Comp.MaxEnergy,
_alerts.GetMaxSeverity(ent.Comp.MagicAlert.Value));
_alerts.ShowAlert(ent, ent.Comp.MagicAlert.Value, (short)level);
}
}

View File

@@ -26,7 +26,7 @@ public abstract partial class CP14SharedMagicSystem
var fromItem = action.Comp.SpellStorage is not null;
var doAfterEventArgs = new DoAfterArgs(EntityManager, performer, MathF.Max(delayedEffect.CastDelay, 1f), doAfter, action, used: action.Comp.SpellStorage)
var doAfterEventArgs = new DoAfterArgs(EntityManager, performer, MathF.Max(delayedEffect.CastDelay, 1f), doAfter, action, used: action.Comp.SpellStorage, target: doAfter.Target)
{
BreakOnMove = delayedEffect.BreakOnMove,
BreakOnDamage = delayedEffect.BreakOnDamage,

View File

@@ -72,7 +72,7 @@ public abstract partial class CP14SharedMagicSystem
var fromItem = action.Comp.SpellStorage is not null;
var doAfterEventArgs = new DoAfterArgs(EntityManager, performer, toggleable.CastTime, doAfter, action, used: action.Comp.SpellStorage)
var doAfterEventArgs = new DoAfterArgs(EntityManager, performer, toggleable.CastTime, doAfter, action, used: action.Comp.SpellStorage, target: entityTarget)
{
BreakOnMove = toggleable.BreakOnMove,
BreakOnDamage = toggleable.BreakOnDamage,

View File

@@ -1,6 +1,6 @@
cp14-objective-endtext-progress = Task completed by [bold]{$value}%[/bold]
cp14-objective-endtext-status-success = [color=#26f09c]DONe[/color]
cp14-objective-endtext-status-success = [color=#26f09c]DONE[/color]
cp14-objective-endtext-status-success-a = [color=#f0a926]ALMOST DONE[/color]
cp14-objective-endtext-status-failure = [color=#cc2727]FAILED[/color]

View File

@@ -3,9 +3,9 @@ sharpening-examined-75 = Looks sharply sharpened
sharpening-examined-50 = Looks blunted
sharpening-examined-25 = Looks extremely dull.
damage-weapon-1 = Looks completely intact
damage-weapon-2 = Covered in a couple of scratches.
damageable-weapon-3 = Looks worn.
damageable-weapon-4 = It's about to break.
cp14-damageable-weapon-1 = Looks completely intact
cp14-damageable-weapon-2 = Covered in a couple of scratches
cp14-damageable-weapon-3 = Looks worn
cp14-damageable-weapon-4 = It's about to break
sharpening-ready = Perfectly sharpened

View File

@@ -3,9 +3,9 @@ sharpening-examined-75 = Выглядит остро заточенным
sharpening-examined-50 = Выглядит затупившимся
sharpening-examined-25 = Выглядит крайне сильно затупившимся
damageable-weapon-1 = Выглядит полностью целым
damageable-weapon-2 = Покрыт парой царапин
damageable-weapon-3 = Выглядит изношенным
damageable-weapon-4 = Он вот-вот сломается
cp14-damageable-weapon-1 = Выглядит полностью целым
cp14-damageable-weapon-2 = Покрыт парой царапин
cp14-damageable-weapon-3 = Выглядит изношенным
cp14-damageable-weapon-4 = Он вот-вот сломается
sharpening-ready = Идеально заточен

View File

@@ -1,7 +1,7 @@
- type: examinableDamage
id: CP14WeaponMessages
messages:
- damageable-weapon-1
- damageable-weapon-2
- damageable-weapon-3
- damageable-weapon-4
- cp14-damageable-weapon-1
- cp14-damageable-weapon-2
- cp14-damageable-weapon-3
- cp14-damageable-weapon-4

View File

@@ -24,19 +24,6 @@
interfaces:
enum.CP14WorkbenchUiKey.Key:
type: CP14WorkbenchBoundUserInterface
- type: entity
parent:
- CP14BaseWorkbench
- CP14BaseFlammable
id: CP14Workbench
name: workbench
description: Table for the production of various basic tools.
components:
- type: Sprite
state: workbench
- type: Icon
state: workbench
- type: Damageable
damageContainer: Inorganic
damageModifierSet: Wood
@@ -66,6 +53,19 @@
CP14WoodenPlanks1:
min: 1
max: 2
- type: entity
parent:
- CP14BaseWorkbench
- CP14BaseFlammable
id: CP14Workbench
name: workbench
description: Table for the production of various basic tools.
components:
- type: Sprite
state: workbench
- type: Icon
state: workbench
- type: FootstepModifier
footstepSoundCollection:
collection: FootstepWood

View File

@@ -3,7 +3,7 @@
parent:
- CP14BaseWorkbench
name: melting furnace
description: A red-hot stone cosntruction that allows ores to be smelted into pure metal
description: A red-hot stone construction that allows ores to be smelted into pure metal
components:
- type: Sprite
snapCardinals: false

View File

@@ -34,11 +34,6 @@
sprite:
sprite: /Textures/_CP14/Effects/weather.rsi
state: snowfall_light
sound:
path: /Audio/Effects/Weather/snowstorm_weak.ogg
params:
loop: true
volume: -6
- type: weather
id: CP14SnowMedium
@@ -46,10 +41,10 @@
sprite: /Textures/_CP14/Effects/weather.rsi
state: snowfall_med
sound:
path: /Audio/Effects/Weather/snowstorm_weak.ogg
path: /Audio/Effects/Weather/snowstorm.ogg
params:
loop: true
volume: -6
volume: -18
- type: weather
id: CP14SnowHeavy