Changeset 12717
- Timestamp:
- Sep 29, 2012, 12:02:13 AM (12 years ago)
- Location:
- ps/trunk/binaries/data/mods/public/simulation
- Files:
-
- 19 added
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
ps/trunk/binaries/data/mods/public/simulation/components/Health.js
r12699 r12717 16 16 "</element>" + 17 17 "</optional>" + 18 19 20 21 22 18 23 "<element name='RegenRate' a:help='Hitpoint regeneration rate per second. Not yet implemented'>" + 19 24 "<ref name='nonNegativeDecimal'/>" + … … 113 118 { 114 119 state.killed = true; 115 120 116 121 PlaySound("death", this.entity); 122 123 124 125 117 126 118 127 if (this.template.DeathType == "corpse") … … 135 144 var old = this.hitpoints; 136 145 this.hitpoints = 0; 137 146 138 147 Engine.PostMessage(this.entity, MT_HealthChanged, { "from": old, "to": this.hitpoints }); 139 148 } … … 211 220 }; 212 221 222 223 224 225 226 227 228 229 230 231 232 233 234 235 236 237 238 239 240 241 242 243 213 244 Health.prototype.Repair = function(builderEnt, work) 214 245 {
Note:
See TracChangeset
for help on using the changeset viewer.