Setup monster drop config data and monster drop data structure.
This commit is contained in:
parent
11e2aa0fad
commit
b61f9ddf96
@ -1307,8 +1307,6 @@ void Crawler::LoadLevel(MapName map){
|
|||||||
totalBossEncounterMobs=0;
|
totalBossEncounterMobs=0;
|
||||||
Inventory::Clear("Monster Loot");
|
Inventory::Clear("Monster Loot");
|
||||||
Inventory::Clear("Stage Loot");
|
Inventory::Clear("Stage Loot");
|
||||||
Inventory::AddItem("Bandages",3);
|
|
||||||
Inventory::AddItem("Blue Slime Remains",10,true);
|
|
||||||
|
|
||||||
#pragma region Monster Spawn Data Setup
|
#pragma region Monster Spawn Data Setup
|
||||||
for(auto key:MAP_DATA[map].SpawnerData){
|
for(auto key:MAP_DATA[map].SpawnerData){
|
||||||
|
|||||||
@ -41,6 +41,8 @@ SUCH DAMAGE.
|
|||||||
#include "DEFINES.h"
|
#include "DEFINES.h"
|
||||||
#include "Attributable.h"
|
#include "Attributable.h"
|
||||||
|
|
||||||
|
INCLUDE_ITEM_DATA
|
||||||
|
|
||||||
struct Player;
|
struct Player;
|
||||||
class Crawler;
|
class Crawler;
|
||||||
|
|
||||||
@ -53,6 +55,15 @@ enum MonsterAnimation{
|
|||||||
DEATH
|
DEATH
|
||||||
};
|
};
|
||||||
|
|
||||||
|
struct MonsterDropData{
|
||||||
|
ItemInfo*item;
|
||||||
|
float dropChance;
|
||||||
|
int minQty=1;
|
||||||
|
int maxQty=1;
|
||||||
|
MonsterDropData(std::string itemName,float dropChance,int minQty=1,int maxQty=1)
|
||||||
|
:item(ITEM_DATA.at(itemName)),dropChance(dropChance),minQty(minQty),maxQty(maxQty){}
|
||||||
|
};
|
||||||
|
|
||||||
struct MonsterData{
|
struct MonsterData{
|
||||||
private:
|
private:
|
||||||
int id;
|
int id;
|
||||||
|
|||||||
@ -23,6 +23,10 @@ Monsters
|
|||||||
ShootAnimation = 10, 0.1, OneShot
|
ShootAnimation = 10, 0.1, OneShot
|
||||||
DeathAnimation = 10, 0.1, OneShot
|
DeathAnimation = 10, 0.1, OneShot
|
||||||
|
|
||||||
|
# Drop Item Name, Drop Percentage(0-100%), Drop Min Quantity, Drop Max Quantity
|
||||||
|
DROP[0] = Green Slime Remains,65%,1,2
|
||||||
|
DROP[1] = Small Health Potion,5%,1,1
|
||||||
|
|
||||||
#Additional custom animations go down below. Start with ANIMATION[0]. Order is:
|
#Additional custom animations go down below. Start with ANIMATION[0]. Order is:
|
||||||
# Frame Count, Frame Speed (s), Frame Cycling (Repeat,OneShot,PingPong,Reverse)
|
# Frame Count, Frame Speed (s), Frame Cycling (Repeat,OneShot,PingPong,Reverse)
|
||||||
#ANIMATION[0] = 6, 0.1, Repeat
|
#ANIMATION[0] = 6, 0.1, Repeat
|
||||||
@ -49,6 +53,10 @@ Monsters
|
|||||||
ShootAnimation = 10, 0.1, Repeat
|
ShootAnimation = 10, 0.1, Repeat
|
||||||
DeathAnimation = 10, 0.1, OneShot
|
DeathAnimation = 10, 0.1, OneShot
|
||||||
|
|
||||||
|
# Drop Item Name, Drop Percentage(0-100%), Drop Min Quantity, Drop Max Quantity
|
||||||
|
DROP[0] = Green Slime Remains,65%,1,2
|
||||||
|
DROP[1] = Small Health Potion,5%,1,1
|
||||||
|
|
||||||
#Additional custom animations go down below. Start with ANIMATION[0]
|
#Additional custom animations go down below. Start with ANIMATION[0]
|
||||||
#ANIMATION[0] = MY_NEW_ANIMATION
|
#ANIMATION[0] = MY_NEW_ANIMATION
|
||||||
}
|
}
|
||||||
@ -74,6 +82,10 @@ Monsters
|
|||||||
ShootAnimation = 10, 0.1, OneShot
|
ShootAnimation = 10, 0.1, OneShot
|
||||||
DeathAnimation = 10, 0.1, OneShot
|
DeathAnimation = 10, 0.1, OneShot
|
||||||
|
|
||||||
|
# Drop Item Name, Drop Percentage(0-100%), Drop Min Quantity, Drop Max Quantity
|
||||||
|
DROP[0] = Green Slime Remains,65%,1,2
|
||||||
|
DROP[1] = Small Health Potion,5%,1,1
|
||||||
|
|
||||||
#Additional custom animations go down below. Start with ANIMATION[0]
|
#Additional custom animations go down below. Start with ANIMATION[0]
|
||||||
#ANIMATION[0] = MY_NEW_ANIMATION
|
#ANIMATION[0] = MY_NEW_ANIMATION
|
||||||
}
|
}
|
||||||
@ -99,6 +111,9 @@ Monsters
|
|||||||
ShootAnimation = 10, 0.1, OneShot
|
ShootAnimation = 10, 0.1, OneShot
|
||||||
DeathAnimation = 10, 0.1, OneShot
|
DeathAnimation = 10, 0.1, OneShot
|
||||||
|
|
||||||
|
# Drop Item Name, Drop Percentage(0-100%), Drop Min Quantity, Drop Max Quantity
|
||||||
|
#DROP[0] = Bandages,30%,1,1
|
||||||
|
|
||||||
#Additional custom animations go down below. Start with ANIMATION[0]
|
#Additional custom animations go down below. Start with ANIMATION[0]
|
||||||
#ANIMATION[0] = MY_NEW_ANIMATION
|
#ANIMATION[0] = MY_NEW_ANIMATION
|
||||||
}
|
}
|
||||||
@ -124,6 +139,9 @@ Monsters
|
|||||||
ShootAnimation = 5, 0.1, OneShot
|
ShootAnimation = 5, 0.1, OneShot
|
||||||
DeathAnimation = 5, 0.2, OneShot
|
DeathAnimation = 5, 0.2, OneShot
|
||||||
|
|
||||||
|
# Drop Item Name, Drop Percentage(0-100%), Drop Min Quantity, Drop Max Quantity
|
||||||
|
DROP[0] = Bandages,30%,1,1
|
||||||
|
|
||||||
#Additional custom animations go down below. Start with ANIMATION[0]
|
#Additional custom animations go down below. Start with ANIMATION[0]
|
||||||
#ANIMATION[0] = MY_NEW_ANIMATION
|
#ANIMATION[0] = MY_NEW_ANIMATION
|
||||||
}
|
}
|
||||||
@ -150,6 +168,9 @@ Monsters
|
|||||||
ShootAnimation = 10, 0.1, OneShot
|
ShootAnimation = 10, 0.1, OneShot
|
||||||
DeathAnimation = 10, 0.1, OneShot
|
DeathAnimation = 10, 0.1, OneShot
|
||||||
|
|
||||||
|
# Drop Item Name, Drop Percentage(0-100%), Drop Min Quantity, Drop Max Quantity
|
||||||
|
#DROP[0] = Bandages,30%,1,1
|
||||||
|
|
||||||
#Additional custom animations go down below. Start with ANIMATION[0]
|
#Additional custom animations go down below. Start with ANIMATION[0]
|
||||||
ANIMATION[0] = monsters/Slime King - Cast.png
|
ANIMATION[0] = monsters/Slime King - Cast.png
|
||||||
}
|
}
|
||||||
|
|||||||
@ -164,4 +164,14 @@ ItemDatabase
|
|||||||
Description = The remains of a red slime. It stares at you intently.
|
Description = The remains of a red slime. It stares at you intently.
|
||||||
ItemCategory = Materials
|
ItemCategory = Materials
|
||||||
}
|
}
|
||||||
|
Logs
|
||||||
|
{
|
||||||
|
Description = A small unrefined pile of logs.
|
||||||
|
ItemCategory = Materials
|
||||||
|
}
|
||||||
|
Green Gemstone
|
||||||
|
{
|
||||||
|
Description = Radiating with energy from the forest, it is used to refine stronger equipment.
|
||||||
|
ItemCategory = Materials
|
||||||
|
}
|
||||||
}
|
}
|
||||||
BIN
Crawler/assets/items/Green Gemstone.png
Normal file
BIN
Crawler/assets/items/Green Gemstone.png
Normal file
Binary file not shown.
|
After Width: | Height: | Size: 878 B |
BIN
Crawler/assets/items/Logs.png
Normal file
BIN
Crawler/assets/items/Logs.png
Normal file
Binary file not shown.
|
After Width: | Height: | Size: 859 B |
Loading…
x
Reference in New Issue
Block a user