- Jun 21, 2020
- 140
- 225
The many disparate variable thing is pretty much endemic to these Renpy games. It's fairly apparent that they're created by people who are not programmers by nature.Not sure what AccountNo23_III meant. But if I would write something like that, I would omit== true
, because it creates visual noise without changing the logic. The code is shorter/cleaner, the logic is the same:
But AccountNo23_III is overreacting, because this is not even a bad practice, but rather a stylistic preference of the developer. Or maybe I didn't understand the situation properly.Code:if fRegentDisarmed or fRegentEmasculated:
Also, my hands are itching to group disparate variables into structures by meaningregent.{disarmed, emasculated}
. But I'm not a Python/RenPy developer, so I might be missing the reason for using simple types in this case.
Otherwise, obviously I'm overreacting, but I do genuinely dislike this to the point that I'd say it shouldn't be considered a valid stylistic choice or idiom. It just implies that the person who wrote it doesn't know that the expression is already boolean. The only reason I said I don't think that's the case here is because I suspect the code was spat out by a generator of some kind.