Skip to content

Commit

Permalink
Add new highrisk to quartermaster (#1415)
Browse files Browse the repository at this point in the history
* Add new highrisk to quartermaster

* Add Steal objective

* moved to SS220

* Fix meta

* Add glass case

* Some prototype and sprite changes

* Sprite update and add to Qm locker

* Some fixes

* Some fixes 2

* Fix description
  • Loading branch information
Kirus59 authored Aug 12, 2024
1 parent 77b6152 commit 77df1b8
Show file tree
Hide file tree
Showing 25 changed files with 228 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ internal sealed partial class WeaponRandomComponent : Component
/// <summary>
/// Chance for the damage bonus to occur (1 = 100%).
/// </summary>
[ViewVariables(VVAccess.ReadWrite)]
[DataField("randomDamageChance"), ViewVariables(VVAccess.ReadWrite)] // SS220 add DataField
public float RandomDamageChance = 0.00001f;

/// <summary>
Expand Down
4 changes: 4 additions & 0 deletions Resources/Audio/SS220/Weapons/brassKnukles/attributions.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
- files: ["critical-hit.ogg"]
license: "CC-BY-4.0"
copyright: "Modified by kirus59 (Github), converted to OGG."
source: "https://wiki.teamfortress.com/wiki/Category:Sound_cues"
Binary file not shown.
7 changes: 7 additions & 0 deletions Resources/Locale/ru-RU/ss220/misc/case.ftl
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
ent-GlassCaseEtchedBrassKnuckles = стеклянный кейс
.desc = Изготовлен на заказ для хранения ценных предметов. Крышка выполнена из закалённого стекла, а основание из дерева, выращенного на тропических планетах. Коробка украшена бархатной подушкой, чтобы предотвратить возможные царапины.
.suffix = Гравированный кастет
ent-GlassCaseEtchedBrassKnucklesFilled = стеклянный кейс
.desc = { ent-GlassCase.desc }
.suffix = Гравированный кастет, Заполненый
2 changes: 2 additions & 0 deletions Resources/Locale/ru-RU/ss220/weapons/brass_knuckles.ftl
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
ent-EtchedBrassKnuckles = гравированный кастет
.desc = Гравированный кастет квартирмейстера, изготовленный по специальному заказу. Выдан в качестве средства борьбы с участившимися случаями краж личных вещей и материалов из отдела снабжения.
1 change: 1 addition & 0 deletions Resources/Prototypes/Catalog/Fills/Lockers/heads.yml
Original file line number Diff line number Diff line change
Expand Up @@ -22,6 +22,7 @@
- id: ClothingHeadsetAltCargo
- id: BoxEncryptionKeyCargo
- id: ClothingWristWatchGold # SS220 Wrist Watch
- id: GlassCaseEtchedBrassKnucklesFilled # SS220 New Qm highrisk

- type: entity
id: LockerCaptainFilledHardsuit
Expand Down
1 change: 1 addition & 0 deletions Resources/Prototypes/Objectives/objectiveGroups.yml
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,7 @@
MagbootsStealObjective: 1
CorgiMeatStealObjective: 1
ClipboardStealObjective: 1
EtchedBrassKnucklesStealObjective: 1 #SS220 New Qm highrisk
CaptainGunStealObjective: 0.5
CaptainJetpackStealObjective: 0.5
HandTeleporterStealObjective: 0.5
Expand Down
87 changes: 87 additions & 0 deletions Resources/Prototypes/SS220/Entities/Objects/Misc/case.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,87 @@
# © SS220, An EULA/CLA with a hosting restriction, full text: https://raw.githubusercontent.com/SerbiaStrong-220/space-station-14/master/CLA.txt

- type: entity
parent: [BaseItem, BaseItemCabinet]
id: GlassCaseEtchedBrassKnuckles
name: glass case
suffix: Etched brass knuckles
description: Made to order for storing valuables. The lid is made of tempered glass, and the base is made of wood grown on tropical planets and decorated with a velvet pad to prevent possible scratches.
components:
- type: Item
size: Large
- type: Lock
- type: LockVisuals
- type: Sprite
sprite: SS220/Misc/etched_brass_knuckles_case.rsi
layers:
- state: base
map: ["enum.StorageVisualLayers.Base"]
- state: brassknukles
map: ["enum.ItemCabinetVisuals.Layer"]
visible: true
- state: closed
map: ["enum.OpenableVisuals.Layer"]
- state: locked
shader: unshaded
map: ["enum.LockVisualLayers.Lock"]
- type: Appearance
- type: ItemSlots
slots:
ItemCabinet:
ejectOnInteract: true
whitelist:
tags:
- EtchedBrassKnuckles
ejectSound: /Audio/Machines/machine_switch.ogg
- type: GenericVisualizer
visuals:
enum.ItemCabinetVisuals.ContainsItem:
enum.ItemCabinetVisuals.Layer:
True: { visible: true }
False: { visible: false }
enum.OpenableVisuals.Opened:
enum.OpenableVisuals.Layer:
True: { state: open }
False: { state: closed }
- type: Damageable
damageContainer: Inorganic
damageModifierSet: Glass
- type: MeleeSound
soundGroups:
Brute:
collection: GlassSmash
- type: Destructible
thresholds:
- trigger:
!type:DamageTrigger
damage: 40
behaviors:
- !type:EmptyAllContainersBehaviour
- !type:PlaySoundBehavior
sound:
collection: WindowShatter
- !type:SpawnEntitiesBehavior
spawn:
ShardGlassReinforced:
min: 1
max: 2
MaterialWoodPlank1:
min: 1
max: 2
- !type:DoActsBehavior
acts: [ "Destruction" ]
- type: StaticPrice
price: 200

- type: entity
parent: GlassCaseEtchedBrassKnuckles
id: GlassCaseEtchedBrassKnucklesFilled
name: glass case
suffix: Etched brass knuckles, Filled
components:
- type: AccessReader
access: [["Quartermaster"]]
- type: ContainerFill
containers:
ItemCabinet:
- EtchedBrassKnuckles
Original file line number Diff line number Diff line change
@@ -0,0 +1,43 @@
# © SS220, An EULA/CLA with a hosting restriction, full text: https://raw.githubusercontent.com/SerbiaStrong-220/space-station-14/master/CLA.txt

#Quartermaster
- type: entity
name: brass knuckles
parent: BaseItem
id: EtchedBrassKnuckles
description: кастет
components:
- type: Sprite
sprite: SS220/Objects/Weapons/Melee/etched_brass_knuckles.rsi
state: icon
- type: Clothing
sprite: SS220/Objects/Weapons/Melee/etched_brass_knuckles.rsi
slots: [gloves]
- type: Item
size: Small
storedRotation: -90
- type: MeleeWeapon
autoAttack: true
attackRate: 1
damage:
types:
Blunt: 10
Stamina: 28
soundHit:
collection: GenericHit
animation: WeaponArcFist
mustBeEquippedToUse: true
- type: WeaponRandom
damageBonus:
types:
Blunt: 10
Stamina: 72 # 28 + 72 = 100 => куклу без стаминрезиста сразу ложит в стаминкрит
randomDamageChance: 0.2
damageSound: /Audio/SS220/Weapons/brassKnukles/critical-hit.ogg
- type: Tag
tags:
- EtchedBrassKnuckles
- type: StaticPrice
price: 1000
- type: StealTarget
stealGroup: EtchedBrassKnuckles
9 changes: 8 additions & 1 deletion Resources/Prototypes/SS220/Objectives/stealTargetGroups.yml
Original file line number Diff line number Diff line change
Expand Up @@ -3,4 +3,11 @@
name: secway
sprite:
sprite: Objects/Vehicles/secway.rsi
state: icon
state: icon

- type: stealTargetGroup
id: EtchedBrassKnuckles
name: engraved brass knuckles
sprite:
sprite: SS220/Objects/Weapons/Melee/etched_brass_knuckles.rsi
state: icon
11 changes: 11 additions & 0 deletions Resources/Prototypes/SS220/Objectives/traitor.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
# © SS220, An EULA/CLA with a hosting restriction, full text: https://raw.githubusercontent.com/SerbiaStrong-220/space-station-14/master/CLA.txt

- type: entity
parent: BaseTraitorStealObjective
id: EtchedBrassKnucklesStealObjective
components:
- type: NotJobRequirement
job: Quartermaster
- type: StealCondition
stealGroup: EtchedBrassKnuckles
owner: job-name-qm
6 changes: 5 additions & 1 deletion Resources/Prototypes/SS220/tags.yml
Original file line number Diff line number Diff line change
Expand Up @@ -86,4 +86,8 @@
id: PowerCellHigh

- type: Tag
id: WeaponFlareGun
id: WeaponFlareGun

# New Qm highrisk
- type: Tag
id: EtchedBrassKnuckles
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.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Original file line number Diff line number Diff line change
@@ -0,0 +1,32 @@
{
"version": 1,
"license": "EULA/CLA with a hosting restriction, full text: https://raw.githubusercontent.com/SerbiaStrong-220/space-station-14/master/CLA.txt",
"copyright": "Made by okroshka59 (Discord) for SS220, modified by Bomjojuk (Discord)",
"size": {
"x": 32,
"y": 32
},
"states": [
{
"name": "icon"
},
{
"name": "base"
},
{
"name": "open"
},
{
"name": "closed"
},
{
"name": "locked"
},
{
"name": "unlocked"
},
{
"name": "brassknukles"
}
]
}
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.
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.
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 https://github.com/ss220club/Paradise-SS220/blob/master/icons/obj/weapons/knuckleduster.dmi, modifided by okroshka59 (Discord) for SS220",
"size": {
"x": 32,
"y": 32
},
"states": [
{
"name": "icon"
},
{
"name": "equipped-HAND",
"directions": 4
},
{
"name": "inhand-left",
"directions": 4
},
{
"name": "inhand-right",
"directions": 4
}
]
}

0 comments on commit 77df1b8

Please sign in to comment.