mirror of
https://github.com/ParadiseSS13/Paradise.git
synced 2026-07-12 15:45:25 +01:00
- removed the throttle on monkeycube expansion.
This commit is contained in:
@@ -1649,7 +1649,6 @@
|
||||
baconbeacon.digest_delay()
|
||||
|
||||
|
||||
var/lastmonkeycubeexpand = 0
|
||||
/obj/item/weapon/reagent_containers/food/snacks/monkeycube
|
||||
name = "monkey cube"
|
||||
desc = "Just add water!"
|
||||
@@ -1657,7 +1656,6 @@ var/lastmonkeycubeexpand = 0
|
||||
bitesize = 12
|
||||
filling_color = "#ADAC7F"
|
||||
var/monkey_type = "Monkey"
|
||||
var/expanding = 0
|
||||
|
||||
/obj/item/weapon/reagent_containers/food/snacks/monkeycube/New()
|
||||
..()
|
||||
@@ -1665,8 +1663,6 @@ var/lastmonkeycubeexpand = 0
|
||||
|
||||
/obj/item/weapon/reagent_containers/food/snacks/monkeycube/afterattack(obj/O, mob/user, proximity)
|
||||
if(!proximity) return
|
||||
if (expanding == 1)
|
||||
return ..()
|
||||
if(istype(O,/obj/structure/sink) && !wrapped)
|
||||
user << "<span class='notice'>You place [src] under a stream of water...</span>"
|
||||
user.drop_item()
|
||||
@@ -1679,22 +1675,13 @@ var/lastmonkeycubeexpand = 0
|
||||
Unwrap(user)
|
||||
|
||||
/obj/item/weapon/reagent_containers/food/snacks/monkeycube/water_act(volume, temperature)
|
||||
if (expanding == 1)
|
||||
return
|
||||
if(volume >= 5)
|
||||
return Expand()
|
||||
|
||||
/obj/item/weapon/reagent_containers/food/snacks/monkeycube/proc/Expand()
|
||||
if (expanding == 1)
|
||||
return
|
||||
expanding = 1
|
||||
spawn(0)
|
||||
while (world.time - lastmonkeycubeexpand < 2) //do at most one monkeycube every 0.2sec
|
||||
sleep(world.time - lastmonkeycubeexpand)
|
||||
lastmonkeycubeexpand = world.time
|
||||
visible_message("<span class='notice'>[src] expands!</span>")
|
||||
new/mob/living/carbon/human(get_turf(src),monkey_type)
|
||||
qdel(src)
|
||||
visible_message("<span class='notice'>[src] expands!</span>")
|
||||
new/mob/living/carbon/human(get_turf(src),monkey_type)
|
||||
qdel(src)
|
||||
|
||||
/obj/item/weapon/reagent_containers/food/snacks/monkeycube/proc/Unwrap(mob/user)
|
||||
icon_state = "monkeycube"
|
||||
|
||||
Reference in New Issue
Block a user