You can no longer use blueprints inside player buildings.

You can no longer use blueprints on top of player buildings.
This commit is contained in:
Redacted by Stellabellum INC
2014-10-12 00:58:26 -07:00
parent eda7fcce66
commit 256f25fefc
+15 -3
View File
@@ -1,3 +1,4 @@
include library.player_structure;
include library.utils;
include library.storyteller;
include library.trial;
@@ -30,6 +31,20 @@ trigger OnObjectMenuSelect(obj_id player, int item)
sendSystemMessage(player, new string_id("storyteller", "blueprint_no_trial_accounts"));
return SCRIPT_CONTINUE;
}
// UPDATE 9/14/14: Can no longer use blueprints inside player building
location yourLoc = getLocation(player);
if(isIdValid(yourLoc.cell))
{
sendSystemMessage(player, new string_id("storyteller", "blueprint_not_inside"));
return SCRIPT_CONTINUE;
}
// UPDATE 9/14/14: Can no longer use blueprints on top of player building
obj_id whatAmIStandingOn = getStandingOn(player);
if( isIdValid(whatAmIStandingOn) && player_structure.isBuilding(whatAmIStandingOn))
{
sendSystemMessage(player, new string_id("storyteller", "blueprint_not_on_buildings"));
return SCRIPT_CONTINUE;
}
if (item == menu_info_types.ITEM_USE)
{
@@ -84,6 +99,3 @@ boolean createBlueprint(obj_id blueprint, obj_id player)
sendSystemMessage(player, new string_id("storyteller", "blueprint_saved"));
return true;
}