-
Notifications
You must be signed in to change notification settings - Fork 21
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Implement SecNum for monster stats damage/HP #110
base: main
Are you sure you want to change the base?
Conversation
These changes have also been implemented for the inferno monsters (forgot tomention) |
@@ -480,6 +480,11 @@ package | |||
{ | |||
var _loc2_:Object = _guardians["G" + param1]; | |||
var _loc3_:Object = _loc2_.props; | |||
for (var temp = 0; temp < _loc3_.health.length; temp++) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Hey @AMXBus - would you mind explaining the reason for introducing this loop here? I noticed it's also called "temp", is this accidentally included in the PR?
@@ -31,7 +31,7 @@ package | |||
_guardianList.length = 0; | |||
} | |||
|
|||
public static function GetProperty(param1:String, param2:String, param3:int = 0, param4:Boolean = true) : Number | |||
public static function GetProperty(param1:String, param2:String, param3:int = 0, param4:Boolean = true) : * |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Is it safe to do this? Should we not always expect a number returned from this function? Rather than anything? Or is there a good reason why we did this?
@@ -1131,7 +1132,20 @@ package | |||
{ | |||
var _loc2_:Object = _creatures[param1]; | |||
var _loc3_:Object = _loc2_.props; | |||
tmpArray.push([_loc2_.page,_loc2_.resource,_loc2_.time,_loc2_.level,_loc2_.trainingCosts,_loc3_.speed,_loc3_.health,_loc3_.damage,_loc3_.armor,_loc3_.accuracy,_loc3_.cTime,_loc3_.cResource,_loc3_.cStorage,_loc3_.bucket,_loc3_.size]); | |||
for (var temp = 0; temp < _loc2_.trainingCosts.length; temp++) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Similar question here; what's the reasoning for introducing new code here? is it absolutely necessary for this to work? I see this one is also called "temp", if it's needed and there's a good reason for this, then we should definitely rename these vars.
I need a good insight into this, as I'm a little skeptical about introducing new code into the client unless absolutely necessary.
Another SecNum change but these are a bit more complex.
Main things to note: