Skip to content

Commit

Permalink
missing strings/namespace crash
Browse files Browse the repository at this point in the history
(cherry picked from commit 94ae52a)
  • Loading branch information
jkolokotronis committed Apr 10, 2015
1 parent fc30173 commit 4be0fbe
Show file tree
Hide file tree
Showing 5 changed files with 21 additions and 13 deletions.
17 changes: 15 additions & 2 deletions HeroInTheDark/scripts/fa_strings.lua
Original file line number Diff line number Diff line change
Expand Up @@ -519,6 +519,19 @@ STRINGS.CHARACTERS.GENERIC.DESCRIBE.FA_ANIMATEDARMOR_ADAMANTINE = "Armor"

STRINGS.NAMES.FA_SKULL = "Skull"
STRINGS.CHARACTERS.GENERIC.DESCRIBE.FA_SKULL = "Skull"
STRINGS.NAMES.SKELETONSPAWN = "Skeleton"
STRINGS.CHARACTERS.GENERIC.DESCRIBE.SKELETONSPAWN = "Skeleton"
STRINGS.NAMES.FA_DRYBONES = "Dry Bones"
STRINGS.CHARACTERS.GENERIC.DESCRIBE.FA_DRYBONES = "Dry Bones"
STRINGS.NAMES.FA_DARTDRYBONES = "Dry Bones"
STRINGS.CHARACTERS.GENERIC.DESCRIBE.FA_DARTDRYBONES = "Dry Bones"
STRINGS.NAMES.FA_ZOMBIE = "Zombie"
STRINGS.CHARACTERS.GENERIC.DESCRIBE.FA_ZOMBIE ="Zombie"
STRINGS.NAMES.FA_GHOUL = "Ghoul"
STRINGS.CHARACTERS.GENERIC.DESCRIBE.FA_GHOUL = "Ghoul"
STRINGS.NAMES.FA_MUMMY = "Mummy"
STRINGS.CHARACTERS.GENERIC.DESCRIBE.FA_MUMMY = "Mummy"

STRINGS.NAMES.FA_BONFIRE = "Bonfire"
STRINGS.CHARACTERS.GENERIC.DESCRIBE.FA_BONFIRE = "Bonfire"
STRINGS.NAMES.FA_BBQ = "Barbeque"
Expand Down Expand Up @@ -985,8 +998,8 @@ STRINGS.NAMES.FA_SPELL_SLEEP = "Sleep"
STRINGS.CHARACTERS.GENERIC.DESCRIBE.FA_SPELL_SLEEP = "Puts certain enemies to sleep."
STRINGS.RECIPE_DESC.FA_SPELL_SLEEP = "Puts certain enemies to sleep."
STRINGS.NAMES.FA_SPELL_MAGICMISSILE = "Magic Missile"
STRINGS.CHARACTERS.GENERIC.DESCRIBE.FA_SPELL_MAGICMISSILE = "Creates a wand the fires a magical missile at opponents."
STRINGS.RECIPE_DESC.FA_SPELL_MAGICMISSILE = "Creates a wand the fires a magical missile at opponents."
STRINGS.CHARACTERS.GENERIC.DESCRIBE.FA_SPELL_MAGICMISSILE = "Creates a wand that fires a magical missile at opponents."
STRINGS.RECIPE_DESC.FA_SPELL_MAGICMISSILE = "Creates a wand that fires a magical missile at opponents."
STRINGS.NAMES.FA_SPELL_RAYOFENFEEBLEMENT = "Ray of Enfeeblement"
STRINGS.CHARACTERS.GENERIC.DESCRIBE.FA_SPELL_RAYOFENFEEBLEMENT = "Weakens opponents."
STRINGS.RECIPE_DESC.FA_SPELL_RAYOFENFEEBLEMENT = "Weakens opponents."
Expand Down
6 changes: 3 additions & 3 deletions HeroInTheDark/scripts/prefabs/fa_lavamound.lua
Original file line number Diff line number Diff line change
Expand Up @@ -138,12 +138,12 @@ local function fn(Sim)
inst.fa_digtime=data.fa_digtime
inst.fa_digresettask=inst:DoTaskInTime(MOUND_RESET_PERIOD-GetTime()+inst.fa_digtime,mound_reset)
else
inst.fa_digtime=GLOBAL.GetTime()
inst.fa_digtime=GetTime()
inst.fa_digresettask=inst:DoTaskInTime(MOUND_RESET_PERIOD, mound_reset)
end

local nexttime=inst.components.spawner.nextspawntime or GLOBAL.SKELETONSPAWNDELAY*math.random()
inst.components.spawner:Configure( "skeletonspawn",GLOBAL.SKELETONSPAWNDELAY,nexttime)
local nexttime=inst.components.spawner.nextspawntime or SKELETONSPAWNDELAY*math.random()
inst.components.spawner:Configure( "skeletonspawn",SKELETONSPAWNDELAY,nexttime)
end
end

Expand Down
1 change: 1 addition & 0 deletions HeroInTheDark/scripts/prefabs/fa_totems.lua
Original file line number Diff line number Diff line change
Expand Up @@ -342,6 +342,7 @@ local function redfnbase(Sim)

inst:ListenForEvent("attacked", OnAttacked)
inst:ListenForEvent("onhitother",onhitother)
inst.components.health.fa_resistances[FA_DAMAGETYPE.FIRE]=1

inst:AddComponent("inventory")

Expand Down
8 changes: 1 addition & 7 deletions HeroInTheDark/scripts/prefabs/shields.lua
Original file line number Diff line number Diff line change
Expand Up @@ -133,14 +133,8 @@ local function fn(name)
return not(owner:HasTag("player")) or (owner:HasTag("fa_shielduser"))
end

if EQUIPSLOTS["BACK"] then
inst.components.equippable.equipslot = EQUIPSLOTS.BACK
elseif EQUIPSLOTS["PACK"] then
inst.components.equippable.equipslot = EQUIPSLOTS.PACK
else
inst.components.equippable.equipslot = EQUIPSLOTS.BODY
end


inst:AddTag("shield")
-- inst.components.equippable:SetOnUnequip( onunequip )
inst:AddComponent("armor")
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,7 @@ local function OnCreate(inst, scenariorunner)
end

local function triggertrap(inst,scenariorunner)
FA_ScenarioUtil.FA_SpawnPrefabInProx(inst,"fa_redtotem_kos",2)
FA_ScenarioUtil.FA_SpawnPrefabInProx(inst,"fa_redtotem_kos",2,8)
scenariorunner:ClearScenario()
end

Expand Down

0 comments on commit 4be0fbe

Please sign in to comment.