Made a fancier lasergun (#174)
Laserguns now have an internal capacitor that can be recharged by using it with a power cell Makes the final fix for #138
This commit is contained in:
committed by
Pieter-Jan Briers
parent
b94e015314
commit
1af1ee2ad4
@@ -1,25 +1,3 @@
|
||||
- type: entity
|
||||
name: Laser Gun
|
||||
parent: BaseItem
|
||||
id: LaserItem
|
||||
description: A weapon using light amplified by the stimulated emission of radiation
|
||||
components:
|
||||
- type: Sprite
|
||||
sprite: Objects/laser_retro.rsi
|
||||
state: 100
|
||||
- type: Icon
|
||||
sprite: Objects/laser_retro.rsi
|
||||
state: 100
|
||||
- type: RangedWeapon
|
||||
- type: HitscanWeapon
|
||||
damage: 30
|
||||
sprite: "Objects/laser.png"
|
||||
- type: Item
|
||||
Size: 24
|
||||
sprite: Objects/laser_retro.rsi
|
||||
prefix: 100
|
||||
- type: Sound
|
||||
|
||||
- type: entity
|
||||
name: Spear
|
||||
parent: BaseItem
|
||||
|
||||
24
Resources/Prototypes/Entities/weapons/laserguns.yml
Normal file
24
Resources/Prototypes/Entities/weapons/laserguns.yml
Normal file
@@ -0,0 +1,24 @@
|
||||
- type: entity
|
||||
name: Laser Gun
|
||||
parent: BaseItem
|
||||
id: LaserItem
|
||||
description: A weapon using light amplified by the stimulated emission of radiation
|
||||
components:
|
||||
- type: Sprite
|
||||
sprite: Objects/laser_retro.rsi
|
||||
state: 100
|
||||
- type: Icon
|
||||
sprite: Objects/laser_retro.rsi
|
||||
state: 100
|
||||
- type: RangedWeapon
|
||||
- type: HitscanWeapon
|
||||
damage: 30
|
||||
sprite: "Objects/laser.png"
|
||||
lowerDischargeLimit: 10
|
||||
- type: HitscanWeaponCapacitor
|
||||
capacity: 1000
|
||||
- type: Item
|
||||
Size: 24
|
||||
sprite: Objects/laser_retro.rsi
|
||||
prefix: 100
|
||||
- type: Sound
|
||||
Reference in New Issue
Block a user