Skip to content

Commit

Permalink
hunters claw improved
Browse files Browse the repository at this point in the history
  • Loading branch information
sayterdarkwynd committed Jan 23, 2019
1 parent a51b4c0 commit 5e492be
Show file tree
Hide file tree
Showing 4 changed files with 18 additions and 7 deletions.
12 changes: 11 additions & 1 deletion projectiles/hunterclaw/hunterclaw.projectile
Original file line number Diff line number Diff line change
Expand Up @@ -12,5 +12,15 @@
"piercing" : true,
"flippable" : true,
"damageKind" : "bow",
"knockback" : 12
"knockback" : 15,
"actionOnReap" : [
{
"action" : "explosion",
"foregroundRadius" : 3,
"backgroundRadius" : 2,
"explosiveDamageAmount" : 1,
"harvestLevel" : 99,
"delaySteps" : 2
}
]
}
2 changes: 1 addition & 1 deletion species/fukirhos.species.patch
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@
^orange;Perks^reset;:
+^green;10%^reset; Speed, +^green;10%^reset; Jump
Resist: ^green;50%^reset; Electric
Great Traders: +^green;21%^reset; Charisma
Great Traders: +^green;21%^reset; Charisma, +500 Start Cash
Immune: Electrified

^orange;Weapons^reset;:
Expand Down
2 changes: 1 addition & 1 deletion stats/effects/passive/foodcostclaw.statuseffect
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name" : "foodcostclaw",
"effectConfig" : {"foodCost" : 6},
"effectConfig" : {"foodCost" : 3},
"defaultDuration" : 3,
"scripts" : ["foodcostfire.lua"],
"animationConfig" : "/tech/other/flighttest.animation",
Expand Down
9 changes: 5 additions & 4 deletions tech/other/huntersclaw.lua
Original file line number Diff line number Diff line change
Expand Up @@ -47,9 +47,10 @@ function checkFood()
end

function damageConfig()
foodVal = (self.foodValue /20)
healthVal = status.resource("health")/30
totalVal = foodVal + healthVal
foodVal = (self.foodValue / 20)
healthVal = status.resource("health") / 30
worldLevel = world.threatLevel()
totalVal = (foodVal + healthVal) + worldLevel
end

function activeFlight()
Expand Down Expand Up @@ -100,7 +101,7 @@ function update(args)

if args.moves["special1"] and self.firetimer == 0 and not (primaryItem and root.itemHasTag(primaryItem, "weapon")) and not (altItem and root.itemHasTag(altItem, "weapon")) then
if self.foodValue > 10 then
status.addEphemeralEffects{{effect = "foodcostclaw", duration = 0.03}}
status.addEphemeralEffects{{effect = "foodcostclaw", duration = 0.01}}
else
status.overConsumeResource("energy", 3)
end
Expand Down

0 comments on commit 5e492be

Please sign in to comment.