[DiscordArchive] Maybe we could have a Unit::GetDisplayRace() method?
[DiscordArchive] Maybe we could have a Unit::GetDisplayRace() method?
Archived author: Natrist • Posted: 2023-10-28T17:37:21.419000+00:00
Original source
I think it should be under unit.
Archived author: sudlud • Posted: 2023-10-28T17:42:29.690000+00:00
Original source
Creature could overwrite getRace() to return getDisplayRace()
Archived author: Natrist • Posted: 2023-10-28T17:42:43.541000+00:00
Original source
Yeah, that could work
Archived author: Natrist • Posted: 2023-10-28T17:44:49.298000+00:00
Original source
Also personally I would capitalize the first letter of the function. I’m not sure if AC has any standard for code style…
Archived author: Natrist • Posted: 2023-10-28T17:45:58.116000+00:00
Original source
It helps differentiating functions from variables. The same goes for constants being in all uppercase letters.
Archived author: sudlud • Posted: 2023-10-28T17:49:36.606000+00:00
Original source
Yes that’s correct