mirror of
https://github.com/CHOMPstation/CHOMPstation.git
synced 2026-08-23 12:06:22 +01:00
Casino 2: The gambling boogaloo!
- Added walls around casino in space, come on people youre not supposed to spacewalk and steal from it... - A new wall dispenser that gives space cleaner, perfect for janitors on luxury cruisers and casinos - Relay on casino, so finally folks can talk without event manager having to panic about lack of comms >> - Platinum chip can now be flipped like a coin! - Wallets can now hold casino chips and platinum coin, and theres also a casino wallet that can change between 3 designs - Theres now a casino chip exchanger, only accepts cash and doesnt give back change! - Casino now has curtains for some tables so not everyone screams into each others ears - redefined casino manual to include self betting, reduced sentient prize cost, taken out rules with usage of joker card, added group blackjack and Cards against the galaxy.
This commit is contained in:
@@ -18,7 +18,6 @@
|
||||
|
||||
/obj/item/weapon/spacecasinocash/attackby(obj/item/weapon/W as obj, mob/user as mob)
|
||||
if(istype(W, /obj/item/weapon/spacecasinocash))
|
||||
if(istype(W, /obj/item/weapon/spacecasinocash/ewallet)) return 0
|
||||
|
||||
var/obj/item/weapon/spacecasinocash/SC = W
|
||||
|
||||
@@ -144,25 +143,12 @@ proc/spawn_casinochips(var/sum, spawnloc, mob/living/carbon/human/human_user as
|
||||
human_user.put_in_hands(SC)
|
||||
return
|
||||
|
||||
/obj/item/weapon/spacecasinocash/ewallet
|
||||
name = "Casino chip card"
|
||||
icon_state = "efundcard"
|
||||
desc = "A casino card that can hold credits."
|
||||
var/owner_name = "" //So the ATM can set it so the EFTPOS can put a valid name on transactions.
|
||||
attack_self() return //Don't act
|
||||
attackby() return //like actual
|
||||
update_icon() return //space cash
|
||||
|
||||
/obj/item/weapon/spacecasinocash/ewallet/examine(mob/user)
|
||||
..(user)
|
||||
if (!(user in view(2)) && user!=src.loc) return
|
||||
user << "<font color='#6F6FE2'>Casino chip card's owner: [src.owner_name]. credits remaining: [src.worth].</font>"
|
||||
|
||||
/obj/item/weapon/casin_platinum_chip
|
||||
/obj/item/weapon/casino_platinum_chip
|
||||
name = "platinum chip"
|
||||
desc = "Ringa-a-Ding-Ding!"
|
||||
icon = 'icons/obj/casino.dmi'
|
||||
icon_state = "platinum_chip"
|
||||
var/sides = 2
|
||||
opacity = 0
|
||||
density = 0
|
||||
anchored = 0.0
|
||||
@@ -170,4 +156,14 @@ proc/spawn_casinochips(var/sum, spawnloc, mob/living/carbon/human/human_user as
|
||||
throwforce = 1.0
|
||||
throw_speed = 1
|
||||
throw_range = 2
|
||||
w_class = ITEMSIZE_SMALL
|
||||
w_class = ITEMSIZE_SMALL
|
||||
|
||||
/obj/item/weapon/casino_platinum_chip/attack_self(mob/user as mob)
|
||||
var/result = rand(1, sides)
|
||||
var/comment = ""
|
||||
if(result == 1)
|
||||
comment = "Ace"
|
||||
else if(result == 2)
|
||||
comment = "Joker"
|
||||
user.visible_message("<span class='notice'>[user] has thrown \the [src]. It lands on [comment]! </span>", \
|
||||
"<span class='notice'>You throw \the [src]. It lands on [comment]! </span>")
|
||||
@@ -386,3 +386,15 @@
|
||||
/obj/structure/reagent_dispensers/acid/New()
|
||||
..()
|
||||
reagents.add_reagent("sacid", 1000)
|
||||
|
||||
/obj/structure/reagent_dispensers/space_cleaner
|
||||
name = "Space Cleaner Dispenser"
|
||||
desc = "A dispenser of space cleaner, every janitor's dream!"
|
||||
icon = 'icons/obj/objects.dmi'
|
||||
icon_state = "virusfoodtank"
|
||||
amount_per_transfer_from_this = 60
|
||||
anchored = 1
|
||||
|
||||
/obj/structure/reagent_dispensers/space_cleaner/New()
|
||||
..()
|
||||
reagents.add_reagent("cleaner", 3000)
|
||||
|
||||
Reference in New Issue
Block a user