Skip to content

Commit

Permalink
Merge pull request #471 from fenndragon/Modules
Browse files Browse the repository at this point in the history
Energy Shotgun Fix
  • Loading branch information
FoxxoTrystan authored Jan 10, 2025
2 parents 74106ce + 88840a9 commit 9bc4e5e
Show file tree
Hide file tree
Showing 8 changed files with 68 additions and 22 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -1042,9 +1042,21 @@
soundHit:
collection: MeatLaserImpact

- type: entity
name: energy bolt
id: BulletEnergyGun
parent: BulletEnergyGunLaser
noSpawn: true
components:
- type: Projectile
impactEffect: BulletImpactEffectRedDisabler
damage:
types:
Heat: 5

- type: entity
name: wide laser barrage
id: BulletLaserSpread
categories: [ HideSpawnMenu ]
parent: BulletEnergyGunLaser
parent: BulletEnergyGun

Original file line number Diff line number Diff line change
Expand Up @@ -76,7 +76,7 @@
- state: icon-Advmeasures
- type: ItemBorgModule
items:
- WeaponEnergyShotgun
- WeaponBorgEnergyShotgun
- BorgWeaponXrayCannon

- type: entity
Expand Down
47 changes: 27 additions & 20 deletions Resources/Prototypes/Floof/Entities/Objects/Weapons/guns.yml
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@

- type: entity
name: borg disabler
parent: WeaponDisabler
suffix: Robot
id: WeaponBorgDisabler
description: A self-defense weapon that exhausts organic targets, weakening them until they collapse.
components:
Expand Down Expand Up @@ -49,25 +49,25 @@
# - type: Appearance

- type: entity
name: borg pulse rifle
parent: WeaponPulseRifle
suffix: Robot
id: BorgWeaponPulseRifle
description: A weapon that is almost as infamous as its users.
components:
- type: BatterySelfRecharger
autoRecharge: true
autoRechargeRate: 30
autoRechargeRate: 30

- type: entity
name: borg Xray Cannon
parent: WeaponXrayCannon
suffix: Robot
id: BorgWeaponXrayCannon
description: A weapon that is almost as infamous as its users.
components:
- type: BatterySelfRecharger
autoRecharge: true
autoRechargeRate: 30

- type: entity
name: mk 58
parent: BaseWeaponBatterySmall
Expand Down Expand Up @@ -96,11 +96,12 @@
- type: Battery
maxCharge: 1000
startingCharge: 1000

- type: entity
name: energy shotgun
parent: BaseWeaponBattery
id: WeaponEnergyShotgun
id: BaseWeaponEnergyShotgun
abstract: true
description: A one-of-a-kind prototype energy weapon that uses various shotgun configurations. It offers the possibility of both lethal and non-lethal shots, making it a versatile weapon.
components:
- type: Sprite
Expand All @@ -120,27 +121,33 @@
- type: ProjectileBatteryAmmoProvider
proto: eShellShotgun
fireCost: 150
- type: BatteryWeaponFireModes
fireModes:
- proto: eShellShotgun
fireCost: 150
- proto: BulletDisablerSmg
fireCost: 120
- type: Item
size: Large
shape:
- 0,0,3,1
sprite: Objects/Weapons/Guns/Battery/inhands_64x.rsi
heldPrefix: energy
- type: Tag
tags:
- HighRiskItem
- type: StealTarget
stealGroup: WeaponEnergyShotgun
- type: GunRequiresWield #remove when inaccuracy on spreads is fixed
- type: Battery
maxCharge: 1200
startingCharge: 1200
- type: BatterySelfRecharger
autoRecharge: true
autoRechargeRate: 24
autoRechargeRate: 24

- type: entity
name: energy shotgun
parent: BaseWeaponEnergyShotgun
id: WeaponEnergyShotgun
components:
- type: GunRequiresWield
- type: Wieldable
- type: Tag
tags:
- HighRiskItem
- type: StealTarget
stealGroup: WeaponEnergyShotgun

- type: entity
suffix: Robot
parent: BaseWeaponEnergyShotgun
id: WeaponBorgEnergyShotgun
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,27 @@
{
"version": 1,
"license": "CC-BY-SA-3.0",
"copyright": "Energy Shotgun inhands made by Boaz1111 based on the energy shotgun icon sprite made by Papermaker48 for SS14",
"size": {
"x": 64,
"y": 64
},
"states": [
{
"name": "energy-inhand-left",
"directions": 4
},
{
"name": "energy-inhand-right",
"directions": 4
},
{
"name": "wielded-inhand-left",
"directions": 4
},
{
"name": "wielded-inhand-right",
"directions": 4
}
]
}
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.

0 comments on commit 9bc4e5e

Please sign in to comment.