Also do transform
This was SVN commit r24441.
This commit is contained in:
parent
6205f687e4
commit
19762acf03
@ -40,8 +40,8 @@ function ChangeEntityTemplate(oldEnt, newTemplate)
|
||||
if (cmpCapturable && cmpNewCapturable)
|
||||
{
|
||||
let scale = cmpCapturable.GetMaxCapturePoints() / cmpNewCapturable.GetMaxCapturePoints();
|
||||
let newCp = cmpCapturable.GetCapturePoints().map(v => v / scale);
|
||||
cmpNewCapturable.SetCapturePoints(newCp);
|
||||
let newCapturePoints = cmpCapturable.GetCapturePoints().map(v => v / scale);
|
||||
cmpNewCapturable.SetCapturePoints(newCapturePoints);
|
||||
}
|
||||
|
||||
// Maintain current health level
|
||||
|
Loading…
Reference in New Issue
Block a user