bonus.json 1.8 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374
  1. {
  2. "type" : "object",
  3. "$schema" : "http://json-schema.org/draft-04/schema",
  4. "title" : "VCMI bonus type format",
  5. "description" : "Definition of bonus types",
  6. "required" : [],
  7. "additionalProperties" : false,
  8. "properties" : {
  9. "hidden" : {
  10. "type" : "boolean",
  11. "description" : "If set to true, all instances of this bonus will be hidden in UI"
  12. },
  13. "creatureNature" : {
  14. "type" : "boolean",
  15. "description" : "If set to true, this bonus will be considered 'creature nature' bonus, and such creature won't be automatically granted LIVING bonus"
  16. },
  17. "blockDescriptionPropagation" : {
  18. "type" : "boolean",
  19. "description" : "If set to true, this ability description will not be displayed if a creature receives it by propagation"
  20. },
  21. "description" : {
  22. "type" : "string"
  23. },
  24. "subtypeDescriptions" : {
  25. "type" : "object",
  26. "description" : "Custom description string for bonus subtype",
  27. "additionalProperties" : {
  28. "type" : "string"
  29. }
  30. },
  31. "valueDescriptions" : {
  32. "type" : "object",
  33. "description" : "Custom description string for bonus value",
  34. "additionalProperties" : {
  35. "type" : "string"
  36. }
  37. },
  38. "graphics" : {
  39. "type" : "object",
  40. "additionalProperties" : false,
  41. "properties" : {
  42. "icon" : {
  43. "type" : "string",
  44. "description" : "Resourse path of generic icon for this bonus",
  45. "format" : "imageFile"
  46. },
  47. "subtypeIcons" : {
  48. "type" : "object",
  49. "description" : "Resourse path of icon for this bonus subtype",
  50. "additionalProperties" : {
  51. "type" : "string",
  52. "format" : "imageFile"
  53. }
  54. },
  55. "valueIcons" : {
  56. "type" : "object",
  57. "description" : "Resourse path of icon for this bonus value",
  58. "additionalProperties" : {
  59. "type" : "string",
  60. "format" : "imageFile"
  61. }
  62. }
  63. }
  64. }
  65. }
  66. }