mirror of
https://github.com/ddnet/ddnet.git
synced 2024-09-20 01:24:18 +00:00
Ninja powerup shouldn't spawn directly
This commit is contained in:
parent
8be353d62c
commit
8714046db0
|
@ -119,4 +119,5 @@ const array:int sound = sounds.*
|
|||
const array:int image = images.*
|
||||
const array:int sprite = sprites.*.*
|
||||
const array:int anim = animations.*
|
||||
const array:int gametype = playerstats.*
|
||||
const array:int gametype = playerstats.*
|
||||
const array:int powerup = powerups.*
|
|
@ -9,6 +9,12 @@ struct weapon {
|
|||
int velocity = velocity@1
|
||||
}
|
||||
|
||||
struct powerupinf {
|
||||
int amount = amount@1
|
||||
int respawntime = respawntime@1
|
||||
int startspawntime = startspawntime@1
|
||||
}
|
||||
|
||||
struct playerstats {
|
||||
int maxhealth = maxhealth@1
|
||||
int maxarmor = maxarmor@1
|
||||
|
@ -17,8 +23,10 @@ struct playerstats {
|
|||
struct data_container {
|
||||
array:weapon weapons = weapons.*
|
||||
array:playerstats playerinfo = playerstats.*
|
||||
array:powerupinf powerupinfo = powerups.*
|
||||
}
|
||||
|
||||
const array:int sound = sounds.*
|
||||
const array:int weapon = weapons.*
|
||||
const array:int gametype = playerstats.*
|
||||
const array:int gametype = playerstats.*
|
||||
const array:int powerup = powerups.*
|
|
@ -207,6 +207,29 @@ particles {
|
|||
}
|
||||
}
|
||||
|
||||
powerups {
|
||||
health {
|
||||
amount 1
|
||||
respawntime 15
|
||||
startspawntime 0
|
||||
}
|
||||
armor {
|
||||
amount 1
|
||||
respawntime 15
|
||||
startspawntime 0
|
||||
}
|
||||
weapon {
|
||||
amount 10
|
||||
respawntime 15
|
||||
startspawntime 0
|
||||
}
|
||||
ninja {
|
||||
amount 1
|
||||
respawntime 90
|
||||
startspawntime 90
|
||||
}
|
||||
}
|
||||
|
||||
playerstats {
|
||||
dm {
|
||||
maxhealth 10
|
||||
|
|
Loading…
Reference in a new issue