Inherritance for Damagetypes

Post a reply

Smilies
:D :) :( :o :shock: :? 8-) :lol: :x :P :oops: :cry: :evil: :twisted: :roll: :wink: :geek: :ugeek: :!: :?: :idea: :arrow: :| :mrgreen: :3: :wub: >:( :blergh:
View more smilies

BBCode is ON
[img] is OFF
[url] is ON
Smilies are ON

Topic review
   

Expand view Topic review: Inherritance for Damagetypes

Re: Inherritance for Damagetypes

by RockstarRaccoon » Tue May 08, 2018 7:32 am

I see. Ok then. Maybe I can just pull something like having naming conventions like "Fire_Napalm" next time I want to pull something like that then...

Re: Inherritance for Damagetypes

by Graf Zahl » Tue May 08, 2018 12:56 am

Easier said than done. The damage type is currently just a name with no semantics attached.

Inherritance for Damagetypes

by RockstarRaccoon » Mon May 07, 2018 10:01 pm

So like, I could specify something like...

Code: Select all

DamageType Fire {
	Obituary = "Burned to death"
}
DamageType Fireball : Fire {
	Obituary = "Burned to death by fireball"
}
DamageType Lava : Fire {
	Obituary = "Tried to swim in Lava"
}
DamageType PlasmaBeam : Fire {
	Obituary = "Killed by a Plasma Beam"
}
DamageType PlasmaMissileCombo : PlasmaBeam {
	Obituary = "Killed by a Plasma Missile"
}
And it could all be group-referenced as "Fire".

Top