Commit 60f70eb
committed
feat(commands): refactor handleInput with ON/OFF split, BAR validation, Aura1/2 commands, and post-change snapshot
Split !aura on/off into two explicit cases so on always enables and off
always disables, replacing the previous toggle on the on case.
Add input validation for !aura bar: accepts only 1, 2, or 3; whispers
confirmation and immediately calls menuForceUpdate on a valid change;
whispers a clear error on an invalid value.
Add new Aura 1/2 commands: !aura a1shape, !aura a1tint, !aura a2size,
!aura a2shape, !aura a2tint — each validated through normalizeShape or
normalizeHex6 before updating state.
Add !aura reset-fx and !aura reset-all recovery commands backed by
resetDefaultFxObjects and runResetAllFlow respectively.
Add !aura settings to output the current settings snapshot on demand.
Introduce a changedSetting flag: when any setting changes, call
showSettingsInGameChat instead of showMenu to post a single read-only
snapshot to game chat; non-mutating commands still show the GM menu.
Call syncDefaultFxObjects immediately after HEAL and HURT color changes.
Signed-off-by: Steve Roberts <steve@shadowcomputers.co.uk>1 parent 7b4cba4 commit 60f70eb
1 file changed
+84
-4
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1258 | 1258 | | |
1259 | 1259 | | |
1260 | 1260 | | |
| 1261 | + | |
1261 | 1262 | | |
1262 | 1263 | | |
1263 | 1264 | | |
1264 | 1265 | | |
1265 | 1266 | | |
| 1267 | + | |
| 1268 | + | |
| 1269 | + | |
1266 | 1270 | | |
1267 | | - | |
| 1271 | + | |
| 1272 | + | |
| 1273 | + | |
| 1274 | + | |
| 1275 | + | |
| 1276 | + | |
1268 | 1277 | | |
1269 | 1278 | | |
1270 | | - | |
| 1279 | + | |
| 1280 | + | |
| 1281 | + | |
| 1282 | + | |
| 1283 | + | |
| 1284 | + | |
| 1285 | + | |
| 1286 | + | |
| 1287 | + | |
| 1288 | + | |
1271 | 1289 | | |
1272 | 1290 | | |
1273 | 1291 | | |
| 1292 | + | |
1274 | 1293 | | |
1275 | 1294 | | |
1276 | 1295 | | |
1277 | 1296 | | |
| 1297 | + | |
1278 | 1298 | | |
1279 | 1299 | | |
1280 | 1300 | | |
| 1301 | + | |
1281 | 1302 | | |
1282 | 1303 | | |
1283 | 1304 | | |
| 1305 | + | |
1284 | 1306 | | |
1285 | 1307 | | |
1286 | 1308 | | |
| 1309 | + | |
1287 | 1310 | | |
1288 | 1311 | | |
1289 | 1312 | | |
| 1313 | + | |
1290 | 1314 | | |
1291 | 1315 | | |
1292 | 1316 | | |
| 1317 | + | |
1293 | 1318 | | |
1294 | 1319 | | |
1295 | 1320 | | |
| 1321 | + | |
1296 | 1322 | | |
1297 | 1323 | | |
1298 | 1324 | | |
| 1325 | + | |
1299 | 1326 | | |
1300 | 1327 | | |
1301 | 1328 | | |
| 1329 | + | |
1302 | 1330 | | |
1303 | 1331 | | |
1304 | 1332 | | |
| 1333 | + | |
1305 | 1334 | | |
1306 | 1335 | | |
1307 | 1336 | | |
| 1337 | + | |
| 1338 | + | |
| 1339 | + | |
| 1340 | + | |
| 1341 | + | |
| 1342 | + | |
| 1343 | + | |
| 1344 | + | |
| 1345 | + | |
| 1346 | + | |
| 1347 | + | |
| 1348 | + | |
| 1349 | + | |
| 1350 | + | |
| 1351 | + | |
| 1352 | + | |
| 1353 | + | |
| 1354 | + | |
| 1355 | + | |
| 1356 | + | |
| 1357 | + | |
| 1358 | + | |
| 1359 | + | |
| 1360 | + | |
| 1361 | + | |
| 1362 | + | |
| 1363 | + | |
| 1364 | + | |
| 1365 | + | |
| 1366 | + | |
| 1367 | + | |
| 1368 | + | |
| 1369 | + | |
1308 | 1370 | | |
1309 | 1371 | | |
1310 | 1372 | | |
| 1373 | + | |
1311 | 1374 | | |
1312 | 1375 | | |
1313 | 1376 | | |
| 1377 | + | |
1314 | 1378 | | |
1315 | 1379 | | |
1316 | 1380 | | |
| 1381 | + | |
| 1382 | + | |
1317 | 1383 | | |
1318 | 1384 | | |
1319 | 1385 | | |
| 1386 | + | |
| 1387 | + | |
1320 | 1388 | | |
1321 | 1389 | | |
1322 | 1390 | | |
1323 | 1391 | | |
1324 | 1392 | | |
| 1393 | + | |
| 1394 | + | |
| 1395 | + | |
| 1396 | + | |
| 1397 | + | |
| 1398 | + | |
| 1399 | + | |
| 1400 | + | |
1325 | 1401 | | |
1326 | 1402 | | |
1327 | 1403 | | |
| |||
1331 | 1407 | | |
1332 | 1408 | | |
1333 | 1409 | | |
1334 | | - | |
| 1410 | + | |
| 1411 | + | |
| 1412 | + | |
| 1413 | + | |
| 1414 | + | |
1335 | 1415 | | |
1336 | 1416 | | |
1337 | 1417 | | |
1338 | 1418 | | |
1339 | | - | |
| 1419 | + | |
1340 | 1420 | | |
1341 | 1421 | | |
1342 | 1422 | | |
| |||
0 commit comments