this repo has no description
2
fork

Configure Feed

Select the types of activity you want to include in your feed.

Attempting to add bonuses to the schema, trying to figure out how to put it in

+63 -34
+63 -34
schema/schema.json
··· 338 338 "description": "The description of the feature" 339 339 }, 340 340 "effect": { 341 - "oneOf": [ 342 - { 343 - "type": "object", 344 - "properties": { 345 - "type": { 346 - "const": "giveItem" 341 + "type": "array", 342 + "items": { 343 + "oneOf": [ 344 + { 345 + "type": "object", 346 + "properties": { 347 + "type": { 348 + "const": "giveItem" 349 + }, 350 + "id": { 351 + "type": "string", 352 + "description": "The ID of the item given" 353 + } 347 354 }, 348 - "id": { 349 - "type": "string", 350 - "description": "The ID of the item given" 351 - } 355 + "required": [ 356 + "type", 357 + "id" 358 + ] 352 359 }, 353 - "required": [ 354 - "type", 355 - "id" 356 - ] 357 - }, 358 - { 359 - "type": "object", 360 - "properties": { 361 - "type": { 362 - "const": "giveSense" 363 - }, 364 - "id": { 365 - "type": "string", 366 - "description": "The ID of the sense given" 360 + { 361 + "type": "object", 362 + "properties": { 363 + "type": { 364 + "const": "giveSense" 365 + }, 366 + "id": { 367 + "type": "string", 368 + "description": "The ID of the sense given" 369 + }, 370 + "distance": { 371 + "type": "number", 372 + "description": "The distance at which this sense functions until, measured in squares" 373 + } 367 374 }, 368 - "distance": { 369 - "type": "number", 370 - "description": "The distance at which this sense functions until, measured in squares" 371 - } 375 + "required": [ 376 + "type", 377 + "id" 378 + ] 372 379 }, 373 - "required": [ 374 - "type", 375 - "id" 376 - ] 377 - } 378 - ] 380 + { 381 + "type": "object", 382 + "properties": { 383 + "type": { 384 + "const": "giveBonus" 385 + }, 386 + "amount": { 387 + "type": "number", 388 + "description": "The amount of bonus to apply" 389 + }, 390 + "bonusType": { 391 + "description": "The type of bonus", 392 + "oneOf": [ 393 + "circumstance", 394 + "status", 395 + "item", 396 + "untyped" 397 + ] 398 + } 399 + }, 400 + "required": [ 401 + "type", 402 + "amount", 403 + "bonusType" 404 + ] 405 + } 406 + ] 407 + } 379 408 } 380 409 }, 381 410 "required": [