1
0
mirror of https://github.com/Sokomine/cottages.git synced 2025-07-14 13:50:18 +02:00
* compatibility w/ broken tools

* use staminoid if available

* right, no fmod

* don't include carts texture when carts is not available

* change rope recipe to avoid conflict w/ ethereal

* change barrel recipe to avoid conflict w/ wine

* staminoid integration: use more stamina

* change recipe for glass pane to avoid conflict w/ xdecor

* tree trunk well: compatibility w/ bucket redo

* anvil: more stamina usage

* anvils: more expensive, and not movable

* allow filling glasses of water when using bucket redo

* get safe short description when reporting about tool on anvil

* make sure slabs are registered when using the moreblocks 3.0
This commit is contained in:
fluxionary
2023-08-23 10:34:31 -07:00
committed by GitHub
parent 549c697bc0
commit a850b736d7
22 changed files with 286 additions and 85 deletions

View File

@ -7,8 +7,8 @@ local FS = function(...)
end
local get_safe_short_description = cottages.util.get_safe_short_description
local exhaust_player = cottages.util.exhaust_player
local has_stamina = cottages.has.stamina
local stamina_use = cottages.settings.straw.quern_stamina
local quern_min_per_turn = cottages.settings.straw.quern_min_per_turn
local quern_max_per_turn = cottages.settings.straw.quern_max_per_turn
@ -125,9 +125,7 @@ function straw.use_quern(pos, player)
minetest.sound_play({ name = cottages.sounds.use_quern }, { pos = pos, gain = 1, pitch = 0.25 }, true)
if has_stamina then
stamina.exhaust_player(player, stamina_use, "cottages:quern")
end
exhaust_player(player, stamina_use, "cottages:quern")
return true
end

View File

@ -7,8 +7,8 @@ local FS = function(...)
end
local get_safe_short_description = cottages.util.get_safe_short_description
local exhaust_player = cottages.util.exhaust_player
local has_stamina = cottages.has.stamina
local stamina_use = cottages.settings.straw.threshing_stamina
local threshing_min_per_punch = cottages.settings.straw.threshing_min_per_punch
local threshing_max_per_punch = cottages.settings.straw.threshing_max_per_punch
@ -166,9 +166,7 @@ function straw.use_threshing(pos, player)
minetest.sound_play({ name = cottages.sounds.use_thresher }, { pos = particle_pos, gain = 1, pitch = 0.5 }, true)
if has_stamina then
stamina.exhaust_player(player, stamina_use, "cottages:quern")
end
exhaust_player(player, stamina_use, "cottages:threshing")
return true
end