Skip to content

Commit 1a99b92

Browse files
committed
docs: add info about deprecated first affordability preview system
1 parent f91cf22 commit 1a99b92

3 files changed

Lines changed: 7 additions & 2 deletions

File tree

‎msu/hooks/skills/skill.nut‎

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -62,7 +62,7 @@
6262
q.m.IsBaseValuesSaved <- false;
6363
q.m.ScheduledChanges <- [];
6464

65-
q.m.PreviewField <- {};
65+
q.m.PreviewField <- {}; // Deprecated - part of the first Affordability Preview system
6666

6767
q.isType = @() function( _t, _any = true, _only = false )
6868
{
@@ -334,15 +334,18 @@
334334
{
335335
}
336336

337+
// Deprecated - part of the first Affordability Preview system
337338
q.onAffordablePreview <- function( _skill, _movementTile )
338339
{
339340
}
340341

342+
// Deprecated - part of the first Affordability Preview system
341343
q.modifyPreviewField <- function( _skill, _field, _newChange, _multiplicative )
342344
{
343345
::MSU.Skills.modifyPreview(this, _skill, _field, _newChange, _multiplicative);
344346
}
345347

348+
// Deprecated - part of the first Affordability Preview system
346349
q.modifyPreviewProperty <- function( _skill, _field, _newChange, _multiplicative )
347350
{
348351
::MSU.Skills.modifyPreview(this, null, _field, _newChange, _multiplicative);
@@ -587,6 +590,7 @@
587590
});
588591

589592
::MSU.QueueBucket.VeryLate.push(function() {
593+
// Legacy support for the first Affordablity Preview system which has been deprecated
590594
::MSU.MH.rawHookTree("scripts/skills/skill", function(p) {
591595
local obj = p;
592596
while (!("onAffordablePreview" in obj))

‎msu/hooks/skills/skill_container.nut‎

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -220,6 +220,7 @@
220220
]);
221221
}
222222

223+
// Deprecated - part of the first Affordability Preview system
223224
q.onAffordablePreview <- function( _skill, _movementTile )
224225
{
225226
this.m.PreviewProperty.clear();

‎msu/hooks/ui/screens/tactical/modules/turn_sequence_bar/turn_sequence_bar.nut‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -60,7 +60,7 @@
6060
local previewAP = activeEntity.getPreviewActionPoints();
6161

6262
activeEntity.m.MSU_IsPreviewing = true;
63-
activeEntity.getSkills().onAffordablePreview(skill, movement == null ? null : movement.End);
63+
activeEntity.getSkills().onAffordablePreview(skill, movement == null ? null : movement.End); // Deprecated - part of the first Affordability Preview system
6464
activeEntity.m.MSU_PreviewSkill = skill;
6565
activeEntity.m.MSU_PreviewMovement = movement;
6666
activeEntity.getSkills().update(); // During this update actor.isPreviewing() is true

0 commit comments

Comments
 (0)