aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorGabriel Pérez-Cerezo <gabriel@gpcf.eu>2016-10-09 21:50:19 +0200
committerGabriel Pérez-Cerezo <gabriel@gpcf.eu>2016-10-09 21:50:19 +0200
commit070aeb91f14065c408ed8c5193ac95c009495cc1 (patch)
tree53e8940f2e98093abe0a03b1ae1080e50c45bc41
parent00ef4946a9a401d901e0a1d6a72332a0c5a5e240 (diff)
downloadapartment-070aeb91f14065c408ed8c5193ac95c009495cc1.tar.gz
apartment-070aeb91f14065c408ed8c5193ac95c009495cc1.tar.bz2
apartment-070aeb91f14065c408ed8c5193ac95c009495cc1.zip
Forbids players from renting unlimited shops
-rw-r--r--init.lua4
1 files changed, 3 insertions, 1 deletions
diff --git a/init.lua b/init.lua
index 9196a1e..b2e80a7 100644
--- a/init.lua
+++ b/init.lua
@@ -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..")";