Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[FEATURE] Реворк работы утилизаторов. #72

Draft
wants to merge 4 commits into
base: master
Choose a base branch
from
Draft
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
21 changes: 18 additions & 3 deletions Resources/Prototypes/Damage/modifier_sets.yml
Original file line number Diff line number Diff line change
Expand Up @@ -40,14 +40,29 @@
- type: damageModifierSet
id: Rock
coefficients:
Structural: 4
Structural: 5
Blunt: 0.5
Slash: 0.25
Piercing: 0.75
Heat: 0.9
Piercing: 0.5
Heat: 0.75
flatReductions:
Blunt: 5

- type: damageModifierSet
id: RockStrong
coefficients:
Structural: 5
Blunt: 0.25
Slash: 0.1
Piercing: 0.25
Heat: 0.5
flatReduction:
Blunt: 10
Slash: 10
Piercing: 10
Heat: 10
Structural: 10

- type: damageModifierSet
id: PerforatedMetallic
coefficients:
Expand Down
43 changes: 14 additions & 29 deletions Resources/Prototypes/DeltaV/Entities/Structures/Walls/mountain.yml
Original file line number Diff line number Diff line change
@@ -1,25 +1,25 @@
# WD edit. Changed behavior to getting Structural damage, so it's now StructuralInorganic
# Was Inorganic and gatherable by pickaxe (removed).
# OreChance increased from 0.33 to 0.5 and from 0.2 to 0.25

- type: entity
id: AsteroidAltRock #It's 1994
id: AsteroidAltRock #It was 1994. Now it's 2024.
parent: BaseStructure
name: asteroid rock
suffix: Low Ore Yield
description: A rocky asteroid.
components:
- type: Gatherable
whitelist:
tags:
- Pickaxe
- type: Sprite
sprite: DeltaV/Structures/Walls/asteroid_rock.rsi
state: full
- type: Damageable
damageContainer: Inorganic
damageModifierSet: Metallic
damageContainer: StructuralInorganic
damageModifierSet: RockStrong
- type: Destructible
thresholds:
- trigger:
!type:DamageTrigger
damage: 150
damage: 100
behaviors:
- !type:DoActsBehavior
acts: ["Destruction"]
Expand All @@ -40,7 +40,7 @@
key: walls
base: rock_
- type: OreVein
oreChance: 0.2
oreChance: 0.25
oreRarityPrototypeId: RandomOreDistributionStandard

- type: entity
Expand All @@ -57,35 +57,24 @@
thresholds:
- trigger:
!type:DamageTrigger
damage: 300
damage: 200
behaviors:
- !type:DoActsBehavior
acts: ["Destruction"]
- type: OreVein
oreChance: 0.20
oreChance: 0.25
oreRarityPrototypeId: RandomOreDistributionHigh

- type: entity
id: MountainRock
parent: BaseStructure
name: mountain rock
suffix: Un-mineable
suffix: Un-destructible
description: A craggy mountain wall. It is too hard to mine.
components:
- type: Sprite
sprite: DeltaV/Structures/Walls/mountain_rock.rsi
state: full
- type: Damageable
damageContainer: Inorganic
damageModifierSet: StrongMetallic
- type: Destructible
thresholds:
- trigger:
!type:DamageTrigger
damage: 1500
behaviors:
- !type:DoActsBehavior
acts: ["Destruction"]
- type: Occluder
- type: Airtight
- type: Fixtures
Expand All @@ -110,12 +99,8 @@
suffix: Higher Ore Yield
description: A rocky asteroid.
components:
- type: Gatherable
whitelist:
tags:
- Pickaxe
- type: OreVein
oreChance: 0.33
oreChance: 0.5
oreRarityPrototypeId: RandomOreDistributionStandard

- type: entity
Expand All @@ -126,5 +111,5 @@
description: A rocky asteroid.
components:
- type: OreVein
oreChance: 0.33
oreChance: 0.5
oreRarityPrototypeId: OreCrab
Original file line number Diff line number Diff line change
@@ -0,0 +1,73 @@
- type: entity
id: BaseWeaponBattery
parent: BaseItem
abstract: true
components:
- type: Sprite
- type: Item
size: Huge
- type: Clothing
sprite: Objects/Weapons/Guns/Battery/laser_retro.rsi
quickEquip: false
slots:
- Back
- suitStorage
- type: AmmoCounter
- type: Gun
fireRate: 2
selectedMode: SemiAuto
availableModes:
- SemiAuto
fireOnDropChance: 0.15
soundGunshot:
path: /Audio/Weapons/Guns/Gunshots/laser.ogg
doRecoil: false
- type: Battery
maxCharge: 1000
startingCharge: 1000
- type: MagazineVisuals
magState: mag
steps: 5
zeroVisible: false
- type: Appearance
- type: StaticPrice
price: 500
- type: MeleeWeapon # WD EDIT
attackRate: 0.7
damage:
types:
Blunt: 10
soundHit:
collection: GenericHit

- type: entity
id: BasePlasmaGun
parent: BaseItem
abstract: true
components:
- type: Sprite
- type: Item
size: Huge
- type: Clothing
sprite: Objects/Weapons/Guns/Battery/laser_retro.rsi
quickEquip: false
slots:
- Back
- suitStorage
- type: AmmoCounter
- type: Gun
fireRate: 2
selectedMode: SemiAuto
availableModes:
- SemiAuto
fireOnDropChance: 0.15
soundGunshot:
path: /Audio/Weapons/Guns/Gunshots/laser.ogg
doRecoil: false
- type: MagazineVisuals
magState: mag
steps: 5
zeroVisible: false
- type: Appearance
- type: StaticPrice
price: 500
Original file line number Diff line number Diff line change
Expand Up @@ -138,3 +138,37 @@
impactFlash:
sprite: Objects/Weapons/Guns/Projectiles/projectiles.rsi
state: impact_beam_heavy2

- type: hitscan
id: PlasmaLaser
maxLength: 4
damage:
types:
Heat: 10
Structural: 30
muzzleFlash:
sprite: Objects/Weapons/Guns/Projectiles/projectiles.rsi
state: muzzle_beam_heavy
travelFlash:
sprite: Objects/Weapons/Guns/Projectiles/projectiles.rsi
state: beam
impactFlash:
sprite: Objects/Weapons/Guns/Projectiles/projectiles.rsi
state: impact_beam_heavy

- type: hitscan
id: LongPlasmaLaser
maxLength: 7
damage:
types:
Heat: 10
Structural: 30
muzzleFlash:
sprite: Objects/Weapons/Guns/Projectiles/projectiles.rsi
state: muzzle_beam_heavy
travelFlash:
sprite: Objects/Weapons/Guns/Projectiles/projectiles.rsi
state: beam
impactFlash:
sprite: Objects/Weapons/Guns/Projectiles/projectiles.rsi
state: impact_beam_heavy
Original file line number Diff line number Diff line change
Expand Up @@ -415,10 +415,10 @@
damage:
types:
Blunt: 25
Structural: 30
Structural: 20
# Short lifespan
- type: TimedDespawn
lifetime: 0.4
lifetime: 0.2 # WD EDIT / Actually short bullet, ~4 tiles.

- type: entity
id: BulletKineticShuttle
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -43,7 +43,7 @@
capacity: 1
count: 1
- type: MeleeWeapon
attackRate: 0.75
attackRate: 0.5
range: 1.75
wideAnimationRotation: -135
damage:
Expand All @@ -61,7 +61,7 @@
types:
Blunt: 2.5
Slash: 2.5
Structural: 30
Structural: 20
- type: GunRequiresWield
- type: Item
size: Ginormous
Expand Down Expand Up @@ -106,8 +106,6 @@
components:
- type: Sprite
sprite: Objects/Weapons/Melee/crusher_glaive.rsi
- type: UseDelay
delay: 1.9
- type: LeechOnMarker
leech:
groups:
Expand Down
10 changes: 4 additions & 6 deletions Resources/Prototypes/Entities/Objects/Weapons/Melee/pickaxe.yml
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,7 @@
damage:
types:
Blunt: 5
Structural: 30
Structural: 20
- type: Item
size: Normal
shape:
Expand Down Expand Up @@ -59,18 +59,16 @@
wideAnimationRotation: -90
soundHit:
path: "/Audio/Items/drill_hit.ogg"
attackRate: 0.5
range: 1.4
attackRate: 1
range: 1
damage:
types:
Blunt: 9
Slash: 3
Structural: 12
bluntStaminaDamageFactor: 4.0
Structural: 20
heavyRateModifier: 1
heavyRangeModifier: 2
heavyDamageBaseModifier: 1
heavyStaminaCost: 10
maxTargets: 3
angle: 20

Expand Down
10 changes: 3 additions & 7 deletions Resources/Prototypes/Entities/Structures/Walls/asteroid.yml
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,7 @@
thresholds:
- trigger:
!type:DamageTrigger
damage: 120
damage: 100
behaviors:
- !type:DoActsBehavior
acts: ["Destruction"]
Expand Down Expand Up @@ -374,13 +374,9 @@
- type: Transform
noRot: true
- type: SoundOnGather
- type: Gatherable
whitelist:
tags:
- Pickaxe
- type: Damageable
damageContainer: Inorganic
damageModifierSet: Metallic
damageContainer: StructuralInorganic
damageModifierSet: RockStrong
- type: Destructible
thresholds:
- trigger:
Expand Down
Loading