Skip to content

Commit

Permalink
Merge pull request #143 from AresMUSH/dev
Browse files Browse the repository at this point in the history
Beta 107
  • Loading branch information
lynnfaraday authored Apr 12, 2022
2 parents 1ba362c + d6d1814 commit 12e6ef2
Show file tree
Hide file tree
Showing 6 changed files with 27 additions and 5 deletions.
2 changes: 1 addition & 1 deletion install/migrations/0079_beta105_update.rb
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@ def migrate
end

Global.logger.debug "Default unified play."
Character.all.each { |c| c.update(unified_play: true) }
Character.all.each { |c| c.update(unified_play_screen: true) }

end
end
Expand Down
2 changes: 1 addition & 1 deletion install/migrations/0080_beta106_update.rb
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ def require_restart
def migrate

Global.logger.debug "Default unified play - again."
Character.all.each { |c| c.update(unified_play: true) }
Character.all.each { |c| c.update(unified_play_screen: true) }

end
end
Expand Down
17 changes: 17 additions & 0 deletions install/migrations/0081_beta107_update.rb
Original file line number Diff line number Diff line change
@@ -0,0 +1,17 @@
module AresMUSH

module Migrations
class MigrationBeta107Update
def require_restart
false
end

def migrate

Global.logger.debug "Default unified play - third time's the charm?"
Character.all.each { |c| c.update(unified_play_screen: true) }

end
end
end
end
2 changes: 1 addition & 1 deletion plugins/fs3skills/fs3skills_web_char_data.rb
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@ def build(char, viewer)
languages: get_xp_list(char, char.fs3_languages),
advantages: get_xp_list(char, char.fs3_advantages),
xp_points: char.fs3_xp,
can_learn: is_owner,
can_learn: AresCentral.is_alt?(char, viewer),
allow_advantages_xp: Global.read_config("fs3skills", "allow_advantages_xp")
}
else
Expand Down
7 changes: 6 additions & 1 deletion plugins/fs3skills/web/learn_ability_request_handler.rb
Original file line number Diff line number Diff line change
Expand Up @@ -4,13 +4,18 @@ class LearnAbilityRequestHandler
def handle(request)
ability = request.args[:ability]
enactor = request.enactor
char = Character.named(request.args[:char]) || enactor

error = Website.check_login(request)
return error if error

request.log_request

error = FS3Skills.learn_ability(enactor, ability)
if (!AresCentral.is_alt?(enactor, char))
return { error: t('dispatcher.not_allowed') }
end

error = FS3Skills.learn_ability(char, ability)
if (error)
return { error: error }
end
Expand Down
2 changes: 1 addition & 1 deletion version.txt
Original file line number Diff line number Diff line change
@@ -1 +1 @@
0.106
0.107

0 comments on commit 12e6ef2

Please sign in to comment.