Skip to content

Commit

Permalink
adds currency basics
Browse files Browse the repository at this point in the history
  • Loading branch information
Peptide90 committed Dec 6, 2023
1 parent 8b5c5c7 commit 04522a6
Show file tree
Hide file tree
Showing 22 changed files with 385 additions and 0 deletions.
314 changes: 314 additions & 0 deletions Resources/Prototypes/Nuclear14/Entities/Objects/Misc/currency.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,314 @@
# Caps
# Scroll down for other currencies
- type: entity
parent: BaseItem
id: N14CurrencyCap
name: bottlecap
description: A bottlecap from a soda bottle.
components:
- type: StaticPrice
price: 0
- type: Stack
stackType: Caps
baseLayer: base
layerStates:
- caps
- caps2
- caps3
- type: Sprite
sprite: Nuclear14/Objects/Misc/currency.rsi
state: caps
layers:
- state: caps3
map: ["base"]
- type: Physics
bodyType: Dynamic
- type: Fixtures
fixtures:
fix1:
density: 30
shape:
!type:PhysShapeAabb
bounds: "-0.35,-0.2,0.25,0.1"
mask:
- ItemMask
- type: Appearance

- type: stack
id: Caps
name: caps
icon: { sprite: /Textures/Nuclear14/Objects/Misc/currency.rsi, state: caps3 }
spawn: N14CurrencyCap

- type: entity
parent: N14CurrencyCap
id: N14CurrencyCap10
suffix: 10
components:
- type: Icon
sprite: Nuclear14/Objects/Misc/currency.rsi
state: caps2
- type: Stack
count: 10

- type: entity
parent: N14CurrencyCap
id: N14CurrencyCap50
suffix: 50
components:
- type: Icon
sprite: Nuclear14/Objects/Misc/currency.rsi
state: caps3
- type: Stack
count: 50

- type: entity
parent: N14CurrencyCap
id: N14CurrencyCap100
suffix: 100
components:
- type: Icon
sprite: Nuclear14/Objects/Specific/Medical/drugs.rsi
state: healingpowder
- type: Stack
count: 100

# Pre-War
- type: entity
parent: N14CurrencyCap
id: N14CurrencyPrewar
name: pre-war money
description: Wads of paper. Make it rain!
components:
- type: Stack
stackType: PrewarMoney
baseLayer: base
layerStates:
- prewar
- prewar2
- prewar3
- type: Sprite
sprite: Nuclear14/Objects/Misc/currency.rsi
state: prewar3
layers:
- state: prewar
map: ["base"]

- type: stack
id: PrewarMoney
name: pre-war money
icon: { sprite: /Textures/Nuclear14/Objects/Misc/currency.rsi, state: prewar3 }
spawn: N14CurrencyPrewar

- type: entity
parent: N14CurrencyPrewar
id: N14CurrencyPrewarMoney10
suffix: 10
components:
- type: Icon
sprite: Nuclear14/Objects/Misc/currency.rsi
state: prewar2
- type: Stack
count: 10

- type: entity
parent: N14CurrencyPrewar
id: N14CurrencyPrewarMoney50
suffix: 50
components:
- type: Icon
sprite: Nuclear14/Objects/Misc/currency.rsi
state: prewar3
- type: Stack
count: 50

- type: entity
parent: N14CurrencyPrewar
id: N14CurrencyPrewarMoney100
suffix: 100
components:
- type: Icon
sprite: Nuclear14/Objects/Misc/currency.rsi
state: prewar3
- type: Stack
count: 100

# NCR Dollars
- type: entity
parent: N14CurrencyCap
id: N14CurrencyNCRDollar
name: NCR dollar
description: Wads of paper. Make it rain!
components:
- type: Stack
stackType: NCRDollar
baseLayer: base
layerStates:
- ncr
- ncr2
- ncr3
- type: Sprite
sprite: Nuclear14/Objects/Misc/currency.rsi
state: ncr3
layers:
- state: prewar
map: ["base"]

- type: stack
id: NCRDollar
name: NCR dollars
icon: { sprite: /Textures/Nuclear14/Objects/Misc/currency.rsi, state: ncr3 }
spawn: N14CurrencyNCRDollar

- type: entity
parent: N14CurrencyNCRDollar
id: N14CurrencyNCRDollar10
suffix: 10
components:
- type: Icon
sprite: Nuclear14/Objects/Misc/currency.rsi
state: ncr2
- type: Stack
count: 10

- type: entity
parent: N14CurrencyNCRDollar
id: N14CurrencyNCRDollar50
suffix: 50
components:
- type: Icon
sprite: Nuclear14/Objects/Misc/currency.rsi
state: ncr3
- type: Stack
count: 50

- type: entity
parent: N14CurrencyNCRDollar
id: N14CurrencyNCRDollar100
suffix: 100
components:
- type: Icon
sprite: Nuclear14/Objects/Misc/currency.rsi
state: ncr3
- type: Stack
count: 100

# Legion Aureus
- type: entity
parent: N14CurrencyCap
id: N14CurrencyLegionAureus
name: aureus
description: A gold coin used by the legion and tribes as currency.
components:
- type: Stack
stackType: LegionAureus
baseLayer: base
layerStates:
- aurelius
- aurelius2
- aurelius3
- type: Sprite
sprite: Nuclear14/Objects/Misc/currency.rsi
state: aurelius
layers:
- state: aurelius3
map: ["base"]

- type: stack
id: LegionAureus
name: legion aurei
icon: { sprite: /Textures/Nuclear14/Objects/Misc/currency.rsi, state: aurelius3 }
spawn: N14CurrencyLegionAureus

- type: entity
parent: N14CurrencyLegionAureus
id: N14CurrencyLegionAureus10
suffix: 10
components:
- type: Icon
sprite: Nuclear14/Objects/Misc/currency.rsi
state: aurelius2
- type: Stack
count: 10

- type: entity
parent: N14CurrencyLegionAureus
id: N14CurrencyLegionAureus50
suffix: 50
components:
- type: Icon
sprite: Nuclear14/Objects/Misc/currency.rsi
state: aurelius3
- type: Stack
count: 50

- type: entity
parent: N14CurrencyLegionAureus
id: N14CurrencyLegionAureus100
suffix: 100
components:
- type: Icon
sprite: Nuclear14/Objects/Misc/currency.rsi
state: aurelius3
- type: Stack
count: 100

# Legion Denarius
- type: entity
parent: N14CurrencyCap
id: N14CurrencyLegionDenarius
name: denarius
description: A silver coin used by the legion and tribes as currency.
components:
- type: Stack
stackType: LegionDenarius
baseLayer: base
layerStates:
- denarius
- denarius2
- denarius3
- type: Sprite
sprite: Nuclear14/Objects/Misc/currency.rsi
state: denarius
layers:
- state: denarius3
map: ["base"]

- type: stack
id: LegionDenarius
name: legion denarii
icon: { sprite: /Textures/Nuclear14/Objects/Misc/currency.rsi, state: denarius3 }
spawn: N14CurrencyLegionDenarius

- type: entity
parent: N14CurrencyLegionDenarius
id: N14CurrencyLegionDenarius10
suffix: 10
components:
- type: Icon
sprite: Nuclear14/Objects/Misc/currency.rsi
state: denarius2
- type: Stack
count: 10

- type: entity
parent: N14CurrencyLegionDenarius
id: N14CurrencyLegionDenarius50
suffix: 50
components:
- type: Icon
sprite: Nuclear14/Objects/Misc/currency.rsi
state: denarius3
- type: Stack
count: 50

- type: entity
parent: N14CurrencyLegionDenarius
id: N14CurrencyLegionDenarius100
suffix: 100
components:
- type: Icon
sprite: Nuclear14/Objects/Misc/currency.rsi
state: denarius3
- type: Stack
count: 100
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.
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.
71 changes: 71 additions & 0 deletions Resources/Textures/Nuclear14/Objects/Misc/currency.rsi/meta.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,71 @@
{
"version": 1,
"license": "CC-BY-SA-3.0",
"copyright": "Taken from MS13 at commit https://github.com/Mojave-Sun/mojave-sun-13/commit/aca39d820a24b8f3ca4850d49ba263f40f6a4a96",
"size": {
"x": 32,
"y": 32
},
"states": [
{
"name": "ncrgold"
},
{
"name": "ncrgold2"
},
{
"name": "ncrgold3"
},
{
"name": "ncr"
},
{
"name": "ncr2"
},
{
"name": "ncr3"
},
{
"name": "prewar"
},
{
"name": "prewar2"
},
{
"name": "prewar3"
},
{
"name": "aurelius"
},
{
"name": "aureliusback"
},
{
"name": "aurelius2"
},
{
"name": "aurelius3"
},
{
"name": "denarius"
},
{
"name": "denariusback"
},
{
"name": "denarius2"
},
{
"name": "denarius3"
},
{
"name": "caps"
},
{
"name": "caps2"
},
{
"name": "caps3"
}
]
}
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.
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.

0 comments on commit 04522a6

Please sign in to comment.