mirror of
https://github.com/ParadiseSS13/Paradise.git
synced 2026-08-27 22:17:32 +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
@@ -254,7 +254,7 @@
|
||||
// High brute damage or sharp objects may damage internal organs
|
||||
if(internal_organs && (brute_dam >= max_limb_damage || (((sharp && brute >= LIMB_SHARP_THRESH_INT_DMG) || brute >= LIMB_THRESH_INT_DMG) && prob(LIMB_DMG_PROB))))
|
||||
// Damage an internal organ
|
||||
if(internal_organs && internal_organs.len)
|
||||
if(internal_organs && length(internal_organs))
|
||||
var/obj/item/organ/internal/I = pick(internal_organs)
|
||||
I.receive_damage(brute * 0.5)
|
||||
|
||||
@@ -304,9 +304,9 @@
|
||||
for(var/organ in children)
|
||||
if(organ)
|
||||
possible_points += organ
|
||||
if(forbidden_limbs.len)
|
||||
if(length(forbidden_limbs))
|
||||
possible_points -= forbidden_limbs
|
||||
if(possible_points.len)
|
||||
if(length(possible_points))
|
||||
//And pass the pain around
|
||||
var/obj/item/organ/external/target = pick(possible_points)
|
||||
target.receive_damage(brute, burn, sharp, used_weapon, forbidden_limbs + src, ignore_resists = TRUE) //If the damage was reduced before, don't reduce it again
|
||||
@@ -464,7 +464,7 @@ Note that amputating the affected organ does in fact remove the infection from t
|
||||
for(var/obj/item/organ/internal/I in internal_organs)
|
||||
if(I.germ_level < germ_level)
|
||||
candidate_organs |= I
|
||||
if(candidate_organs.len)
|
||||
if(length(candidate_organs))
|
||||
target_organ = pick(candidate_organs)
|
||||
|
||||
if(target_organ)
|
||||
|
||||
Reference in New Issue
Block a user