Changeset View
Changeset View
Standalone View
Standalone View
binaries/data/mods/public/globalscripts/DamageTypes.js
- This file was deleted.
Property | Old Value | New Value |
---|---|---|
svn:eol-style | native \ No newline at end of property | null |
function DamageTypes() | |||||
{ | |||||
// TODO: load these from files | |||||
this.names = { | |||||
"Hack": markForTranslationWithContext("damage type", "Hack"), | |||||
"Pierce": markForTranslationWithContext("damage type", "Pierce"), | |||||
"Crush": markForTranslationWithContext("damage type", "Crush"), | |||||
}; | |||||
deepfreeze(this.names); | |||||
} | |||||
DamageTypes.prototype.GetNames = function() | |||||
{ | |||||
return this.names; | |||||
}; | |||||
DamageTypes.prototype.GetTypes = function() | |||||
{ | |||||
return Object.keys(this.names); | |||||
}; |
Wildfire Games · Phabricator