mirror of
https://github.com/PolarisSS13/Polaris.git
synced 2025-12-25 01:22:24 +00:00
Fixes runtime with burn wounds not having enough stages.
This commit is contained in:
@@ -208,6 +208,7 @@
|
||||
if(BURN)
|
||||
size_names = typesof(/datum/wound/burn/) - /datum/wound/burn/
|
||||
|
||||
size = min(size,size_names.len)
|
||||
var/wound_type = size_names[size]
|
||||
W = new wound_type(damage)
|
||||
|
||||
|
||||
@@ -172,24 +172,25 @@ datum/wound/cut/massive
|
||||
/datum/wound/bruise/monumental
|
||||
|
||||
// implement sub-paths by starting at a later stage
|
||||
/datum/wound/bruise/huge
|
||||
current_stage = 1
|
||||
|
||||
/datum/wound/bruise/large
|
||||
current_stage = 2
|
||||
|
||||
/datum/wound/bruise/moderate
|
||||
current_stage = 3
|
||||
/datum/wound/bruise/tiny
|
||||
current_stage = 5
|
||||
needs_treatment = 0
|
||||
|
||||
/datum/wound/bruise/small
|
||||
current_stage = 4
|
||||
needs_treatment = 0
|
||||
|
||||
/datum/wound/bruise/tiny
|
||||
current_stage = 5
|
||||
/datum/wound/bruise/moderate
|
||||
current_stage = 3
|
||||
needs_treatment = 0
|
||||
|
||||
/datum/wound/bruise/large
|
||||
current_stage = 2
|
||||
|
||||
/datum/wound/bruise/huge
|
||||
current_stage = 1
|
||||
|
||||
/** BURNS **/
|
||||
/datum/wound/burn/moderate
|
||||
stages = list("ripped burn" = 10, "moderate burn" = 5, "moderate salved burn" = 2, "fresh skin" = 0)
|
||||
|
||||
Reference in New Issue
Block a user