diff options
author | Gabriel Pérez-Cerezo <gabriel@gpcf.eu> | 2016-10-09 21:50:19 +0200 |
---|---|---|
committer | Gabriel Pérez-Cerezo <gabriel@gpcf.eu> | 2016-10-09 21:50:19 +0200 |
commit | 070aeb91f14065c408ed8c5193ac95c009495cc1 (patch) | |
tree | 53e8940f2e98093abe0a03b1ae1080e50c45bc41 | |
parent | 00ef4946a9a401d901e0a1d6a72332a0c5a5e240 (diff) |
Forbids players from renting unlimited shops
-rw-r--r-- | init.lua | 4 |
1 files changed, 3 insertions, 1 deletions
@@ -573,7 +573,9 @@ apartment.rent = function( pos, pname, oldmetadata, actor ) elseif( n.name == "bitchange:warehouse" ) then itext = "Warehouse ("..rented_by..")"; elseif (n.name == "smartshop:shop") then - itext = "Shop by " .. rented_by + itext = "Shop " .. rented_by + m:set_int("creative", 0) + m:set_int("type",1) elseif( n.name == "bitchange:shop" ) then if( m:get_string('title') and m:get_string('title') ~= '' ) then itext = "Exchange shop \""..( m:get_string('title')).."\" ("..rented_by..")"; |