mirror of
https://github.com/Aurorastation/Aurora.3.git
synced 2026-08-23 04:51:32 +01:00
Weighted die fixes (#13372)
This commit is contained in:
@@ -35,7 +35,6 @@
|
||||
var/list/results = list()
|
||||
for(var/i = 1 to amount)
|
||||
if(weight_roll && prob(weight_roll))
|
||||
message_admins("hit weight roll")
|
||||
results += favored_number
|
||||
else
|
||||
results += rand(1, sides)
|
||||
|
||||
@@ -2062,7 +2062,10 @@ All custom items with worn sprites must follow the contained sprite system: http
|
||||
weight_roll = 22
|
||||
|
||||
/obj/item/stack/dice/fluff/suraya_dice/AltClick(mob/user)
|
||||
if(!weight_roll)
|
||||
if(user.get_active_hand() != src)
|
||||
return ..()
|
||||
|
||||
if(weight_roll)
|
||||
user.visible_message("<b>\The [user]</b> jiggles \the [src] around in their hand for a second.", SPAN_NOTICE("You jiggle the die rapidly in your hand, resetting the internal weighting."))
|
||||
weight_roll = 0
|
||||
else
|
||||
|
||||
Reference in New Issue
Block a user