Yummy bugfixes

This commit is contained in:
Cadyn
2020-10-27 19:58:49 -07:00
parent 2fde2bba09
commit 947fe850ff
5 changed files with 21 additions and 12 deletions

View File

@@ -68,7 +68,7 @@
item_state = "candlebox5" item_state = "candlebox5"
throwforce = 2 throwforce = 2
slot_flags = SLOT_BELT slot_flags = SLOT_BELT
max_storage_space = ITEMSIZE_COST_SMALL * 5 max_storage_space = ITEMSIZE_COST_TINY * 5 //CHOMPEdit
starts_with = list(/obj/item/weapon/flame/candle = 5) starts_with = list(/obj/item/weapon/flame/candle = 5)
/obj/item/weapon/storage/fancy/whitecandle_box /obj/item/weapon/storage/fancy/whitecandle_box
@@ -80,7 +80,7 @@
item_state = "whitecandlebox5" item_state = "whitecandlebox5"
throwforce = 2 throwforce = 2
slot_flags = SLOT_BELT slot_flags = SLOT_BELT
max_storage_space = ITEMSIZE_COST_SMALL * 5 max_storage_space = ITEMSIZE_COST_TINY * 5 //CHOMPEdit
starts_with = list(/obj/item/weapon/flame/candle/white = 5) starts_with = list(/obj/item/weapon/flame/candle/white = 5)
/obj/item/weapon/storage/fancy/blackcandle_box /obj/item/weapon/storage/fancy/blackcandle_box
@@ -92,7 +92,7 @@
item_state = "blackcandlebox5" item_state = "blackcandlebox5"
throwforce = 2 throwforce = 2
slot_flags = SLOT_BELT slot_flags = SLOT_BELT
max_storage_space = ITEMSIZE_COST_SMALL * 5 max_storage_space = ITEMSIZE_COST_TINY * 5 //CHOMPEdit
starts_with = list(/obj/item/weapon/flame/candle/black = 5) starts_with = list(/obj/item/weapon/flame/candle/black = 5)

View File

@@ -184,9 +184,12 @@
return TOPIC_REFRESH return TOPIC_REFRESH
else if(href_list["clicked_pos_trait"]) else if(href_list["clicked_pos_trait"])
var/traitpath = text2path(href_list["clicked_pos_trait"]) //CHOMPEdit
var/datum/trait/trait = text2path(href_list["clicked_pos_trait"]) var/datum/trait/trait = text2path(href_list["clicked_pos_trait"])
var/choice = alert("Remove [initial(trait.name)] and regain [initial(trait.cost)] points?","Remove Trait","Remove","Cancel") var/choice = alert("Remove [initial(trait.name)] and regain [initial(trait.cost)] points?","Remove Trait","Remove","Cancel")
if(choice == "Remove") if(choice == "Remove")
if(traitpath == /datum/trait/linguist) //CHOMPEdit
pref.num_languages = 0 //CHOMPEdit
pref.pos_traits -= trait pref.pos_traits -= trait
return TOPIC_REFRESH return TOPIC_REFRESH
@@ -287,7 +290,8 @@
alert("You cannot take this trait and [conflict] at the same time. \ alert("You cannot take this trait and [conflict] at the same time. \
Please remove that trait, or pick another trait to add.","Error") Please remove that trait, or pick another trait to add.","Error")
return TOPIC_REFRESH return TOPIC_REFRESH
if(path==/datum/trait/linguist) //CHOMPEdit
pref.num_languages = 12 //CHOMPEdit
mylist += path mylist += path
return TOPIC_REFRESH return TOPIC_REFRESH

View File

@@ -77,12 +77,16 @@
update_lighting() update_lighting()
/obj/item/integrated_circuit/output/light/proc/update_lighting() /obj/item/integrated_circuit/output/light/proc/update_lighting()
if(light_toggled) //CHOMPEdit Begin
if(assembly) if(assembly)
assembly.set_light(l_range = light_brightness, l_power = light_brightness, l_color = light_rgb) var/atom/light_source = assembly
else if(istype(assembly,/obj/item/device/electronic_assembly/clothing))
if(assembly) light_source = assembly.loc
assembly.set_light(0) if(light_toggled)
light_source.set_light(l_range = light_brightness, l_power = light_brightness, l_color = light_rgb)
else
light_source.set_light(0)
//CHOMPEdit End
power_draw_idle = light_toggled ? light_brightness * light_brightness : 0 // Should be the same draw as regular lights. power_draw_idle = light_toggled ? light_brightness * light_brightness : 0 // Should be the same draw as regular lights.
/obj/item/integrated_circuit/output/light/power_fail() // Turns off the flashlight if there's no power left. /obj/item/integrated_circuit/output/light/power_fail() // Turns off the flashlight if there's no power left.

View File

@@ -71,9 +71,10 @@
H.loneliness_stage -= 4 H.loneliness_stage -= 4
return return
// Check for company. // Check for company.
for(var/mob/living/M in viewers(H)) for(var/mob/living/M in viewers(get_turf(H)))
if(check_mob_company(H,M)) if(check_mob_company(H,M))
return return
//Check to see if there's anyone in our belly
if(H.vore_organs) if(H.vore_organs)
for(var/obj/belly/B in H.vore_organs) for(var/obj/belly/B in H.vore_organs)
for(var/mob/living/content in B.contents) for(var/mob/living/content in B.contents)

View File

@@ -150,7 +150,7 @@
return return
var/can_hold_val = 0 var/can_hold_val = 0
while(can_hold_val < round(max_mat_storage / 2000)) while(can_hold_val < M.amount) //CHOMPEdit
if(mat_storage + 2000 <= max_mat_storage && do_after(user,1.5 SECONDS)) if(mat_storage + 2000 <= max_mat_storage && do_after(user,1.5 SECONDS))
can_hold_val ++ can_hold_val ++
mat_storage += 2000 mat_storage += 2000