示例#1
0
 public NetworkText GetDeathText(string deadPlayerName)
 {
     if (this.SourceCustomReason != null)
     {
         return(NetworkText.FromLiteral(this.SourceCustomReason));
     }
     return(Lang.CreateDeathMessage(deadPlayerName, this.SourcePlayerIndex, this.SourceNPCIndex, this.SourceProjectileIndex, this.SourceOtherIndex, this.SourceProjectileType, this.SourceItemType));
 }