restoreResources
restoreResources(
entity,saved):void
Lays a save’s amounts on the resources entity has, after they are
declared and her stats restored, with nothing held back, and takes
each restored resource out of every reservation: a reload ends what
held them. One she lacks, one no defineResource made, or one defined
with saved: false, is left out, so it keeps where it starts. The
first step caps each at its maximum. Its names are a save’s, text from
outside the program.
Parameters
Section titled “Parameters”| Parameter | Type |
|---|---|
entity |
Entity |
saved |
SavedResources |
Returns
Section titled “Returns”void