From 3f079ef8a7d46d5a4864836dbbd9e37b900c0a59 Mon Sep 17 00:00:00 2001 From: David Gay Date: Tue, 25 May 2021 20:44:53 -0400 Subject: Award title for mining a yellow beryl --- app/views/activities/_results.html.erb | 2 ++ app/views/application/components/text/_title.html.erb | 2 ++ 2 files changed, 4 insertions(+) (limited to 'app/views') diff --git a/app/views/activities/_results.html.erb b/app/views/activities/_results.html.erb index e0e54cc..49de2d5 100644 --- a/app/views/activities/_results.html.erb +++ b/app/views/activities/_results.html.erb @@ -16,6 +16,8 @@

<%= result[:monster].description %>

<% when "xp" %>

You gained <%= result[:xp] %> <%= result[:skill].name %> XP.

+ <% when "title" %> +

You earned the title <%= render "application/components/text/title", title: result[:title] %>!

<% when "message" %>

<%= result[:body] %>

<% when "error" %> diff --git a/app/views/application/components/text/_title.html.erb b/app/views/application/components/text/_title.html.erb index 1cf13b7..edcf220 100644 --- a/app/views/application/components/text/_title.html.erb +++ b/app/views/application/components/text/_title.html.erb @@ -2,6 +2,8 @@ <% case title.gid %> <% when "steward" %> Steward + <% when "beryly" %> + Beryly <% else %> <%= title.name %> <% end %> -- cgit v1.2.3