Anonymous 3D Imageboard http://cyberia.digital/
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

106 lines
2.8KB

  1. <?
  2. class Item {
  3. public $name;
  4. public $description;
  5. public $player_id; // owner ID
  6. public $map_key;
  7. public $key;
  8. public $action;
  9. public $type;
  10. public $itemsPerPlayer;
  11. //weapon
  12. //potion
  13. //paint
  14. //sponge
  15. //ring
  16. //armor
  17. //Influence it has
  18. public $is_expendable = true;
  19. public $numOfUse;
  20. public $value;
  21. //----------------
  22. public $valueMin;
  23. public $valueMax;
  24. function __construct() {
  25. }
  26. public static function getAllPotentialItems()
  27. {
  28. $items = array();
  29. $item = new Item();
  30. $item-> name = "sponge";
  31. $item-> action = "post delete";
  32. $item-> type = "posting";
  33. $item-> description = "The sponge give you the ability to make disappear a post that isn't canon";
  34. $item-> is_expendable = true;
  35. $item-> valueMin = 1;
  36. $item-> valueMax = 3;
  37. $item-> itemsPerPlayer = 1;
  38. array_push( $items ,$item);
  39. /*
  40. $item = new Item();
  41. $item-> name = "ring of upload";
  42. $item-> action = "upload";
  43. $item-> type = "posting";
  44. $item-> description = "Give you the ability to upload picture when you post";
  45. $item-> is_expendable = false;
  46. $item-> valueMin = 10;
  47. $item-> valueMax = 18;
  48. $item-> itemsPerPlayer = 1;
  49. array_push( $items ,$item);
  50. $item = new Item();
  51. $item-> name = "pen";
  52. $item-> action = "drawing";
  53. $item-> type = "posting";
  54. $item-> description = "Give you the ability to draw";
  55. $item-> is_expendable = true;
  56. $item-> valueMin = 1;
  57. $item-> valueMax = 10;
  58. $item-> itemsPerPlayer = 10;
  59. array_push( $items ,$item);
  60. $item = new Item();
  61. $item-> name = "black powder";
  62. $item-> action = "canon";
  63. $item-> type = "posting";
  64. $item-> description = "Set a post as canon";
  65. $item-> is_expendable = true;
  66. $item-> valueMin = 1;
  67. $item-> valueMax = 5;
  68. $item-> itemsPerPlayer = 3;
  69. array_push( $items ,$item);
  70. $item = new Item();
  71. $item-> name = "knife";
  72. $item-> action = "harm";
  73. $item-> type = "fight";
  74. $item-> description = "You can kill enemies from the dungeon or even other anons";
  75. $item-> is_expendable = true;
  76. $item-> valueMin = 99;
  77. $item-> valueMax = 100;
  78. $item-> itemsPerPlayer = 1;
  79. array_push( $items ,$item);
  80. $item = new Item();
  81. $item-> name = "rope";
  82. $item-> action = "bound";
  83. $item-> type = "fight";
  84. $item-> description = "You bound certain enemies and anons";
  85. $item-> is_expendable = true;
  86. $item-> valueMin = 2;
  87. $item-> valueMax = 4;
  88. $item-> itemsPerPlayer = 1;
  89. array_push( $items ,$item);*/
  90. return $items;
  91. }
  92. }