|
60 | 60 | q.m.IsBaseValuesSaved <- false; |
61 | 61 | q.m.ScheduledChanges <- []; // Deprecated |
62 | 62 |
|
63 | | - q.m.IsApplyingPreview <- false; |
64 | | - q.m.PreviewField <- {}; |
| 63 | + q.m.IsApplyingPreview <- false; // Deprecated - Only needed for the legacy onAffordablePreview system -- use the new onUpdatePreview and onAfterUpdatePreview system |
| 64 | + q.m.PreviewField <- {}; // Deprecated - Only needed for the legacy onAffordablePreview system -- use the new onUpdatePreview and onAfterUpdatePreview system |
65 | 65 |
|
66 | 66 | q.isType = @() function( _t, _any = true, _only = false ) |
67 | 67 | { |
|
345 | 345 | this.onAfterUpdate(_properties); |
346 | 346 | } |
347 | 347 |
|
| 348 | + // Deprecated - Only needed for the legacy onAffordablePreview system -- use the new onUpdatePreview and onAfterUpdatePreview system |
348 | 349 | q.onAffordablePreview <- function( _skill, _movementTile ) |
349 | 350 | { |
350 | 351 | } |
351 | 352 |
|
| 353 | + // Deprecated - Only needed for the legacy onAffordablePreview system -- use the new onUpdatePreview and onAfterUpdatePreview system |
352 | 354 | q.modifyPreviewField <- function( _skill, _field, _newChange, _multiplicative ) |
353 | 355 | { |
354 | 356 | ::MSU.Skills.modifyPreview(this, _skill, _field, _newChange, _multiplicative); |
355 | 357 | } |
356 | 358 |
|
| 359 | + // Deprecated - Only needed for the legacy onAffordablePreview system -- use the new onUpdatePreview and onAfterUpdatePreview system |
357 | 360 | q.modifyPreviewProperty <- function( _skill, _field, _newChange, _multiplicative ) |
358 | 361 | { |
359 | 362 | ::MSU.Skills.modifyPreview(this, null, _field, _newChange, _multiplicative); |
|
496 | 499 |
|
497 | 500 | ::MSU.QueueBucket.VeryLate.push(function() { |
498 | 501 | ::MSU.MH.hook("scripts/skills/skill", function(q) { |
| 502 | + // Deprecated - Only needed for the legacy onAffordablePreview system -- use the new onUpdatePreview and onAfterUpdatePreview system |
499 | 503 | foreach (func in ::MSU.Skills.PreviewApplicableFunctions) |
500 | 504 | { |
501 | 505 | q[func] = @(__original) function() |
|
557 | 561 | } |
558 | 562 | } |
559 | 563 |
|
| 564 | + // Deprecated - Only needed for the legacy onAffordablePreview system -- use the new onUpdatePreview and onAfterUpdatePreview system |
560 | 565 | q.isAffordablePreview = @(__original) function() |
561 | 566 | { |
562 | 567 | if (!this.getContainer().m.IsPreviewing) return __original(); |
|
0 commit comments