Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- weaponDots.text = string.Join("\n", dots.Select(dot =>
- {
- string color = ColorUtility.ToHtmlStringRGBA(dot.damageTextColor);
- string formattedDescription;
- if (dot.applySlow)
- {
- formattedDescription = string.Format(dot.dotDescription,
- $"<color=#{color}>{dot.damagePerTickPct}</color>",
- $"<color=#{color}>{dot.tickCooldown}</color>",
- $"<color=#{color}>{dot.dotMaxTime}</color>",
- $"<color=#{color}>{dot.slowAmount}</color>",
- $"<color=#{color}>{dot.slowTime}</color>"
- );
- }
- else if (dot.applyResistanceDebuff)
- {
- formattedDescription = string.Format(dot.dotDescription,
- $"<color=#{color}>{dot.damagePerTickPct}</color>",
- $"<color=#{color}>{dot.tickCooldown}</color>",
- $"<color=#{color}>{dot.dotMaxTime}</color>",
- $"<color=#{color}>{dot.resistanceDebuffAmount}</color>",
- $"<color=#{color}>{dot.resistanceDebuffTime}</color>"
- );
- }
- else
- {
- formattedDescription = string.Format(dot.dotDescription,
- $"<color=#{color}>{dot.damagePerTickPct}</color>",
- $"<color=#{color}>{dot.tickCooldown}</color>",
- $"<color=#{color}>{dot.dotMaxTime}</color>"
- );
- }
- return $"<color=#{color}>- {dot.dotName}</color>\n<indent=2.5%><color=white>{formattedDescription}</color></indent>";
- }));
Advertisement
Add Comment
Please, Sign In to add comment