#MoreDice2016 (#2016)

* Adds more dice

* Adds sprites, fixes some pathing
This commit is contained in:
Anewbe
2016-07-03 13:48:28 -05:00
committed by Yoshax
parent 1ddc30a0ec
commit f375595d30
4 changed files with 60 additions and 8 deletions

View File

@@ -10,12 +10,42 @@
/obj/item/weapon/dice/New() /obj/item/weapon/dice/New()
icon_state = "[name][rand(1,sides)]" icon_state = "[name][rand(1,sides)]"
/obj/item/weapon/dice/d4
name = "d4"
desc = "A dice with four sides."
icon_state = "d44"
sides = 4
/obj/item/weapon/dice/d8
name = "d8"
desc = "A dice with eight sides."
icon_state = "d88"
sides = 8
/obj/item/weapon/dice/d10
name = "d10"
desc = "A dice with ten sides."
icon_state = "d1010"
sides = 10
/obj/item/weapon/dice/d12
name = "d12"
desc = "A dice with twelve sides."
icon_state = "d1212"
sides = 12
/obj/item/weapon/dice/d20 /obj/item/weapon/dice/d20
name = "d20" name = "d20"
desc = "A dice with twenty sides." desc = "A dice with twenty sides."
icon_state = "d2020" icon_state = "d2020"
sides = 20 sides = 20
/obj/item/weapon/dice/d100
name = "d100"
desc = "A dice with ten sides. This one is for the tens digit."
icon_state = "d10010"
sides = 10
/obj/item/weapon/dice/attack_self(mob/user as mob) /obj/item/weapon/dice/attack_self(mob/user as mob)
var/result = rand(1, sides) var/result = rand(1, sides)
var/comment = "" var/comment = ""

View File

@@ -1,11 +1,29 @@
/obj/item/weapon/storage/pill_bottle/dice /obj/item/weapon/storage/pill_bottle/dice //7d6
name = "pack of dice" name = "bag of dice"
desc = "It's a small container with dice inside." desc = "It's a small bag with dice inside."
icon = 'icons/obj/dice.dmi'
icon_state = "dicebag"
New() /obj/item/weapon/storage/pill_bottle/dice/New()
..() ..()
for(var/i = 1 to 7)
new /obj/item/weapon/dice( src ) new /obj/item/weapon/dice( src )
new /obj/item/weapon/dice/d20( src )
/obj/item/weapon/storage/pill_bottle/dice_nerd //DnD dice
name = "bag of gaming dice"
desc = "It's a small bag with gaming dice inside."
icon = 'icons/obj/dice.dmi'
icon_state = "magicdicebag"
/obj/item/weapon/storage/pill_bottle/dice_nerd/New()
..()
new /obj/item/weapon/dice/d4( src )
new /obj/item/weapon/dice( src )
new /obj/item/weapon/dice/d8( src )
new /obj/item/weapon/dice/d10( src )
new /obj/item/weapon/dice/d12( src )
new /obj/item/weapon/dice/d20( src )
new /obj/item/weapon/dice/d100( src )
/* /*
* Donut Box * Donut Box

View File

@@ -3,8 +3,12 @@
path = /obj/item/weapon/cane path = /obj/item/weapon/cane
/datum/gear/dice /datum/gear/dice
display_name = "d20" display_name = "dice pack"
path = /obj/item/weapon/dice/d20 path = /obj/item/weapon/storage/pill_bottle/dice
/datum/gear/dice/nerd
display_name = "dice pack (gaming)"
path = /obj/item/weapon/storage/pill_bottle/dice_nerd
/datum/gear/cards /datum/gear/cards
display_name = "deck of cards" display_name = "deck of cards"

Binary file not shown.

Before

Width:  |  Height:  |  Size: 2.6 KiB

After

Width:  |  Height:  |  Size: 2.9 KiB