Sign in to follow this  

Merm's name on Merm Throne shows up as "Merm", not "Royal-In-Progress"


Hornete
  • Pending

image.png.6da02519b7230cc302fbaa928bfa8d94.png

Merms sitting on the throne are supposed to change their name to "Royal-In-Progress". However this only works on forest-only worlds to the host, this is because the name change is only applied on the server side in mermkingmanager.lua

function MermKingManager:ShouldGoToThrone(merm, throne)
	if throne ~= nil and self:IsThroneValid(throne) then
		if self:GetKing() == nil and (self:GetCandidate(throne) == nil or self:IsThroneCandidate(merm, throne)) then
			if self:GetCandidate(throne) == nil then
				self.candidates[throne] = merm
				merm.nameoverride = "MERM_PRINCE"
                self.inst:ListenForEvent("onremove", OnCandidateRemoved, merm)
				self.inst:ListenForEvent("death", OnCandidateRemoved, merm)
			end
			return true
		end
	end

	return false
end


The name change needs to be applied to the clients side in order to be fixed.


Steps to Reproduce

1. Host a forest-only world and get a merm on the throne, notice it shows up as "Royal-In-Progress"
2. Host a world with caves enabled(thus become a client) and notice it shows up as just "Merm"
3. despair

  • Like 3
Sign in to follow this  


User Feedback


There are no comments to display.



Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now