Install Steam
login
|
language
简体中文 (Simplified Chinese)
繁體中文 (Traditional Chinese)
日本語 (Japanese)
한국어 (Korean)
ไทย (Thai)
Български (Bulgarian)
Čeština (Czech)
Dansk (Danish)
Deutsch (German)
Español - España (Spanish - Spain)
Español - Latinoamérica (Spanish - Latin America)
Ελληνικά (Greek)
Français (French)
Italiano (Italian)
Bahasa Indonesia (Indonesian)
Magyar (Hungarian)
Nederlands (Dutch)
Norsk (Norwegian)
Polski (Polish)
Português (Portuguese - Portugal)
Português - Brasil (Portuguese - Brazil)
Română (Romanian)
Русский (Russian)
Suomi (Finnish)
Svenska (Swedish)
Türkçe (Turkish)
Tiếng Việt (Vietnamese)
Українська (Ukrainian)
Report a translation problem
no health penalty after reviving?
Damage resistance to bosses?
Damage boost per lost life?
Automatic revive and saved inventory data files?
I listed possible stat changes that would benefit Isaac for possessing "the dead cat" aka 9 lives aka 10hp away from death 9 times but:
he has 90% damage resistance (10% per death)
he does not get any max health penalties, or in code terms inst.components.health.healthpenalty = 0
he has a special data_tag/file/document that stores his inventory contents after he dies
and can revive with a key bind at will :/
so for the health, you could either use your idea or make more ways of restoring max health
you need a check like
local function HP_up (inst)
if --[[ eaten food is "Bone_stew" or "Honey_ham" or "Pierogi" or "Flower_salad" and ]] inst.components.health.maxhealt < 200 then
inst.components.health.maxhealth = inst.components.health.maxhealth + 10
end
end
btw,I start with -- for every line of code I"m not sure for syntax wise.
In the main character function you need
inst:ListenForEvent("oneat", local function HP_up(inst) end) -- might be wrong somewhere.