mirror of
https://github.com/ParadiseSS13/Paradise.git
synced 2026-08-24 20:47:10 +01:00
Changes all .len to length() where applicable (#25174)
* Globals work
* Double access works
* All other things
* Revert "All other things"
This reverts commit 6574442eb6.
* More changes that compile and work
* IT WORKS AAAAAA
* Changes even more .len to length()
* Apply suggestions from code review
* Update code/datums/mind.dm
* Update code/__HELPERS/sorts/InsertSort.dm
Co-authored-by: Deniz <66401072+Oyu07@users.noreply.github.com>
* Update code/__HELPERS/sanitize_values.dm
Co-authored-by: Deniz <66401072+Oyu07@users.noreply.github.com>
---------
Co-authored-by: FunnyMan3595 (Charlie Nolan) <funnyman@google.com>
Co-authored-by: Deniz <66401072+Oyu07@users.noreply.github.com>
This commit is contained in:
co-authored by
Deniz
FunnyMan3595
parent
bdd417ada0
commit
bad8b31afa
@@ -385,13 +385,13 @@
|
||||
/obj/machinery/power/solar_control/ui_data(mob/user)
|
||||
var/list/data = list()
|
||||
data["generated"] = round(lastgen) //generated power by all connected panels
|
||||
data["generated_ratio"] = data["generated"] / round(max(connected_panels.len, 1) * SSsun.solar_gen_rate) //power generation ratio. Used for the power bar
|
||||
data["generated_ratio"] = data["generated"] / round(max(length(connected_panels), 1) * SSsun.solar_gen_rate) //power generation ratio. Used for the power bar
|
||||
data["direction"] = angle2text(cdir) //current orientation of the panels
|
||||
data["cdir"] = cdir //current orientation of the of the panels in degrees
|
||||
data["tracking_state"] = track //tracker status: TRACKER_OFF, TRACKER_TIMED, TRACKER_AUTO
|
||||
data["tracking_rate"] = trackrate //rotation speed of tracker in degrees/h
|
||||
data["rotating_direction"] = (trackrate < 0 ? "Counter clockwise" : "Clockwise") //direction of tracker
|
||||
data["connected_panels"] = connected_panels.len
|
||||
data["connected_panels"] = length(connected_panels)
|
||||
data["connected_tracker"] = (connected_tracker ? TRUE : FALSE)
|
||||
return data
|
||||
|
||||
|
||||
Reference in New Issue
Block a user