onilink_

Untitled

Jul 9th, 2020
602
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 3.70 KB | None | 0 0
  1.  
  2. Enums:
  3.  
  4. > ObjectType
  5. Void
  6. Edible
  7. Decoration
  8. Drop
  9. Armor
  10. Block
  11. ... (incomplete)
  12.  
  13. > StatusEffectType
  14. Giant
  15. StaminaBonus
  16. LifeBonus
  17. DamageBonus
  18. ElementalDamageBonus
  19. ... (incomplete)
  20.  
  21. > MonsterRarityColor
  22. Normal
  23. Uncommon
  24. Rare
  25. Divine
  26. Legendary
  27.  
  28. > MonsterSexe
  29. Void
  30. Unknown
  31. Male
  32. Female
  33.  
  34.  
  35. Primitives structures & functions:
  36.  
  37. Cell
  38. {
  39. unsigned x
  40. unsigned y
  41.  
  42. Cell left()
  43. Cell right()
  44. Cell up()
  45. Cell down()
  46. }
  47.  
  48. Vec2
  49. {
  50. float x
  51. float y
  52. }
  53. (incomplete)
  54.  
  55. EntryIndex
  56. {
  57. ObjectType type
  58. uint16_t ind
  59. }
  60.  
  61.  
  62.  
  63. MonsterRarity
  64. {
  65. MonsterRarity(uint8_t rarity_level)
  66. MonsterRarity(uint8_t rarity_level, MonsterRarityColor color)
  67.  
  68. uint8_t rarity()
  69. MonsterRarityColor color()
  70. bool shiny()
  71.  
  72. float suffixRarityCoef()
  73. uint8_t generateSuffixRarity()
  74. lockRarityFromFame(int fame)
  75. }
  76.  
  77. MonsterRarity pcGenMonsterRarity(bool allow_shiny)
  78. MonsterRarityColor pcGenMonsterRarityColor()
  79.  
  80. MonsterSpawnAttributes
  81. {
  82. MonsterSpawnAttributes()
  83. MonsterSpawnAttributes(uint16_t monster_ind)
  84.  
  85. setLevel(uint16_t level)
  86. setLevelRange(uint16_t min, uint16_t max)
  87. setRarity(MonsterRarity rarity)
  88. setRarityRange(MonsterRarity min, MonsterRarity max)
  89. setLife(uint16_t life)
  90. setLifeRange(uint16_t min, uint16_t max)
  91.  
  92. bool manualRewards()
  93. uint16_t ind()
  94. uint16_t levelMin()
  95. uint16_t levelMax()
  96. MonsterRarity rarityMin()
  97. MonsterRarity rarityMax()
  98.  
  99. MonsterRarity generateRarity()
  100. uint16_t generateLevel()
  101. }
  102.  
  103. StatusEffectDef
  104. {
  105. StatusEffectType type
  106. uint8_t level
  107. }
  108.  
  109. MonsterEffectTable
  110. {
  111. StatusEffectDef[] table
  112. uint8_t count()
  113. bool add(StatusEffectType type, uint8_t level)
  114. remove(StatusEffectType type)
  115. }
  116.  
  117. MonsterAttributesCore
  118. {
  119. MonsterAttributesCore()
  120. MonsterAttributesCore(uint16_t monster_ind)
  121.  
  122. uint16_t ind
  123. uint16_t level
  124. MonsterRarity rarity
  125. uint8_t[6] ivs
  126. uint16_t[6] evs
  127. MonsterEffectTable effects
  128. MonsterSexe sexe
  129.  
  130. bool unknown()
  131. uint8_t suffixLockedLevel()
  132. addLevelBonusToOneSuffix()
  133. generateWildSuffixes(StatusEffectType[] not_allowed)
  134. repairSuffixes()
  135. uint8_t generateSuffixRarityWild()
  136. generateSexe()
  137. generateIvs()
  138. addPetFlagIvs()
  139. }
  140.  
  141.  
  142. ItemMonsterAttribute
  143. {
  144. MonsterAttributesCore attribs
  145. float life
  146. uint16_t hatching_duration
  147. uint16_t hatching_duration_max
  148. bool ko
  149. bool egg
  150.  
  151. MonsterSexe sexe()
  152. unsigned manaRequiredToInvoke()
  153. downgradeLevelWhenCatched()
  154. float lifeMax()
  155. updateLife(float dt)
  156. bool receiveExp(unsigned exp)
  157.  
  158. unsigned getExpTotalFromLevel(uint16_t level)
  159. unsigned nextLevelExpTotal()
  160. unsigned requiredExpForNextLevel()
  161. unsigned experience()
  162.  
  163. generateMissingSuffixes()
  164. uint16_t levelMax()
  165. setLevelMax(uint16_t)
  166. }
  167.  
  168. MonsterPetParam
  169. {
  170. bool is_pet
  171. ItemMonsterAttribute* attributes
  172. }
  173.  
  174. MonsterSpawnParam
  175. {
  176. bool special_spawn
  177. bool player_controlable
  178. bool rares_allowed
  179. bool netplay_send_spawn
  180. bool preview
  181. bool reversed
  182. float life
  183. int manual_rarity_level
  184. StatusEffectType[] suffix_disabled
  185. MonsterPetParam pet_params
  186. }
  187.  
  188. pcCreateMonster(WorldContext ctx, MonsterSpawnAttributes attr, Vec2 pos, MonsterSpawnParam param)
  189.  
  190. ItemSlot
  191. {
  192. ItemSlot clone()
  193. bool empty()
  194. bool full()
  195. EntryIndex id()
  196. setId(EntryIndex entry)
  197. unsigned count()
  198. setCount(unsigned)
  199. unsigned increment(unsigned)
  200. decrement(unsigned count, player_data_ptr)
  201. }
  202. (incomplete)
  203.  
  204. Inventory
  205. {
  206. uint32_t size()
  207. bool empty()
  208. bool full()
  209. ItemSlot at(uint32_t index)
  210. set(uint32_t index, ItemSlot item)
  211. }
  212. (incomplete)
  213.  
  214. Cell pcCellFromCoords(Vec2 pos)
  215. EntryIndex pcEntryIdFromString(string)
  216. string pcStringFromEntryId(EntryIndex entry)
  217. pcRemoveBlock(WorldContext ctx, Cell cell, bool drop)
  218. pcSpawnDrop(WorldContext ctx, Vec2 pos, ItemSlot item, Vec2 velocity)
  219. pcSpawnSoul(WorldContext ctx, Vec2 pos, int count)
  220. pcSpawnSouls(WorldContext ctx, Vec2 pos, int count)
Advertisement
Add Comment
Please, Sign In to add comment