Merge pull request #12205 from Ghommie/Ghommie-cit741
A few runtimes, fixed.
This commit is contained in:
@@ -209,10 +209,9 @@
|
|||||||
var/obj/item/reagent_containers/food/food_result = I
|
var/obj/item/reagent_containers/food/food_result = I
|
||||||
var/total_quality = 0
|
var/total_quality = 0
|
||||||
var/total_items = 0
|
var/total_items = 0
|
||||||
for(var/obj/item/ingredient in parts)
|
for(var/obj/item/reagent_containers/food/ingredient in parts)
|
||||||
var/obj/item/reagent_containers/food/food_ingredient = ingredient
|
|
||||||
total_items += 1
|
total_items += 1
|
||||||
total_quality += food_ingredient.food_quality
|
total_quality += ingredient.food_quality
|
||||||
if(total_items == 0)
|
if(total_items == 0)
|
||||||
food_result.adjust_food_quality(50)
|
food_result.adjust_food_quality(50)
|
||||||
else
|
else
|
||||||
|
|||||||
+4
-3
@@ -152,10 +152,11 @@
|
|||||||
return .
|
return .
|
||||||
|
|
||||||
/datum/dna/proc/generate_dna_blocks()
|
/datum/dna/proc/generate_dna_blocks()
|
||||||
var/bonus
|
var/list/mutations_temp = GLOB.good_mutations + GLOB.bad_mutations + GLOB.not_good_mutations
|
||||||
if(species && species.inert_mutation)
|
if(species && species.inert_mutation)
|
||||||
bonus = GET_INITIALIZED_MUTATION(species.inert_mutation)
|
var/bonus = GET_INITIALIZED_MUTATION(species.inert_mutation)
|
||||||
var/list/mutations_temp = GLOB.good_mutations + GLOB.bad_mutations + GLOB.not_good_mutations + bonus
|
if(bonus)
|
||||||
|
mutations_temp += bonus
|
||||||
if(!LAZYLEN(mutations_temp))
|
if(!LAZYLEN(mutations_temp))
|
||||||
return
|
return
|
||||||
mutation_index.Cut()
|
mutation_index.Cut()
|
||||||
|
|||||||
@@ -55,8 +55,9 @@
|
|||||||
if(isclosedturf(T))
|
if(isclosedturf(T))
|
||||||
continue
|
continue
|
||||||
possible_ends |= T
|
possible_ends |= T
|
||||||
var/turf/end = pick(possible_ends)
|
if(length(possible_ends))
|
||||||
do_teleport(src, end, 0, channel=TELEPORT_CHANNEL_BLUESPACE, forced = TRUE)
|
var/turf/end = pick(possible_ends)
|
||||||
|
do_teleport(src, end, 0, channel=TELEPORT_CHANNEL_BLUESPACE, forced = TRUE)
|
||||||
SLEEP_CHECK_DEATH(8)
|
SLEEP_CHECK_DEATH(8)
|
||||||
return ..()
|
return ..()
|
||||||
|
|
||||||
|
|||||||
@@ -63,7 +63,7 @@
|
|||||||
..(gibbed)
|
..(gibbed)
|
||||||
|
|
||||||
/mob/living/simple_animal/hostile/asteroid/proc/spawn_crusher_loot()
|
/mob/living/simple_animal/hostile/asteroid/proc/spawn_crusher_loot()
|
||||||
butcher_results[crusher_loot] = 1
|
LAZYSET(butcher_results, crusher_loot, 1)
|
||||||
|
|
||||||
/mob/living/simple_animal/hostile/asteroid/handle_temperature_damage()
|
/mob/living/simple_animal/hostile/asteroid/handle_temperature_damage()
|
||||||
if(bodytemperature < minbodytemp)
|
if(bodytemperature < minbodytemp)
|
||||||
|
|||||||
Reference in New Issue
Block a user