next new to init (#17400)

* next new to init

* .

* this needs thorough testing

* .

* needs an istype

* also vnotice

* mvoe to defines
This commit is contained in:
Kashargul
2025-03-24 06:18:39 -04:00
committed by GitHub
parent 8a4ac36d15
commit d3b7ba8b43
141 changed files with 529 additions and 601 deletions
+17 -16
View File
@@ -11,7 +11,8 @@
var/tamper_proof = FALSE //Set to TRUE if the die needs to be unable to be weighted, such as for events
attack_verb = list("diced")
/obj/item/dice/New()
/obj/item/dice/Initialize(mapload)
. = ..()
icon_state = "[name][rand(1,sides)]"
/obj/item/dice/attackby(obj/item/W, mob/user)
@@ -126,10 +127,10 @@
drop_sound = 'sound/items/drop/hat.ogg'
pickup_sound = 'sound/items/pickup/hat.ogg'
/obj/item/storage/pill_bottle/dice/New()
..()
/obj/item/storage/pill_bottle/dice/Initialize(mapload)
. = ..()
for(var/i = 1 to 7)
new /obj/item/dice( src )
new /obj/item/dice(src)
/obj/item/storage/pill_bottle/dice_nerd //DnD dice
name = "bag of gaming dice"
@@ -139,15 +140,15 @@
drop_sound = 'sound/items/drop/hat.ogg'
pickup_sound = 'sound/items/pickup/hat.ogg'
/obj/item/storage/pill_bottle/dice_nerd/New()
..()
new /obj/item/dice/d4( src )
new /obj/item/dice( src )
new /obj/item/dice/d8( src )
new /obj/item/dice/d10( src )
new /obj/item/dice/d12( src )
new /obj/item/dice/d20( src )
new /obj/item/dice/d100( src )
/obj/item/storage/pill_bottle/dice_nerd/Initialize(mapload)
. = ..()
new /obj/item/dice/d4(src)
new /obj/item/dice(src)
new /obj/item/dice/d8(src)
new /obj/item/dice/d10(src)
new /obj/item/dice/d12(src)
new /obj/item/dice/d20(src)
new /obj/item/dice/d100(src)
/*
*Liar's Dice cup
@@ -198,7 +199,7 @@
revealDice(player)
/obj/item/storage/dicecup/loaded/New()
..()
/obj/item/storage/dicecup/loaded/Initialize(mapload)
. = ..()
for(var/i = 1 to 5)
new /obj/item/dice( src )
new /obj/item/dice(src)