Починка щита и его здоровье (#3082)

This commit is contained in:
ReWAFFlution 2025-09-07 12:06:53 +03:00 committed by GitHub
parent b1026cfcf6
commit b79ee83a21
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
4 changed files with 102 additions and 7 deletions

View file

@ -0,0 +1,24 @@
health-examinable-shield-none = There is no obvious damage to be seen.
health-examinable-shield-Blunt-8 = [color=orange]Shield has minor dents.[/color]
health-examinable-shield-Blunt-15 = [color=red]Shield has several visible dents.[/color]
health-examinable-shield-Blunt-30 = [color=crimson]Shield is badly deformed from impacts![/color]
health-examinable-shield-Blunt-50 = [color=crimson]Shield is nearly shattered![/color]
health-examinable-shield-Slash-8 = [color=orange]Shield has light scratches.[/color]
health-examinable-shield-Slash-15 = [color=red]Shield is visibly cut in several places.[/color]
health-examinable-shield-Slash-30 = [color=crimson]Shield is deeply gashed and cracked![/color]
health-examinable-shield-Slash-50 = [color=crimson]Shield is nearly shattered![/color]
health-examinable-shield-Piercing-8 = [color=orange]Shield has small puncture marks.[/color]
health-examinable-shield-Piercing-15 = [color=red]Shield is riddled with holes.[/color]
health-examinable-shield-Piercing-30 = [color=crimson]Shield has large, dangerous breaches![/color]
health-examinable-shield-Piercing-50 = [color=crimson]Shield is nearly shattered![/color]
health-examinable-shield-Heat-8 = [color=orange]Shield surface is slightly scorched.[/color]
health-examinable-shield-Heat-15 = [color=red]Shield is charred and blackened.[/color]
health-examinable-shield-Heat-30 = [color=crimson]Shield is melting under extreme heat![/color]
health-examinable-shield-Heat-50 = [color=crimson]Shield almost burns in your hand![/color]
health-examinable-shield-Mangleness-15 = [color=orange]Shield looks fused.[/color]
health-examinable-shield-Mangleness-35 = [color=red]Shield looks like scrap metal![/color]

View file

@ -0,0 +1,24 @@
health-examinable-shield-none = Видимые повреждения щита отсутствуют.
health-examinable-shield-Blunt-8 = [color=orange]Щит имеет небольшие вмятины.[/color]
health-examinable-shield-Blunt-15 = [color=red]На щите несколько заметных вмятин.[/color]
health-examinable-shield-Blunt-30 = [color=crimson]Щит сильно деформирован от ударов![/color]
health-examinable-shield-Blunt-50 = [color=crimson]Щит почти раскрошен от сокрушительной силы![/color]
health-examinable-shield-Slash-8 = [color=orange]Щит имеет лёгкие царапины.[/color]
health-examinable-shield-Slash-15 = [color=red]На щите видны глубокие порезы.[/color]
health-examinable-shield-Slash-30 = [color=crimson]Щит изрезан и потрескался![/color]
health-examinable-shield-Slash-50 = [color=crimson]Щит едва держится, разодранный порезами![/color]
health-examinable-shield-Piercing-8 = [color=orange]Щит имеет маленькие пробоины.[/color]
health-examinable-shield-Piercing-15 = [color=red]Щит изрешечён дырами.[/color]
health-examinable-shield-Piercing-30 = [color=crimson]В щите зияют крупные опасные пробоины![/color]
health-examinable-shield-Piercing-50 = [color=crimson]Щит разорван на части от колющего урона![/color]
health-examinable-shield-Heat-8 = [color=orange]Поверхность щита слегка оплавлена.[/color]
health-examinable-shield-Heat-15 = [color=red]Щит почернел и обуглился.[/color]
health-examinable-shield-Heat-30 = [color=crimson]Щит плавится от экстремального жара![/color]
health-examinable-shield-Heat-50 = [color=crimson]Щит почти рассыпался в пламени![/color]
health-examinable-shield-Mangleness-15 = [color=orange]Щит выглядит сплавленным.[/color]
health-examinable-shield-Mangleness-35 = [color=red]Щит выглядит как металлолом![/color]

View file

@ -59,12 +59,23 @@
max: 2
- type: StaticPrice
price: 100
- type: HealthExaminable #Sunrise-Start
examinableTypes:
- Blunt
- Slash
- Piercing
- Heat
- Mangleness
locPrefix: shield
- type: ClothingSpeedModifier
sprintModifier: 0.95
- type: HeldSpeedModifier #Sunrise-End
#Security Shields
- type: entity
name: riot shield
parent: [ BaseShield, BaseSecurityContraband ]
parent: [ RepairableShield, BaseSecurityContraband, BaseShield ] # Sunrise-Edit
id: RiotShield
description: A large tower shield. Good for controlling crowds.
components:
@ -97,7 +108,7 @@
- type: entity
name: riot strobe shield
parent: [ BaseShield, BaseSecurityContraband, MachineComponentSounds ]
parent: [ RepairableShield, BaseSecurityContraband, MachineComponentSounds, BaseShield ] # Sunrise-Edit
id: RiotShieldStrobe
description: A large tower shield with atached Flash. Good for controlling crowds.
components:
@ -191,7 +202,7 @@
- type: entity
name: laser shield
parent: [ BaseShield, BaseSecurityContraband ]
parent: [ RepairableShield, BaseSecurityContraband, BaseShield ] # Sunrise-Edit
id: RiotLaserShield
description: A shield built for withstanding lasers, but not much else.
components:
@ -199,6 +210,7 @@
state: riot_laser-icon
- type: Item
heldPrefix: riot_laser
size: Ginormous # Sunrise-Edit Я не ебу почему он стал маленьким
- type: Blocking
passiveBlockModifier:
coefficients:
@ -217,13 +229,14 @@
- type: entity
name: ballistic shield
parent: [ BaseShield, BaseSecurityContraband ]
parent: [ RepairableShield, BaseSecurityContraband, BaseShield ] # Sunrise-Edit
id: RiotBulletShield
description: A shield built for protecting against ballistics, but not much else.
components:
- type: Sprite
state: riot_bullet-icon
- type: Item
size: Ginormous # Sunrise-Edit Я не ебу почему он стал маленьким
heldPrefix: riot_bullet
- type: Blocking
passiveBlockModifier:
@ -346,8 +359,8 @@
- type: entity
name: makeshift shield
parent: [ BaseShield, RepairableShield ] # Sunrise-Edit
id: MakeshiftShield
parent: BaseShield
description: A rundown looking shield, not good for much.
components:
- type: Sprite
@ -626,6 +639,9 @@
startingCharge: 1500
- type: PowerCellDraw
useRate: 2.5
- type: ClothingSpeedModifier
sprintModifier: 1
- type: HeldSpeedModifier
# Sunrise-End
- type: entity
@ -644,7 +660,7 @@
- type: entity
name: telescopic shield
parent: BaseShield
parent: [ RepairableShield, BaseShield, BaseSecurityContraband ] # Sunrise-Edit
id: TelescopicShield
description: An advanced riot shield made of lightweight materials that collapses for easy storage.
components:
@ -711,3 +727,23 @@
max: 2
- type: StaticPrice
price: 150
- type: entity # Sunrise-Start
name: repairable shield
parent: BaseItem
id: RepairableShield
description: A shield!
abstract: true
components:
- type: Item
size: Ginormous
- type: Repairable
doAfterDelay: 4
damage:
types:
Blunt: -25
Slash: -25
Piercing: -25
Heat: -25
Structural: -25
Mangleness: 7.5 # Sunrise-End

View file

@ -1,6 +1,6 @@
- type: entity
name: paladin shield
parent: [ BaseItem, BaseMajorContraband ] # Easier to remake it than inheret it, due to wiz keeping all shields in one folder and mine doing the opposite, due to the suitslot sprites.
parent: [ RepairableShield, BaseMajorContraband ] # Sunrise-Edit
id: PaladinShield
description: A shield for a true paladin! Good at deflecting hits with swords and absorbing the impact from bats, but not much else.
components:
@ -67,6 +67,17 @@
SheetSteel:
min: 5
max: 13
- type: HealthExaminable #Sunrise-Start
examinableTypes:
- Blunt
- Slash
- Piercing
- Heat
- Mangleness
locPrefix: shield
- type: ClothingSpeedModifier
sprintModifier: 0.95
- type: HeldSpeedModifier #Sunrise-End
- type: entity
name: paladin greatshield