MCPcopy Create free account
hub / github.com/candybox2/candybox2.github.io / getDeathMessage

Method getDeathMessage

code/main/QuestEntity.ts:228–236  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

226 }
227
228 public getDeathMessage(): string{
229 // If there's a last damage reason
230 if(this.getLastDamageReason() != null){
231 return this.getLastDamageReason().getWhoNaming().getBeginning() + " killed " + this.naming.getAnywhere() + " with " + this.getLastDamageReason().getWhatNaming().getAnywhere() + ".";
232 }
233
234 // Else
235 return this.naming.getBeginning() + " was erased from reality.";
236 }
237
238 public getRenderAreaCenter(): Pos{
239 if(this.renderArea != null)

Callers 15

willDieMethod · 0.95
willDieMethod · 0.80
willDieMethod · 0.80
willDieMethod · 0.80
willDieMethod · 0.80
willDieMethod · 0.80
willDieMethod · 0.80
willDieMethod · 0.80
willDieMethod · 0.80
willDieMethod · 0.80
willDieMethod · 0.80
willDieMethod · 0.80

Calls 5

getLastDamageReasonMethod · 0.95
getBeginningMethod · 0.80
getWhoNamingMethod · 0.80
getAnywhereMethod · 0.80
getWhatNamingMethod · 0.80

Tested by

no test coverage detected