Exemple #1
0
        private void HandleCraftItem(NWPlayer oPC, NWPlaceable device)
        {
            int            blueprintID = device.GetLocalInt("CRAFT_BLUEPRINT_ID");
            int            deviceID    = device.GetLocalInt("CRAFT_DEVICE_ID");
            CraftBlueprint pcBlueprint = _craft.GetBlueprintKnownByPC(oPC.GlobalID, blueprintID, deviceID);

            if (pcBlueprint == null)
            {
                oPC.FloatingText(_color.Red("You do not know that blueprint."));
                return;
            }

            _craft.CraftItem(oPC, device, blueprintID);
        }