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:
Shadowmech88
2017-01-27 07:32:27 -06:00
committed by Probe1
parent dc14de8469
commit 0147db8032
2 changed files with 4 additions and 0 deletions

View File

@@ -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]

View File

@@ -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]