Starbound

Starbound

Draconis Balance Patch (+FU, Recipe, Other Fixes)
 This topic has been pinned, so it's probably important
NihilRetnar  [developer] 16 May, 2021 @ 2:40pm
Code
Some code to help with finding errors.
< >
Showing 1-2 of 2 comments
NihilRetnar  [developer] 16 May, 2021 @ 2:41pm 
dragonpet.monstertype

{
"type" : "dragonpet",

"categories" : [ "dragonpet" ],
"parts" : [ "body" ],

"animation" : "dragonpet.animation",

"dropPools" : [ ],

"baseParameters" : {
"persistent" : true,
"damageTeamType" : "ghostly",

"scripts" : [
"/monsters/pets/groundPet.lua",
"/scripts/pathing.lua",
"/scripts/stateMachine.lua",
"/scripts/util.lua",
"/scripts/vec2.lua",

"/monsters/pets/idleState.lua",
"/monsters/pets/wanderState.lua",

"/monsters/pets/petBehavior.lua",
"/monsters/pets/actions/followAction.lua",
"/monsters/pets/actions/inspectAction.lua",
"/monsters/pets/actions/eatAction.lua",
"/monsters/pets/actions/sleepAction.lua",
"/monsters/pets/actions/begAction.lua",
"/monsters/pets/actions/pounceAction.lua"
],

"petBehavior" : "petBehavior",

"anchorName" : "Dragontechstation",
"petResources" : {
"sleepy" : 10,
"hunger" : 60,
"playful" : 10,
"curiosity" : 60
},
"petResourceDeltas" : {
"sleepy" : 1,
"hunger" : 0.5,
"playful" : 1,
"curiosity" : 1
},

"actionParams" : {
"hungerStarvingLevel" : 80,
"beg" : {
"minScore" : 50,
"cooldown" : 5,
"distance" : 3,
"emoteCooldown" : 2
},
"follow" : {
"minScore" : 35,
"cooldown" : 5,
"curiosityDelta" : -5,
"boredTime" : 3
},
"inspect" : {
"minScore" : 20,
"cooldown" : 2
},
"eat" : {
"minScore" : 0,
"minHunger" : 40,
"cooldown" : 0,
"distance" : 2
},
"play" : {
"minScore" : 20,
"cooldown" : 2
},
"sleep" : {
"minScore" : 50,
"minSleepy" : 75,
"cooldown" : 10
},
"starving" : {
"minScore" : 60,
"cooldown" : 3
}
},

"pathing" : {
"canOpenDoors" : false
},

"metaBoundBox" : [-1.625, -2.375, 1.75, 2.0],
"scale" : 1.0,

"querySurroundingsCooldown" : 1,

"wander" : {
"wanderTime" : [5, 10],
"changeDirectionTime" : [5, 10],
"changeDirectionWait" : [1, 3]
},

"pounce" : {
"maxRange" : 10,
"minRange" : 5
},

"idle" : {
"idleTime" : [4, 8],
"standTime" : 2
},

"movementSettings" : {
"collisionPoly" : [ [-0.75, -0.65], [-0.4, -1], [0.4, -1], [0.75, -0.65], [0.75, 0.15], [0.4, 0.5], [-0.4, 0.5], [-0.75, 0.15] ],

"mass" : 1.0,
"walkSpeed" : 4,
"runSpeed" : 14,
"flySpeed" : 15,
"airForce" : 50.0
},

"bodyMaterialKind" : "organic",

"knockoutTime" : 0,
"knockoutEffect" : "blink",
"deathParticles" : "deathPoof",

"touchDamage" : {
"poly" : [ [-1.625, -2.375], [1.75, -2.375], [1.75, 2.0], [-1.625, 2.0] ],
"damage" : 15,

"teamType" : "enemy",
"damageSourceKind" : "lash",
"statusEffects" : [ ]
},

"statusSettings" : {
"statusProperties" : {
"targetMaterialKind" : "organic"
},

"appliesEnvironmentStatusEffects" : false,
"appliesWeatherStatusEffects" : false,
"minimumLiquidStatusEffectPercentage" : 0.1,

"primaryScriptSources" : [
"/stats/monster_primary.lua"
],
"primaryScriptDelta" : 5,

"stats" : {
"knockbackStunTime" : {
"baseValue" : 0.25
},
"knockbackThreshold" : {
"baseValue" : 9
},
"maxHealth" : {
"baseValue" : 72
},
"protection" : {
"baseValue" : 0.0
},
"healthRegen" : {
"baseValue" : 0.0
},
"powerMultiplier" : {
"baseValue" : 1.0
}
},

"resources" : {
"stunned" : {
"deltaValue" : -1.0,
"initialValue" : 0.0
},
"health" : {
"maxStat" : "maxHealth",
"deltaStat" : "healthRegen",
"defaultPercentage" : 100
},
"sleepy" : {
"maxValue" : 100,
"defaultPercentage" : 10
},
"hunger" : {
"maxValue" : 100,
"defaultPercentage" : 10
},
"playful" : {
"maxValue" : 100,
"defaultPercentage" : 10
},
"curiosity" : {
"maxValue" : 100,
"defaultPercentage" : 10
}
}
},

"mouthOffset" : [0, 0],
"feetOffset" : [0, -8]
}
}
NihilRetnar  [developer] 16 May, 2021 @ 2:43pm 
raptoregg\dragonpetspawner.object

{
"objectName" : "raptorpeteggs",
"colonyTags" : ["dragon"],
"rarity" : "Common",
"printable" : false,
"price" : 500,
"description" : "A teeny reptilian egg.",
"shortdescription" : "Raptor Egg",
"race" : "generic",

"inventoryIcon" : "raptorpeteggsicon.png",
"scripts" : [
"/objects/spawner/shipPetSpawner.lua"
],
"scriptDelta" : 20,
"shipPetType" : "dragonpet",

"orientations" : [
{
"image" : "raptorpeteggs.png",
"imagePosition" : [-8, 0],
"direction" : "left",
"flipImages" : true,

"spaces" : [ [-1, 0], [0, 0], [1, 0], [-1, 1], [0, 1], [1, 1], [-1, 2], [0, 2], [1, 2] ],
"anchors" : [ "bottom" ]
},
{
"image" : "raptorpeteggs.png",
"imagePosition" : [-8, 0],
"direction" : "right",

"spaces" : [ [-1, 0], [0, 0], [1, 0], [-1, 1], [0, 1], [1, 1], [-1, 2], [0, 2], [1, 2] ],
"anchors" : [ "bottom" ]
}
]
}
< >
Showing 1-2 of 2 comments
Per page: 1530 50