Adds IThrown, ILand interfaces. Adds dice. (#273)
* Dice, IThrown, ILand * Adds sounds to the dice using a sound collection. * Seed random instance better. * Missed a ")", should compile now
This commit is contained in:
committed by
Pieter-Jan Briers
parent
92668432a7
commit
d9077bde74
106
Resources/Prototypes/Entities/Dice.yml
Normal file
106
Resources/Prototypes/Entities/Dice.yml
Normal file
@@ -0,0 +1,106 @@
|
||||
- type: entity
|
||||
name: "BaseDice"
|
||||
parent: BaseItem
|
||||
id: BaseDice
|
||||
components:
|
||||
- type: Dice
|
||||
- type: Sound
|
||||
|
||||
- type: entity
|
||||
name: "d100"
|
||||
parent: BaseDice
|
||||
id: d100
|
||||
components:
|
||||
- type: Dice
|
||||
sides: 100
|
||||
step: 10
|
||||
- type: Sprite
|
||||
sprite: Objects/items/dice.rsi
|
||||
state: d100100
|
||||
- type: Icon
|
||||
sprite: Objects/items/dice.rsi
|
||||
state: d100100
|
||||
|
||||
- type: entity
|
||||
name: "d20"
|
||||
parent: BaseDice
|
||||
id: d20
|
||||
components:
|
||||
- type: Dice
|
||||
sides: 20
|
||||
- type: Sprite
|
||||
sprite: Objects/items/dice.rsi
|
||||
state: d2020
|
||||
- type: Icon
|
||||
sprite: Objects/items/dice.rsi
|
||||
state: d2020
|
||||
|
||||
- type: entity
|
||||
name: "d12"
|
||||
parent: BaseDice
|
||||
id: d12
|
||||
components:
|
||||
- type: Dice
|
||||
sides: 12
|
||||
- type: Sprite
|
||||
sprite: Objects/items/dice.rsi
|
||||
state: d1212
|
||||
- type: Icon
|
||||
sprite: Objects/items/dice.rsi
|
||||
state: d1212
|
||||
|
||||
- type: entity
|
||||
name: "d10"
|
||||
parent: BaseDice
|
||||
id: d10
|
||||
components:
|
||||
- type: Dice
|
||||
sides: 10
|
||||
- type: Sprite
|
||||
sprite: Objects/items/dice.rsi
|
||||
state: d1010
|
||||
- type: Icon
|
||||
sprite: Objects/items/dice.rsi
|
||||
state: d1010
|
||||
|
||||
- type: entity
|
||||
name: "d8"
|
||||
parent: BaseDice
|
||||
id: d8
|
||||
components:
|
||||
- type: Dice
|
||||
sides: 8
|
||||
- type: Sprite
|
||||
sprite: Objects/items/dice.rsi
|
||||
state: d88
|
||||
- type: Icon
|
||||
sprite: Objects/items/dice.rsi
|
||||
state: d88
|
||||
|
||||
- type: entity
|
||||
name: "d6"
|
||||
parent: BaseDice
|
||||
id: d6
|
||||
components:
|
||||
- type: Dice
|
||||
sides: 6
|
||||
- type: Sprite
|
||||
sprite: Objects/items/dice.rsi
|
||||
state: d66
|
||||
- type: Icon
|
||||
sprite: Objects/items/dice.rsi
|
||||
state: d66
|
||||
|
||||
- type: entity
|
||||
name: "d4"
|
||||
parent: BaseDice
|
||||
id: d4
|
||||
components:
|
||||
- type: Dice
|
||||
sides: 4
|
||||
- type: Sprite
|
||||
sprite: Objects/items/dice.rsi
|
||||
state: d44
|
||||
- type: Icon
|
||||
sprite: Objects/items/dice.rsi
|
||||
state: d44
|
||||
10
Resources/Prototypes/SoundCollections/dice.yml
Normal file
10
Resources/Prototypes/SoundCollections/dice.yml
Normal file
@@ -0,0 +1,10 @@
|
||||
- type: sound_collection
|
||||
id: dice
|
||||
files:
|
||||
- /Audio/items/dice/dice1.ogg
|
||||
- /Audio/items/dice/dice2.ogg
|
||||
- /Audio/items/dice/dice3.ogg
|
||||
- /Audio/items/dice/dice4.ogg
|
||||
- /Audio/items/dice/dice5.ogg
|
||||
- /Audio/items/dice/dice6.ogg
|
||||
- /Audio/items/dice/dice7.ogg
|
||||
Reference in New Issue
Block a user