User talk:Armithaig
Jump to navigation
Jump to search
Hey, why did you do the roll back of https://wiki.cavesofqud.com/index.php?title=Modding:Events&curid=8683&diff=86909&oldid=86908 ?
The value is 16, not 10. 10 is CASCADE_INVENTORY + CASCADE_COMPONENTS
- Ello, was hoping the rollback action'd let me provide a comment but that wasn't the case.
- The
0x
prefix in C# indicates the defined integer literal is hexadecimal (the0b
in the comments indicates binary). - You are correct that the decimal value is 16, but in base 16 this is written
10
or0x10
with the C# prefix, each character (from 0 to F/15) here representing the value of a nibble (four bits) in a byte or beyond. - Afraid that
0x16
would be 22 in base 10. Your OS should have a calculator that can convert numerical bases, if you wish to confirm c: (the windows one requires entering the "programmer view"). - Armithaig (talk) 20:07, 15 February 2023 (UTC)
- Ah you are correct. I somehow read over the 0x since in the disassembled code it just says "public const int CASCADE_EXCEPT_THROWN_WEAPON = 16;" for me.
- Glass zebra (talk) 22:17, 15 February 2023 (UTC)