mirror of
https://github.com/vgstation-coders/vgstation13.git
synced 2025-12-10 10:21:11 +00:00
No-fruits and no-fruit pies now have mouse_opacity set to 2 while cycling, making every cycle have exactly the same clickable area. (#13613)
Each no-fruit and no-fruit pie has its own randomly shuffled result list, through which it cycles uniformly.
This commit is contained in:
@@ -4306,6 +4306,7 @@
|
||||
reagents.add_reagent(NOTHING, 20)
|
||||
bitesize = 10
|
||||
available_snacks = existing_typesof(/obj/item/weapon/reagent_containers/food/snacks) - typesof(/obj/item/weapon/reagent_containers/food/snacks/grown) - typesof(/obj/item/weapon/reagent_containers/food/snacks/customizable)
|
||||
available_snacks = shuffle(available_snacks)
|
||||
|
||||
/obj/item/weapon/reagent_containers/food/snacks/pie/nofruitpie/verb/pick_leaf()
|
||||
set name = "Pick no-fruit pie leaf"
|
||||
@@ -4345,6 +4346,7 @@
|
||||
|
||||
/obj/item/weapon/reagent_containers/food/snacks/pie/nofruitpie/proc/randomize()
|
||||
switching = 1
|
||||
mouse_opacity = 2
|
||||
spawn()
|
||||
while(switching)
|
||||
current_path = available_snacks[counter]
|
||||
|
||||
@@ -877,6 +877,7 @@
|
||||
/obj/item/weapon/reagent_containers/food/snacks/grown/nofruit/New()
|
||||
..()
|
||||
available_fruits = existing_typesof(/obj/item/weapon/reagent_containers/food/snacks/grown)
|
||||
available_fruits = shuffle(available_fruits)
|
||||
|
||||
/obj/item/weapon/reagent_containers/food/snacks/grown/nofruit/verb/pick_leaf()
|
||||
set name = "Pick no-fruit leaf"
|
||||
@@ -917,6 +918,7 @@
|
||||
|
||||
/obj/item/weapon/reagent_containers/food/snacks/grown/nofruit/proc/randomize()
|
||||
switching = 1
|
||||
mouse_opacity = 2
|
||||
spawn()
|
||||
while(switching)
|
||||
current_path = available_fruits[counter]
|
||||
|
||||
Reference in New Issue
Block a user