Open Somdy opened 2 years ago
现在是假期。已经收到您的来信,我会尽快回复。
这是来自QQ邮箱的假期自动回复邮件。您好,我最近正在休假中,无法亲自回复您的邮件。我将在假期结束后,尽快给您回复。
10 - this.amount + hand.size()
10 - (this.amount + hand.size())
100% pointless in this case.
10 - this.amount + hand.size()
10 - (this.amount + hand.size())
100% pointless in this case.
@rautamiekka are u sure? i don't know what the case is you are saying and in my example 10-1+2=11 but 10-(1+2)=7
can you show your class file
can you show your class file
@L-ios no. it's the code of a game on Steam called Slay the Spire and i think it's copyrighted so i won't put the class file here. but i am sure the game would run in a completely wrong logic if the parentheses were missing.
这是来自QQ邮箱的假期自动回复邮件。 您好,我最近正在休假中,无法亲自回复您的邮件。我将在假期结束后,尽快给您回复。
10 - this.amount + hand.size()
10 - (this.amount + hand.size())
100% pointless in this case.@rautamiekka are u sure? i don't know what the case is you are saying and in my example 10-1+2=11 but 10-(1+2)=7
Sigh ... I hate math ...
This may happen occasionally that decompiled codes are missing some parentheses. Not the parentheses that are parts of methods or constructors, but the ones in some calculation statements. An example are as following.
This is decompiled by jd.
This is decompiled by IDEA.
It is notable that a local var
handSizeAndDraw
is assigned by a statement10 - this.amount + hand.size()
while the statement is10 - (this.amount + hand.size())
in IDEA. The latter is correct after debugging it.