switchmods fixed session vars, saved to db in d2config class. Need to test d2s editor with modifyBit() function. need to fix app.js uniqueitems editor required fields on misc/weapons/armor

This commit is contained in:
Hash Borgir
2022-05-24 00:16:01 -06:00
parent 16174f5efd
commit 6b4b0c564e
22 changed files with 405 additions and 10360 deletions

View File

@@ -77,4 +77,9 @@ function strtobits(string $str): string {
function swapEndianness($hex) {
return implode('', array_reverse(str_split($hex, 2)));
}
function modifyBit(int $n, int $p, bool $b){
return ($b ? ($n | (1 << $p)) : ($n & ~(1 << $p)) );
}