and finally, the modules folder. Now I can publish and take a break
This commit is contained in:
@@ -105,7 +105,7 @@
|
||||
add_overlay(mutable_appearance(icon, "solar_panel", FLY_LAYER))
|
||||
src.setDir(angle2dir(adir))
|
||||
|
||||
//calculates the fraction of the sunlight that the panel recieves
|
||||
//calculates the fraction of the sunlight that the panel receives
|
||||
/obj/machinery/power/solar/proc/update_solar_exposure()
|
||||
if(obscured)
|
||||
sunfrac = 0
|
||||
@@ -119,7 +119,7 @@
|
||||
return
|
||||
|
||||
sunfrac = cos(p_angle) ** 2
|
||||
//isn't the power recieved from the incoming light proportionnal to cos(p_angle) (Lambert's cosine law) rather than cos(p_angle)^2 ?
|
||||
//isn't the power received from the incoming light proportionnal to cos(p_angle) (Lambert's cosine law) rather than cos(p_angle)^2 ?
|
||||
|
||||
/obj/machinery/power/solar/process()//TODO: remove/add this from machines to save on processing as needed ~Carn PRIORITY
|
||||
if(stat & BROKEN)
|
||||
@@ -423,7 +423,7 @@
|
||||
A.icon_state = "4"
|
||||
A.anchored = TRUE
|
||||
qdel(src)
|
||||
else if(user.a_intent != INTENT_HARM && !(I.flags_1 & NOBLUDGEON_1))
|
||||
else if(user.a_intent != INTENT_HARM && !(I.item_flags & NOBLUDGEON))
|
||||
attack_hand(user)
|
||||
else
|
||||
return ..()
|
||||
|
||||
Reference in New Issue
Block a user