mirror of
https://github.com/Bubberstation/Bubberstation.git
synced 2026-08-22 20:48:56 +01:00
Makes some more lists lazy (#94388)
Co-authored-by: SyncIt21 <110812394+SyncIt21@users.noreply.github.com> Co-authored-by: MrMelbert <51863163+MrMelbert@users.noreply.github.com>
This commit is contained in:
co-authored by
SyncIt21
MrMelbert
parent
b88e1a1328
commit
53ed83bb9d
@@ -91,7 +91,7 @@
|
||||
dmgreport += "</tr>"
|
||||
dmgreport += "<tr><td colspan=6>↳ Physical trauma: <u>Dismembered</u></td></tr>"
|
||||
continue
|
||||
var/has_any_embeds = length(limb.embedded_objects) >= 1
|
||||
var/has_any_embeds = LAZYLEN(limb.embedded_objects) >= 1
|
||||
var/has_any_wounds = length(limb.wounds) >= 1
|
||||
dmgreport += "<tr>"
|
||||
dmgreport += "<td><b>[capitalize(limb.name)]:</b></td>"
|
||||
|
||||
@@ -252,7 +252,7 @@
|
||||
dmgreport += "</tr>"
|
||||
dmgreport += "<tr><td colspan=6><span class='alert ml-2'>↳ Physical trauma: [conditional_tooltip("Dismembered", "Reattach or replace surgically.", tochat)]</span></td></tr>"
|
||||
continue
|
||||
var/has_any_embeds = length(limb.embedded_objects) >= 1
|
||||
var/has_any_embeds = LAZYLEN(limb.embedded_objects) >= 1
|
||||
var/has_any_wounds = length(limb.wounds) >= 1
|
||||
var/is_damaged = limb.burn_dam > 0 || limb.brute_dam > 0
|
||||
if(!is_damaged && (zone != BODY_ZONE_CHEST || (tox_loss <= 0 && oxy_loss <= 0)) && !has_any_embeds && !has_any_wounds)
|
||||
|
||||
Reference in New Issue
Block a user