Skip to content

Commit

Permalink
loxotron (#934)
Browse files Browse the repository at this point in the history
* loxotron

* lottery_fix

* Update Resources/Prototypes/Entities/Objects/Misc/space_cash.yml

* Update Resources/Prototypes/SS220/Catalog/Cargo/cargo_fun.yml

Co-authored-by: Kit0vras <[email protected]>

* Update Resources/Prototypes/SS220/Entities/Objects/Misc/lottery.yml

Co-authored-by: Kit0vras <[email protected]>

* Update Resources/Textures/SS220/Objects/Fun/Lottery.rsi/meta.json

Co-authored-by: Kit0vras <[email protected]>

---------

Co-authored-by: Dexler <[email protected]>
Co-authored-by: Kit0vras <[email protected]>
  • Loading branch information
3 people authored Apr 26, 2024
1 parent a6531a8 commit af84383
Show file tree
Hide file tree
Showing 9 changed files with 151 additions and 1 deletion.
36 changes: 36 additions & 0 deletions Resources/Prototypes/Catalog/Cargo/cargo_fun.yml
Original file line number Diff line number Diff line change
Expand Up @@ -208,3 +208,39 @@
cost: 20000 #SS220 fix_cargo
category: cargoproduct-category-name-fun
group: market

#SS220 Lottery start
- type: cargoProduct
id: cargoLotteryCash
name: лотерея V&L
icon: #SS220 fix_cargo begin
sprite: SS220/Objects/Fun/Lottery.rsi
state: icon
#SS220 fix_cargo end
product: LotteryCash
cost: 5000
category: cargoproduct-category-name-fun
group: market

- type: cargoProduct
id: FunCrateLottery5
icon: #SS220 fix_cargo begin
sprite: Structures/Storage/Crates/privatecrate_secure.rsi
state: icon
#SS220 fix_cargo end
product: CrateCargoLottery5
cost: 23500
category: cargoproduct-category-name-fun
group: market

- type: cargoProduct
id: FunCrateLottery10
icon: #SS220 fix_cargo begin
sprite: Structures/Storage/Crates/privatecrate_secure.rsi
state: icon
#SS220 fix_cargo end
product: CrateCargoLottery10
cost: 45000
category: cargoproduct-category-name-fun
group: market
#SS220 Lottery end
8 changes: 8 additions & 0 deletions Resources/Prototypes/Catalog/Fills/Lockers/misc.yml
Original file line number Diff line number Diff line change
Expand Up @@ -44,6 +44,8 @@
prob: 0.05
- id: BoxMRE
prob: 0.1
- id: LotteryCash #SS220 Lottery
prob: 0.05

- type: entity
id: ClosetWallEmergencyFilledRandom
Expand Down Expand Up @@ -76,6 +78,8 @@
prob: 0.05
- id: BoxMRE
prob: 0.1
- id: LotteryCash #SS220 Lottery
prob: 0.05

- type: entity
id: ClosetFireFilled
Expand Down Expand Up @@ -225,6 +229,8 @@
- id: RandomID
prob: 0.005
orGroup: syndiemaintloot
- id: LotteryCash #SS220 Lottery
prob: 0.05

- type: entity
id: ClosetWallMaintenanceFilledRandom
Expand Down Expand Up @@ -283,6 +289,8 @@
prob: 0.20
- id: ModularReceiver
prob: 0.1
- id: LotteryCash #SS220 Lottery
prob: 0.05
# Syndicate loot
- id: null
prob: 0.95
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -160,6 +160,7 @@
- WelderIndustrial
- SheetPlasteel10
- ClothingMaskGasExplorer
- LotteryCash #SS220 Lottery
rareChance: 0.08
prototypes:
- FlashlightLantern
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -78,6 +78,9 @@
- WeaponCrusherDagger
- WeaponCrusherGlaive
- MiningDrill
rarePrototypes:
- LotteryCash #SS220 Lottery
rareChance: 0.05
offset: 0.0

- type: entity
Expand Down
24 changes: 24 additions & 0 deletions Resources/Prototypes/Entities/Objects/Misc/space_cash.yml
Original file line number Diff line number Diff line change
Expand Up @@ -158,6 +158,30 @@
- type: Stack
count: 30000

#SS220-loxotron begin
- type: entity
parent: SpaceCash
id: SpaceCash50000
suffix: 50000
components:
- type: Icon
sprite: Objects/Economy/cash.rsi
state: cash_1000000
- type: Stack
count: 50000

- type: entity
parent: SpaceCash
id: SpaceCash100000
suffix: 100000
components:
- type: Icon
sprite: Objects/Economy/cash.rsi
state: cash_1000000
- type: Stack
count: 100000
#SS220-loxotron end

- type: entity
parent: SpaceCash
id: SpaceCash1000000
Expand Down
26 changes: 25 additions & 1 deletion Resources/Prototypes/SS220/Catalog/Cargo/cargo_fun.yml
Original file line number Diff line number Diff line change
Expand Up @@ -18,4 +18,28 @@
- type: StorageFill
contents:
- id: VehicleSyndicateSegway
- id: VehicleKeySyndicateSegway
- id: VehicleKeySyndicateSegway

- type: entity
id: CrateCargoLottery5
parent: CratePrivateSecure
name: ящик лотерейных билетов
description: Больше билетов - больше выигрыш! Стань миллионером уже сегодня!
suffix: 5 штук
components:
- type: StorageFill
contents:
- id: LotteryCash
amount: 5

- type: entity
id: CrateCargoLottery10
parent: CrateCargoLottery5
name: большой ящик лотерейных билетов
suffix: 10 штук
components:
- type: StorageFill
contents:
- id: LotteryCash
amount: 10

40 changes: 40 additions & 0 deletions Resources/Prototypes/SS220/Entities/Objects/Misc/lottery.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,40 @@
- type: entity
id: LotteryBase
name: лотерея V&L
description: Лотерея, исполняющая мечты! Стань миллионером прямо сейчас!
abstract: true
components:
- type: Sprite
sprite: SS220/Objects/Fun/Lottery.rsi
state: icon
- type: Item
size: Tiny

- type: entity
id: LotteryCash
parent: [LotteryBase, BaseItem]
components:
- type: SpawnItemsOnUse
items:
- id: SpaceCash1000
orGroup: CashPool
- id: SpaceCash5000
prob: .11
orGroup: CashPool
- id: SpaceCash10000
prob: .055
orGroup: CashPool
- id: SpaceCash20000
prob: .0275
orGroup: CashPool
- id: SpaceCash50000
prob: .011
orGroup: CashPool
- id: SpaceCash100000
prob: .0055
orGroup: CashPool
- id: SpaceCash1000000
prob: .00055
orGroup: CashPool
sound:
path: /Audio/Effects/unwrap.ogg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
14 changes: 14 additions & 0 deletions Resources/Textures/SS220/Objects/Fun/Lottery.rsi/meta.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,14 @@
{
"version": 1,
"license": "EULA/CLA with a hosting restriction, full text: https://raw.githubusercontent.com/SerbiaStrong-220/space-station-14/master/CLA.txt",
"copyright": "Created by glek3197 (Discord) for SS220",
"size": {
"x": 32,
"y": 32
},
"states": [
{
"name": "icon"
}
]
}

0 comments on commit af84383

Please sign in to comment.