Virtual prop repair method, device and electronic equipment
By automatically repairing virtual props during the repair process and allowing players to use props to attack when repairing progress, the problem of virtual props repair affecting the game experience is solved, improving the freedom of use and game experience.
Patent Information
- Application Number
- CN202311740461.8
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2023-12-15
- Publication Date
- 2024-11-08
- Estimated Expiration
- 2043-12-15
AI Technical Summary
In competitive games, virtual props will be lost during use, resulting in repairs. Players need to wait for repairs to continue the game, which will affect the user experience.
Provides a method for repairing virtual props, allowing virtual characters to automatically repair during the prop repair process, and allows players to use the prop to attack when the repair progress is selected, avoiding waiting for the repair to complete.
It improves the freedom of use during prop repair, reduces the operating burden of players, and improves the game experience and player retention rate.
Smart Images

Figure CN117861218B_ABST
Abstract
Description
Technical Field
[0001] The present application relates to the field of computer technology, and in particular to a method, device, electronic device and computer-readable storage medium for repairing a virtual prop. Background Art
[0002] At present, competitive games generally require the use of virtual props for fighting. Virtual props usually suffer certain losses during use, which requires repairing virtual props to ensure that they can continue to be used normally. In related technologies, during the prop repair process, players often need to wait for the prop repair to be completed before they can play the game. If the player forces the game, the completed repair work will be wasted, which will be detrimental to player retention. Therefore, how to ensure that players are using the props without affecting the progress of prop repair has become an urgent problem to be solved. Summary of the invention
[0003] The present application provides a method, device, electronic device and computer-readable storage medium for repairing a virtual item, which can allow a player to use the item to attack during the item repair process and retain the current repair progress. The specific solution is as follows:
[0004] In a first aspect, an embodiment of the present application provides a method for repairing a virtual prop, the method comprising:
[0005] In response to the durability value of the first virtual item in the virtual backpack corresponding to the virtual character satisfying the repair condition, repairing the first virtual item;
[0006] In response to a selection operation on the first virtual prop being repaired, controlling the virtual character to hold the first virtual prop of the first repair progress;
[0007] In response to a first game attack instruction, the virtual character is controlled to hold the first virtual prop at the first repair progress to perform an attacking behavior.
[0008] In a second aspect, an embodiment of the present application provides a virtual prop repair device, the device comprising:
[0009] a repair unit, configured to repair the first virtual item in the virtual backpack corresponding to the virtual character in response to the durability value of the first virtual item satisfying a repair condition;
[0010] a pause repairing unit, configured to control the virtual character to hold the first virtual prop at the first repairing progress in response to a selection operation on the first virtual prop being repaired;
[0011] The control unit is used to control the virtual character to hold the first virtual prop at the first repair progress to perform an attacking behavior in response to a first game attack instruction.
[0012] In a third aspect, the present application further provides an electronic device, including:
[0013] Processor; and
[0014] The memory is used to store a data processing program. After the electronic device is powered on and the program is run by the processor, the method described in the first aspect is executed.
[0015] In a fourth aspect, an embodiment of the present application further provides a computer-readable storage medium storing a data processing program, which is executed by a processor to perform the method described in the first aspect.
[0016] Compared with the prior art, this application has the following advantages:
[0017] The method for repairing virtual props provided in the embodiment of the present application repairs the first virtual prop in response to the durability value of the first virtual prop in the virtual backpack corresponding to the virtual character satisfying the repair condition, that is, as long as the durability value of the first virtual prop in the virtual backpack satisfies the repair condition, the first virtual prop can be automatically repaired without the operation of the player; in response to the selection operation on the first virtual prop being repaired, the virtual character is controlled to hold the first virtual prop with a first repair progress, that is, while the first virtual prop is being repaired, the player can arbitrarily suspend the repair of the first virtual prop, select the first virtual prop as the prop held by the virtual character, and retain the current first repair progress of the first virtual prop; in response to the first game attack instruction, the virtual character is controlled to hold the first virtual prop in the first repair progress to attack. In the present application, the virtual character is allowed to use the first virtual prop that is currently repaired to the first repair progress to attack, avoiding the need to wait for the prop repair to be completed before attacking. The virtual prop repair method provided in the embodiment of the present application can allow players to use the props to attack during the prop repair process and retain the current repair progress, thereby improving the freedom of use during the prop repair process. In addition, the present application can also reduce the player's operating burden and improve the player's gaming experience, thereby improving the player retention rate. BRIEF DESCRIPTION OF THE DRAWINGS
[0018] Figure 1 is a game system diagram for implementing a method for repairing virtual props provided in an embodiment of the present application;
[0019] Figure 2 is a flow chart of a method for repairing a virtual prop provided in an embodiment of the present application;
[0020] Figure 3 It is a display schematic diagram of a virtual character holding a first virtual prop in the virtual prop repair method provided in an embodiment of the present application;
[0021] Figure 4 It is a display schematic diagram of the attack control in the virtual prop repair method provided in the embodiment of the present application;
[0022] Figure 5 It is a display schematic diagram of an example of a backpack interface in the method for repairing a virtual prop provided in an embodiment of the present application;
[0023] Figure 6 It is a schematic diagram of displaying a prop list in a method for repairing virtual props provided in an embodiment of the present application;
[0024] Figure 7 It is a schematic diagram showing an example of a progress indicator in a method for repairing a virtual prop provided in an embodiment of the present application;
[0025] Figure 8 is a schematic diagram showing another example of a progress indicator in a method for repairing a virtual item provided in an embodiment of the present application;
[0026] Fig. 9 is a display schematic diagram of an example of a virtual prop repair completed in the virtual prop repair method provided in an embodiment of the present application;
[0027] Fig.10 is another display schematic diagram of a virtual prop repair completed in the virtual prop repair method provided in an embodiment of the present application;
[0028] Fig.11 It is a display schematic diagram of picking up a repair resource in the repair method of a virtual prop provided in an embodiment of the present application;
[0029] Fig.12 It is a display schematic diagram of purchasing repair resources in the repair method of virtual props provided in an embodiment of the present application;
[0030] Fig.13 is a display schematic diagram of an example of a repair control in a method for repairing a virtual prop provided in an embodiment of the present application;
[0031] Fig.14 It is a structural block diagram of an example of a virtual prop repair device provided in an embodiment of the present application;
[0032] Fig.15 It is a structural block diagram of an example of an electronic device provided in an embodiment of the present application. DETAILED DESCRIPTION
[0033] Many specific details are described in the following description to facilitate a full understanding of the present application. However, the present application can be implemented in many other ways than those described herein, and those skilled in the art can make similar generalizations without violating the connotation of the present application, so the present application is not limited by the specific implementation disclosed below.
[0034] It should be noted that the terms "first", "second", "third", etc. in the claims, description and drawings of the present application are used to distinguish similar objects and are not used to describe a specific order or sequence. The data used in this way are interchangeable where appropriate, so that the embodiments of the present application described herein can be implemented in an order other than that illustrated or described herein. In addition, the terms "including", "having" and their variants are intended to cover non-exclusive inclusions, for example, a process, method, system, product or device that includes a series of steps or units is not necessarily limited to those steps or units clearly listed, but may include other steps or units that are not clearly listed or inherent to these processes, methods, products or devices.
[0035] It should be understood that in the embodiments of the present application, "at least one" refers to one or more, and "more than one" refers to two or more. "And / or" is merely a way to describe the association relationship of associated objects, indicating that three relationships may exist. For example, A and / or B can represent: A exists alone, A and B exist at the same time, and B exists alone. The character " / " generally indicates that the previous and subsequent associated objects are in an "or" relationship. "Including A, B and / or C" means including any one, any two, or any three of A, B, and C.
[0036] It should be understood that in the embodiments of the present application, "B corresponding to A", "B corresponding to A", "A corresponds to B", or "B corresponds to A" means that B is associated with A, and B can be determined according to A. Determining B according to A does not mean determining B only according to A, and B can also be determined according to A and / or other information.
[0037] It should be noted that in the embodiment of the present application, the same virtual game is running on multiple terminal devices, so the data interaction between multiple terminal devices can be realized through the server of the virtual game. Therefore, the sending of data from terminal device 1 to terminal device 2 can be understood as: terminal device 1 sends data to the server of the virtual game, and the server sends the data to terminal device 2. The receiving of data sent by terminal device 1 from terminal device 2 can be understood as: terminal device 1 receives data sent by the server of the virtual game, and the data is the data sent by terminal device 2 to the server.
[0038] It should be noted that the instructions or operations that appear in the subsequent detailed introduction of the method for repairing virtual props provided in the embodiment of the present application can be regarded as instructions or operations triggered by the player through fingers or controlling a mouse, keyboard, game controller or stylus or voice. The specific triggering operation can be determined according to the type of electronic device. For example, when the electronic device is a touch screen device such as a mobile phone, tablet computer, game console, etc., the player can trigger instructions or operations on the touch screen through any suitable object or accessory such as a finger or stylus, or can trigger instructions or operations through voice. When the terminal device is a non-touch screen terminal device such as a desktop computer or a laptop computer, the player can trigger instructions or operations through external devices such as a mouse, keyboard, and game controller.
[0039] Based on the problems existing in the above-mentioned related technologies, the embodiments of the present application provide a method, device, electronic device and computer-readable storage medium for repairing a virtual prop.
[0040] The repair method of the virtual props provided in the embodiment of the present application can be executed by an electronic device, which can be a terminal or a server. The terminal can be a terminal device such as a smart phone, a tablet computer, or a laptop computer. The server can be an independent physical server, or a server cluster or a distributed system composed of multiple physical servers, or a cloud server that provides basic cloud computing services such as cloud services, cloud databases, cloud computing, cloud storage, network services, cloud communications, middleware services, domain name services, security services, CDN, and big data and artificial intelligence platforms. It is understandable that the present application does not specifically limit the execution subject of the repair method of the virtual props.
[0041] In an optional embodiment, when the method for repairing virtual props is run on a terminal device, the terminal device may include a display screen and a processor, the display screen being used to present a game screen and receive instructions generated by a player acting on the game screen. The game screen may include a portion of a virtual game scene, which is a virtual world in which virtual characters perform activities. The processor is used to store game applications, run the game, generate game screens, respond to instructions, and control the display of game screens on a display screen. When a player operates the game screen through the display screen, the game screen can control the local content of the terminal device by responding to the received operation instructions. The terminal device may provide a graphical user interface to a player in a variety of ways, for example, it may be rendered and displayed on a display screen of the terminal device, or the graphical user interface may be presented through holographic projection.
[0042] In an optional embodiment, when the method for repairing virtual props is run on a server, the method can be implemented and executed based on a cloud gaming system. A cloud gaming system refers to a gaming method based on cloud computing. A cloud gaming system includes a server and a client device. The operating body of the game application and the game screen presentation body are separated, and the storage and operation of the method for repairing virtual props are completed on the server. The game screen presentation is completed on the client, and the client is mainly used for receiving and sending game data and presenting the game screen. For example, the client can be a display device with a data transmission function close to the player side, such as a mobile terminal, a TV, a computer, a handheld computer, a personal digital assistant, a head-mounted display device, etc., but the terminal device for processing game data is a server in the cloud. When playing the game, the player instructs the client to send instructions to the server, and the server controls the running of the game according to the instructions, encodes and compresses the game screen and other data, and returns it to the client through the network. Finally, the client decodes and outputs the game screen.
[0043] It should be noted that in the embodiment of the present application, the execution subject of the method for repairing virtual props can be a terminal device or a server, wherein the terminal device can be a local terminal device or a client device in the aforementioned cloud game. The embodiment of the present application does not limit the type of the execution subject.
[0044] For example, in combination with the above introduction, Figure 1 A game system 100 for implementing a method for repairing virtual items provided by an embodiment of the present application is shown. The game system 100 may include at least one terminal 101, at least one server 102, and a network. The terminal 101 held by the player may be connected to the server 102 of different games through the network. The terminal is any device with computing hardware that can support and execute software application tools corresponding to the game.
[0045] In the above-mentioned game system 100, the terminal 101 is used to install and run the game application. In some cases, the game application may not be installed in advance in the terminal 101, and the player can directly access the game through a client such as a browser. The player uses the registered game account to log in to the game application, and can control the virtual character corresponding to the game account to participate in the game. When the player logs in to the game application, the terminal 101 will send a login request to the server 102, and the server 102 will verify the game account used by the player. At the same time, the server 102 determines the game mechanism corresponding to the game account according to the login request, and returns a login success notification to the terminal 101 after the verification is passed. In the process of the player participating in the game through the game application, the terminal 101 and the server 102 interact with each other, and the terminal 101 sends various information to the server 102. The server 102 determines the display data of the terminal 101 according to the stored game mechanism and the received information, and sends the display data to the terminal 101, so that the display data sent by the server 102 can be displayed to the player through the terminal 101.
[0046] In possible application scenarios, different terminals 101 may be served by different servers 102. Therefore, in order to distinguish the servers 102 corresponding to different game terminals 101, the following description will be made using the first and second methods. In fact, the servers 102 corresponding to different game terminals 101 may be the same server 102. Therefore, without distinguishing between the first and the second, it can be understood that the terminals 101 corresponding to the virtual characters in the same game scene are served by the same server 102.
[0047] In addition, when the game system 100 includes multiple terminals, multiple servers, and multiple networks, different terminals can be connected to each other through different networks and different servers.
[0048] Among them, the terminal 101 can have one or more multi-touch screens for sensing and obtaining the input of the user through touch or sliding operations performed at multiple points on one or more touch display screens. The terminal 101 can also be connected to a keyboard and / or a mouse and / or a game controller, so that the user can perform interface operations through the keyboard and / or mouse and / or a game controller.
[0049] The network may be a wireless network or a wired network, such as a wireless network such as a wireless local area network (WLAN), a local area network (LAN), a cellular network, a 2G network, a 3G network, a 4G network, a 5G network, etc. In addition, different terminals may also use their own Bluetooth network or hotspot network to connect to other terminals or to a server, etc. In addition, the system 100 may include multiple databases, which are coupled to different servers, and game-related information may be continuously stored in the database when different players play a multi-player game online.
[0050] It should be noted that Figure 1 The game system diagram shown is only an example. The game system 100 described in the embodiment of the present application is to more clearly illustrate the technical solution of the embodiment of the present application, and does not constitute a limitation on the technical solution provided in the embodiment of the present application. A person of ordinary skill in the art can know that with the evolution of the game system and the emergence of new business scenarios, the technical solution provided in the embodiment of the present application is also applicable to similar technical problems.
[0051] The technical solution of the present application is described in detail below through specific embodiments. It should be noted that the following specific embodiments can be combined with each other, and the same or similar concepts or processes may not be described in detail in some embodiments.
[0052] The following, combined Figure 2 to Figure 13 The game processing method provided by the embodiment of the present application is introduced.
[0053] like Figure 2 As shown, the virtual prop repair method provided by the present application includes the following steps S201 to S203.
[0054] Step S201: In response to the durability value of a first virtual item in a virtual backpack corresponding to a virtual character satisfying a repair condition, the first virtual item is repaired.
[0055] A virtual character can be understood as a game character controlled by a player in a virtual game. A virtual character refers to a character that does not exist in reality, and generally includes but is not limited to at least one of a virtual person, a virtual animal, and a virtual machine. In the embodiment of the present application, a player can use a terminal device to operate a virtual character in a game scene to perform a game behavior, and the game behavior includes but is not limited to at least one of: adjusting body posture, crawling, walking, running, jumping, driving, picking up, shooting, attacking, throwing, moving, sprinting, and defending.
[0056] In the present application, the virtual game may be an action-adventure game (AAVG), a shooting game (STG), a massively multiplayer online role-playing game (MMORPG), etc., which is not limited in the embodiments of the present application. It should be noted that the specific types of virtual games may include but are not limited to at least one of the following: two-dimensional (2D) game applications, three-dimensional (3D) game applications, virtual reality (VR) game applications, augmented reality (AR) game applications, and mixed reality (MR) game applications; the embodiments of the present application do not limit the specific types of virtual games.
[0057] A virtual backpack can be understood as a storage space for storing virtual props owned by a virtual character. Virtual props owned by a virtual character refer to virtual items that the virtual character has the right to dispose of and control, such as virtual weapons, virtual medicines, virtual gems, game mission props, etc.; disposing of and controlling virtual props can be, for example, selling virtual props, discarding virtual props, assembling virtual props, using virtual props to attack, etc. The virtual props owned by a virtual character can be obtained by picking up props in game scenes, game rewards, etc.
[0058] The first virtual item in the virtual backpack is a virtual item that has been damaged to varying degrees during historical use, and the first virtual item is not currently held by the virtual character. It is understandable that, currently, the virtual character may be holding the virtual item or may not be holding the virtual item, and the virtual character may be holding the virtual item and performing an attack or may be holding the virtual item and not performing an attack.
[0059] The durability of virtual props can be represented by different degrees of damage. Specifically, the durability can be used to measure the durability of the corresponding virtual props during use. In virtual games, when a virtual character uses a virtual prop to attack, a certain durability may be consumed. When the durability is exhausted, the virtual prop may not be able to be used normally, and usually needs to be repaired to restore its function. The existence of durability simulates the loss of items in the real world, making the game experience more realistic.
[0060] In an optional embodiment, the durability value of the virtual prop can be visually presented to the player in a variety of ways, such as displaying a progress bar corresponding to the durability value on the icon of the virtual prop, displaying the remaining durability value digitally, or indicating the current durability value of the virtual prop through visual effects (such as color changes of the virtual prop). The color change of the virtual prop can be, for example, the lower the durability value, the darker the color, and vice versa.
[0061] It should be noted that virtual props are usually also set with attribute values corresponding to the type of virtual props. For example, virtual weapons correspond to attack values. Durability and attack values belong to different attribute values. The attack value is used to characterize the ability of the corresponding virtual props to cause damage when attacking. Generally speaking, the higher the attack value, the greater the damage the virtual prop can cause to the enemy. For example, in a game, the attack value of a sword is 10, so when using this sword to attack, it can cause 10 points of damage to the target; when the attack value of this sword is 6, when using this sword to attack, it can cause 6 points of damage to the target. In summary, the attack value is an attribute that directly affects combat effectiveness, while the durability value is related to the durability and service life of the virtual props. The two are different concepts.
[0062] The repair condition may be that the durability value is lower than the preset durability value, and the preset durability value may be the maximum durability value, or an intermediate durability value lower than the maximum durability value. For example, if the maximum durability value of the first virtual item is 100 and the preset durability value is 100, then the repair condition is met when the current durability value of the first virtual item is lower than 100; or, if the maximum durability value of the first virtual item is 100 and the preset durability value is 90, then the repair condition is met when the current durability value of the first virtual item is lower than 90.
[0063] It should be noted that in the present application, repairing the first virtual item may be repairing all virtual items in the virtual backpack whose durability values meet the repair conditions, and repairing the first virtual item may be used to increase the current durability value of the first virtual item.
[0064] When the durability value of the virtual prop meets the above repair conditions, the virtual prop is automatically repaired. Correspondingly, when the durability value of the virtual prop does not meet the above repair conditions, the virtual prop is not automatically repaired, and the virtual prop whose durability value does not meet the above repair conditions can be repaired through manual operation of the player.
[0065] Compared with the existing method that requires players to perform repair operations on virtual props, in the virtual prop repair method provided in the embodiment of the present application, when the durability value of the first virtual prop in the virtual backpack meets the repair conditions, it will be automatically repaired, and there is no need to repair the first virtual prop under the operation of the player. In this way, the player's operating burden is reduced, allowing the player to focus on controlling the virtual character to perform game behaviors in the game scene, thereby improving the player's gaming experience.
[0066] In addition, compared with the existing method that requires the player to hold the virtual prop in hand to repair it, the virtual prop repair method provided in the embodiment of the present application can directly repair the first virtual prop in the virtual backpack, unbinding the repair of the virtual prop from the player's hand holding, thereby improving the degree of freedom in the virtual game.
[0067] Step S202: in response to a selection operation on the first virtual prop being repaired, controlling the virtual character to hold the first virtual prop at the first repairing progress.
[0068] While the first virtual prop is being repaired, the player can trigger a selection operation on the repaired first virtual prop through the terminal, and the selection operation is to control the virtual character to hold the first virtual prop so as to use the first virtual prop to perform game actions in the game scene.
[0069] The selection operation may include, but is not limited to, unfolding the virtual backpack and selecting the first virtual item, a touch operation on a selection control corresponding to the first virtual item on the interface, a voice command operation, an air gesture operation, or a shortcut key operation. The touch operation may be a click operation, a slide operation, a press operation, or a drag operation, etc. This embodiment does not specifically limit the triggering method of the selection operation.
[0070] In a specific implementation, in response to a selection operation on a first virtual prop being repaired, firstly, a first repair progress of the first virtual prop can be obtained, and the first repair progress can be used to characterize the repair work completed by the current first virtual prop; secondly, the virtual character is controlled to hold the first virtual prop of the first repair progress.
[0071] In an embodiment of the present application, the selected first virtual props may be one or more. When the selected first virtual prop is one, the virtual character is controlled to hold the one first virtual prop. When the selected first virtual props are multiple, the virtual character is controlled to hold multiple first virtual props.
[0072] In the present application, after the virtual character is controlled to hold the first virtual prop with the first repair progress, a picture of the virtual character holding the first virtual prop will be displayed on the game interface corresponding to the terminal controlling the virtual character.
[0073] like Figure 3 , which is a display schematic diagram of a virtual character holding a first virtual prop in a method for repairing a virtual prop provided in an embodiment of the present application, Figure 3 The game interface (3-a) and the game interface (3-b) are included, wherein the game interface (3-a) displays at least a part of the game scene, and the game scene includes a virtual character 301. When the above-mentioned selection operation is triggered on the terminal, the game interface (3-a) will switch to the game interface (3-b), and the game interface (3-b) displays the game scene, and the game scene includes the virtual character 301 holding the first virtual prop 302 selected by the selection operation.
[0074] It can be understood that in the embodiment of the present application, the first virtual prop can specifically be a virtual weapon. The virtual weapon is a prop with attack properties, which is used for fighting or attacking in the game scene. Virtual weapons are not limited to weapons, swords, etc. For example, in a virtual game, if virtual items such as virtual clothing and virtual accessories can also output attacks, then these virtual items can also be regarded as virtual weapons.
[0075] Step S203: In response to the first game attack instruction, the virtual character is controlled to hold the first virtual prop at the first repair progress to perform an attacking behavior.
[0076] It can be understood that the virtual props held by the virtual character are the props that will be output for attack when the virtual character is currently performing an attack behavior. Therefore, when the virtual character holds the first virtual prop, the corresponding first game attack instruction can be used to control the virtual character to use the held first virtual prop to perform an attack behavior. The first game instruction is an instruction to control the virtual character to hold the first virtual prop to perform an attack behavior.
[0077] The target of the attack behavior may be a player virtual character controlled by other players through terminal devices, or a non-player virtual character controlled by a server instead of a real player, and the embodiment of the present application does not make any specific limitation.
[0078] The first game instruction can be triggered by the player's control operation on the attack control, and the control operation can be a touch operation or a non-touch operation such as an air gesture; the first game instruction can also be operated by voice input, shortcut keys of an external device, etc. Among them, the touch operation can be a click operation, a slide operation, a press operation or a drag operation, etc., and the present application does not specifically limit the triggering method of the first game attack instruction.
[0079] In an embodiment of the present application, the control styles of the attack controls corresponding to each virtual prop may be the same or different. When the control styles of the attack controls corresponding to each virtual prop are different, each attack control may be specifically presented in the game interface with a control style that includes the appearance of the corresponding virtual prop, that is, the attack control corresponding to the first virtual prop may be presented with a control style that includes the appearance of the first virtual prop. The present application does not impose any restrictions on the control style of the attack control.
[0080] like Figure 4 , which is a display schematic diagram of the attack control in the virtual prop repair method provided in the embodiment of the present application, Figure 4 It includes a game interface (4-a) and a game interface (4-b).
[0081] At least part of the game scene is displayed in the game interface (4-a), and the game scene includes a virtual character 301 holding a first virtual prop 302 and an enemy virtual character 303. The game interface (4-a) also provides an attack control 310 corresponding to the first virtual prop 302. The attack control 310 presents a control style including the appearance of the first virtual prop 302. After the player triggers a touch operation on the attack control 310, the virtual character 301 holds the first virtual prop 302 to attack the enemy virtual character 303.
[0082] At least part of the game scene is displayed in the game interface (4-b), and the game scene includes a virtual character 301 holding a first virtual prop 304 and an enemy virtual character 303. The game interface (4-b) also provides an attack control 311 corresponding to the first virtual prop 304. The attack control 311 presents a control style including the appearance of the first virtual prop 304. After the player triggers a touch operation on the attack control 311, the virtual character 301 holds the first virtual prop 304 and attacks the enemy virtual character 303.
[0083] Understandably, Figure 4 The enemy virtual character 303 may be a player virtual character controlled by other players through terminal devices, or may be a non-player virtual character controlled by a server instead of a real player, and this embodiment of the present application does not make any specific limitation. Figure 4 The display method of the attack control shown in the figure is only an example and is not intended to limit the attack control provided in the embodiment of the present application.
[0084] The virtual prop repair method provided in the embodiment of the present application repairs the first virtual prop in response to the durability value of the first virtual prop in the virtual backpack corresponding to the virtual character satisfying the repair condition, that is, as long as the durability value of the first virtual prop in the virtual backpack satisfies the repair condition, the first virtual prop can be automatically repaired without the operation of the player; in response to the selection operation on the first virtual prop being repaired, the virtual character is controlled to hold the first virtual prop with a first repair progress, that is, while the first virtual prop is being repaired, the player can arbitrarily select the first virtual prop as the prop held by the virtual character and retain the current first repair progress of the first virtual prop; in response to the first game attack instruction, the virtual character is controlled to hold the first virtual prop in the first repair progress to attack. In the present application, the virtual character is allowed to use the first virtual prop that is currently repaired to the first repair progress to attack, avoiding the need to wait for the prop repair to be completed before attacking. The virtual prop repair method provided in the embodiment of the present application can allow players to use the props to attack during the prop repair process and retain the current repair progress, thereby improving the freedom of use during the prop repair process. In addition, the present application can also reduce the player's operating burden and improve the player's gaming experience, thereby improving the player retention rate.
[0085] Optionally, in the present application, in response to the above selection operation, the repair of the first virtual prop in the above first repair progress may also be stopped.
[0086] It should be noted that in the present application, when the repair of the first virtual item currently in the first repair progress is stopped, the first repair progress of the first virtual item is retained, and the currently completed repair work is not cleared. For example, when the selection operation is triggered for the first virtual item being repaired, the first virtual item is currently repaired to 80%, then when the repair of the first virtual item is stopped, the current repair progress of the first virtual item is retained at 80%, and the virtual character is controlled to hold the first virtual item with a repair progress of 80%.
[0087] Optionally, the first virtual item in the virtual backpack whose durability meets the repair condition may have a certain repair order, so step S201 may specifically include the following steps:
[0088] Step S201-1: Acquire the first virtual item in the virtual backpack whose durability value meets the repair condition;
[0089] Step S201 - 2 : repairing the first virtual item according to the repair order of the first virtual item whose durability value satisfies the repair condition.
[0090] Optionally, the above step S201-2 may include the following steps: according to the repair sequence of the first virtual items whose durability values satisfy the repair condition, repairing a preset number of the first virtual items in the repair sequence.
[0091] In the specific implementation, the durability value of each virtual prop in the virtual backpack can be obtained first, and the first virtual prop whose durability value meets the repair condition can be selected. Then, the repair order corresponding to the selected first virtual prop can be determined. Finally, the selected first virtual prop can be automatically repaired according to the repair order.
[0092] In the present application, the preset number can be one or more, that is, only one first virtual prop can be repaired, for example, only the first virtual prop ranked first in the repair order can be repaired; or multiple first virtual props can be repaired, for example, the first 5 first virtual props ranked first in the repair order can be repaired.
[0093] Further, in the embodiment of repairing multiple first virtual props, it is allowed to repair a first number of first virtual props at the same time each time, or only repair one first virtual prop each time, and the first number may be less than or equal to the total number of first virtual props to be repaired. For example, if five first virtual props need to be repaired, it may be set to repair five first virtual props at the same time each time, or it may be set to repair two first virtual props at the same time each time.
[0094] It should be noted that the repair time for each first virtual prop to be repaired may be the same or different. When the repair time for each first virtual prop to be repaired is different, when the first number of first virtual props are repaired at the same time, some first virtual props are repaired quickly, while some first virtual props take a long time to repair. In this case, when some first virtual props are repaired, virtual props can be selected from the first virtual props that have not yet been repaired in accordance with the above repair order, so that the number of first virtual props being repaired is the first number.
[0095] In a specific implementation, the first virtual props that are being repaired at the same time can be taken as a repair set, and the number of virtual props in the repair set should always be maintained at the first number. Based on the proposed concept of a repair set, the following steps can also be performed in an embodiment of the present application: when at least one first virtual prop in the repair set is repaired, a virtual prop is selected from the first virtual props in a repair order, and the selected virtual prop is added to the repair set so that the number of virtual props in the repair set is the first number, and the virtual props in the repair set are repaired.
[0096] For example, the repair order of the first virtual prop a, the first virtual prop b, the first virtual prop c, and the first virtual prop d is the first virtual prop b→the first virtual prop d→the first virtual prop a→the first virtual prop c. When the first number is 1, the four first virtual props are repaired in the order of the first virtual prop b→the first virtual prop d→the first virtual prop a→the first virtual prop c. When the first number is 2, the first virtual prop b and the first virtual prop d are repaired first. If the first virtual prop b and the first virtual prop d are repaired at the same time, the first virtual prop a and the first virtual prop c are repaired. If the first virtual prop b is repaired first and the first virtual prop d is still being repaired, the first virtual prop a is repaired while the first virtual prop d is being repaired. When at least one of the first virtual prop d and the first virtual prop a is repaired, the first virtual prop c is repaired.
[0097] Optionally, the repair sequence in this application may include but is not limited to at least one of the following:
[0098] The first repair order is to repair the pre-selected virtual props first, the second repair order is to repair according to the preset prop arrangement order, the third repair order is to repair according to the arrangement order of the prop durability value, the fourth repair order is to repair according to the arrangement order of the prop rarity, the fifth repair order is to repair according to the arrangement order of the prop level, and the sixth repair order is to repair according to the arrangement order of the prop usage frequency. In specific implementation, only one of the first repair order to the sixth repair order can be used to repair the first virtual prop. For example, only the first repair order is used. Then, when there is a pre-selected first virtual prop, the pre-selected virtual prop is used as the first virtual prop and is repaired first. It is also possible to use multiple repair orders from the first repair order to the sixth repair order to repair the first virtual prop, for example, the first repair order and the sixth repair order are used to repair the first virtual prop.
[0099] It should be noted that when multiple repairing sequences are used to repair the first virtual prop, there may be priorities among the multiple repairing sequences.
[0100] For example, when the first repair order and the sixth repair order are used to repair the first virtual prop, the first repair order has a higher priority than the sixth repair order, so the pre-reserve first virtual prop can be repaired first, and then the remaining first virtual props can be repaired according to the prop usage frequency.
[0101] In a specific implementation, the preset prop arrangement order may be a repair order of virtual props customized by the player in the game settings; the third repair order to the sixth repair order may be specifically referred to in the following Table 1:
[0102] Table 1.
[0103] Third repair sequence Repair items in descending order of durability. Fourth repair sequence Repair items in descending order of rarity Fifth repair sequence Repair in descending order of item level Sixth repair sequence Repair items in descending order of frequency of use
[0104] That is, the repair order in the present application may specifically include but is not limited to at least one of the following: a first repair order that gives priority to repairing pre-selected virtual props, a second repair order that repairs according to a preset prop arrangement order, a third repair order that repairs according to an arrangement order from low to high in prop durability, a fourth repair order that repairs according to an arrangement order from high to low in prop rarity, a fifth repair order that repairs according to an arrangement order from high to low in prop level, and a sixth repair order that repairs according to an arrangement order from high to low in prop usage frequency. If the first repair order is adopted, the first virtual prop pre-selected by the player can be repaired first, avoiding the problem of the pre-selected first virtual prop not being able to be used normally due to insufficient durability for a long time. It can be seen that the first repair order can make the pre-selected first virtual prop be repaired first, ensuring the normal use of the pre-selected first virtual prop.
[0105] The preset prop arrangement order in the second repair order may be an arrangement order customized by the player for the virtual props in the virtual backpack.
[0106] If the third repair order is adopted, the virtual item with the lowest durability value will be repaired first. Since the remaining usage time of the virtual item with the lowest durability value is the shortest, this can effectively avoid the problem that the virtual item with low durability value quickly becomes unusable. It can be seen that when the third repair order is adopted, the first virtual item with the lowest durability value can be repaired first, and the durability of the first virtual item with the lowest durability value can be increased first.
[0107] If the fourth repair order is adopted, the virtual props with the highest rarity will be repaired first. Since props with higher rarity have higher values, usually, props with higher rarity can bring greater game gains to players, such as causing high damage to the enemy. In this way, the fourth repair order can make the first virtual prop with the highest rarity be repaired first, to ensure that the player can use the first repair prop normally in the game, thereby maximizing the game gain.
[0108] If the sixth repair order is adopted, the virtual props with the highest usage frequency will be repaired first. It can be understood that the prop usage frequency can be the usage frequency of each virtual prop in the player's historical data, or the usage frequency of each virtual prop in a preset time period from the current moment. The prop usage frequency can reflect the player's usage of each virtual prop. In this way, adopting the sixth repair order can make the first virtual prop with a higher usage frequency be repaired in time to ensure that the player can continue to use the first virtual prop normally.
[0109] In a specific implementation, when the first repair sequence and the sixth repair sequence are used to repair the first virtual props, the priority of the first repair sequence is higher than that of the sixth repair sequence, and the pre-selected first virtual props can be repaired first, and then the remaining first virtual props can be repaired in order of prop usage frequency from high to low, that is, the pre-selected first virtual props are repaired first, and after the pre-selected first virtual props are repaired, the first virtual props with the highest prop usage frequency are repaired first according to the prop usage frequency, until all the first virtual props are repaired.
[0110] Specifically, in the present application, the first repair order may be set as the repair order with the highest priority. When repairing the first virtual item according to the repair order of the first virtual item whose durability value meets the repair condition, the following steps may be specifically followed:
[0111] Repairing the pre-selected first virtual prop according to the first repair sequence;
[0112] In response to the completion of repair of the first virtual prop that is pre-selected as a standby, the virtual props in the first virtual props except the pre-selected first virtual prop are repaired according to one of the second repair sequence, the third repair sequence, the fourth repair sequence, the fifth repair sequence, and the sixth repair sequence.
[0113] Optionally, the method for repairing a virtual prop provided in the embodiment of the present application may further include the following steps:
[0114] Step S204: After the attacking behavior ends, the first virtual item may be repaired according to the first repair progress.
[0115] It should be noted that if the first virtual item is attacking, the first virtual item cannot be repaired, and if the first virtual item stops attacking, the first virtual item can be automatically repaired. Therefore, after the virtual character ends the attack with the first virtual item, the first virtual item can be repaired.
[0116] It can be understood that when the repair of the first virtual item is stopped, the first repair progress of the first virtual item is retained. Therefore, in the present application, the first virtual item can be repaired continuously according to the first repair progress of the first virtual item. The first repair progress is used to characterize the repair work completed by the current first virtual item, which can be the durability value currently repaired; it can also be the durability value added during the repair process; it can also be the percentage of the currently completed repair work in the total repair work, etc. For example, the maximum durability of the first virtual item is 100, and the durability value before the automatic repair is started is 68. In response to the first virtual item meeting the repair condition, the first virtual item is repaired. After 1 minute of repair, the repair of the first virtual item is stopped. Assuming that 10 durability values are repaired (added) in 1 minute, the first repair progress can refer to the durability value currently repaired to 78, or it can refer to the newly added durability value 10, or it can refer to the percentage of the currently completed repair work in the total repair work 10 / (100-68).
[0117] In a specific implementation, the attacking behavior performed by the virtual character holding the first virtual prop has no effect on the durability of the first virtual prop, and therefore, the first virtual prop can continue to be repaired at the first repair progress of the first virtual prop.
[0118] In another specific implementation, if the attacking behavior of the virtual character holding the first virtual prop affects the durability of the first virtual prop, the first durability of the first virtual prop after the attacking behavior can be determined based on the usage data of the first virtual prop in the attacking behavior and the first repair progress; and the first virtual prop is repaired according to the first durability. The details are as follows:
[0119] First: determining the second durability value of the first virtual item when it does not attack according to the first repair progress, that is, first determining the durability value restored to the first virtual item from the start of repair to the stop of repair;
[0120] Secondly, obtaining the third durability value consumed by the first virtual item during the attacking behavior;
[0121] Then, the third durability value is subtracted from the second durability value to obtain the first durability value;
[0122] Finally, the first virtual item is automatically repaired according to the first durability value.
[0123] When the first repair progress is the durability value currently repaired to the first virtual prop, the second durability value is the first repair progress; when the first repair progress is the durability value added during the repair process of the first virtual prop, the sum of the durability value of the first virtual prop before the start of the repair and the first repair progress is determined as the second durability value; when the first repair progress is the percentage of the repair work currently completed by the first virtual prop in the total repair work, the product of the durability value to be restored by the total repair work and the first repair progress can be determined first, and the sum of this product and the durability value of the first virtual prop before the start of the repair is determined as the second durability value.
[0124] For example, the maximum durability of the first virtual item is 100, the durability of the first virtual item before the repair begins is 60, and when the first repair progress of the first virtual item is that the durability is repaired to 80, the player triggers a selection operation for the first virtual item, and at this time, the second durability is 80; the maximum durability of the first virtual item is 100, the durability of the first virtual item before the repair begins is 60, and when the first repair progress of the first virtual item is that 20 durability values are added during the repair process, the player triggers a selection operation for the first virtual item. operation, at this time, the second durability is 80 (60+20); the maximum durability of the first virtual item is 100, and the durability of the first virtual item before the repair begins is 60. When the first repair progress of the first virtual item is 50% of the repair work has been completed, the player triggers a selection operation for the first virtual item. At this time, the durability value of the total repair work of the first virtual item can be calculated to be 40. When the selection operation is triggered, the repair work has restored a total of 20 (40*50%) durability values, and the second durability value is 80 durability values.
[0125] Step S204 is mainly performed in the following two situations:
[0126] Scenario 1: After the attacking behavior ends, if the virtual character continues to hold the first virtual prop, the first virtual prop is automatically repaired.
[0127] Scenario 2: After the attacking behavior ends and the virtual character no longer holds the first virtual prop, the first virtual prop is automatically repaired.
[0128] When step S204 is performed under situation 2, the specific implementation of the above step of "automatically repairing the first virtual item according to the first durability value" is as follows:
[0129] In response to an uninstallation operation triggered for the first virtual prop held by the virtual character, a picture showing that the first virtual prop is not held by the virtual character is displayed, and the first virtual prop is repaired according to the first durability value.
[0130] Among them, the uninstall operation triggered by the first virtual prop held by the virtual character can be triggered by a shortcut key, a shortcut control, a click on the first virtual prop held by the virtual character, etc. The uninstall operation can be an operation input by the player corresponding to the virtual character through input methods such as keyboard, mouse, touch screen, sensor, etc., and the embodiment of the present application is not limited to this.
[0131] After the uninstall operation is triggered, the first virtual prop can be automatically repaired according to the first durability value, and a picture showing that the virtual character no longer holds the virtual prop will be displayed on the terminal corresponding to the virtual character.
[0132] Optionally, the durability value in the present application may specifically be any one of the following: remaining number of uses, remaining usage time, and degree of damage to item components.
[0133] If the durability value is the remaining number of uses, the repair condition is that the remaining number of uses is less than the preset maximum number of uses; if the durability value is the remaining usage time, the repair condition is that the remaining usage time is less than the preset maximum usage time; if the durability value is the damage degree of the prop component, the repair condition is that the damage degree of the prop component is greater than or equal to the preset damage degree.
[0134] When the durability value is the number of remaining uses, the above step of "determining the first durability value of the first virtual item after the attacking behavior according to the usage data of the first virtual item in the attacking behavior and the first repair progress" can be specifically implemented by the following steps:
[0135] Subtract the number of times the first virtual item is used in the attacking behavior from the remaining number of times the first virtual item is used as indicated by the first repair progress to obtain an updated remaining number of times;
[0136] The updated remaining number of uses is determined as the first durability value.
[0137] For example, the remaining number of uses of the first virtual item indicated by the first repair progress is 16 times, and the number of uses of the first virtual item in the attack behavior is 3 times, then the remaining number of uses after update is 13 times. In this way, when the first virtual item continues to be repaired, the repair of the first virtual item starts with the remaining number of uses being 13 times.
[0138] When the durability value is the remaining usage time, the above step of "determining the first durability value of the first virtual item after the attacking behavior according to the usage data of the first virtual item in the attacking behavior and the first repair progress" can be specifically implemented by the following steps:
[0139] Subtract the remaining usage time of the first virtual item during the attacking behavior from the remaining usage time of the first virtual item indicated by the first repair progress to obtain an updated remaining usage time;
[0140] The updated remaining usage time is determined as the first durability value.
[0141] For example, the remaining usage time of the first virtual item indicated by the first repair progress is 8 minutes, and the remaining usage time of the first virtual item in the attack behavior is 1 minute, then the updated remaining usage time is 7 minutes. In this way, when the first virtual item continues to be repaired, the repair of the first virtual item starts with the remaining usage time of 7 minutes.
[0142] Optionally, when the virtual character holds the second virtual prop, the following steps may be performed in the embodiment of the present application:
[0143] Step S205: In response to the second game attack instruction, the virtual character is controlled to hold the second virtual prop to perform an attacking behavior.
[0144] It can be understood that, similar to the above-mentioned first game instruction, the second game instruction is an instruction for controlling the virtual character to hold the second virtual prop to attack. The triggering method of the second game instruction is similar to that of the above-mentioned first game instruction, and can refer to the triggering method of the above-mentioned first game instruction, which will not be repeated here.
[0145] When the second game instruction is triggered by the player's control operation on the attack control, the attack control corresponding to the second virtual prop can be presented in a control style including the appearance of the second virtual prop.
[0146] It should be noted that, in the embodiment of the present application, when the player does not use the first virtual prop to perform a game task in the virtual game, the repair timing of the first virtual prop is only affected by whether the durability value satisfies the above-mentioned repair conditions, and the game tasks performed include but are not limited to one of the following instructions: controlling the virtual character to pick up props in the game scene, interacting with other virtual characters in the game scene, and purchasing virtual props.
[0147] Therefore, step S201 can be specifically performed in the following situations:
[0148] While the virtual character is holding the second virtual prop, in response to the durability value of the first virtual prop in the virtual backpack corresponding to the virtual character meeting a repair condition, repairing the first virtual prop;
[0149] or,
[0150] During the period when the virtual character holds the second virtual item to perform an attack, in response to the durability value of the first virtual item in the virtual backpack corresponding to the virtual character meeting a repair condition, the first virtual item is repaired.
[0151] It can be understood that in the embodiment of the present application, the period when the virtual character holds the second virtual prop means that the virtual character holds the second virtual prop and does not attack. During the period when the virtual character holds the second virtual prop, the player can control the virtual character to move in the game scene, pick up the prop, etc.
[0152] In addition, while the first virtual prop is being repaired, the player will not be subject to any restrictions and can freely perform the above-mentioned game tasks in the virtual game.
[0153] Optionally, in the present application, the virtual character holding the second virtual prop can be specifically implemented in the following steps: when the virtual character does not hold the virtual prop, in response to a selection instruction for the second virtual prop in the virtual backpack, controlling the virtual character to hold the second virtual prop.
[0154] It can be understood that in the virtual backpack, a selection instruction can be directly triggered for the second virtual prop, and the second virtual prop selected by the selection instruction is used as the virtual prop held by the virtual character, thereby controlling the virtual character to hold the second virtual prop.
[0155] Optionally, while the virtual character is holding the second virtual prop, the "in response to the selection operation on the first virtual prop being repaired, controlling the virtual character to hold the first virtual prop of the first repair progress" in step S202 may specifically be: in response to the selection operation on the first virtual prop being repaired, switching the second virtual prop held by the virtual character to the first virtual prop of the first repair progress.
[0156] It can be understood that in response to the selection operation for the first virtual prop being repaired, the terminal can remove the second virtual prop currently held by the virtual character, control the virtual character to hold the first virtual prop, and switch the display of the second virtual prop held by the virtual character on the terminal to a picture of the virtual character holding the first virtual prop. In this way, after the second virtual prop is switched to the first virtual prop, the player can control the virtual character holding the first virtual prop to perform attacking behavior.
[0157] Optionally, the embodiment of the present application may further include the following steps:
[0158] Display a prop list, wherein the prop list includes prop information of the virtual prop currently held by the virtual character and prop information of the first virtual prop pre-selected as a backup; the virtual props displayed in the prop list are props selected by the player operating the virtual character from the virtual backpack.
[0159] The prop list can be understood as a prop bar. The prop list is used to display the prop information of the virtual props currently held by the virtual character, wherein the virtual props currently held by the virtual character include the virtual props currently held by the virtual character and the first virtual props pre-selected for backup. The prop information includes the prop identification, durability value, etc. of the virtual props.
[0160] In a specific embodiment of the present application, in response to a touch operation on a backpack control set in a game interface, or in response to an interactive operation on a virtual facility in a game scene, a backpack interface corresponding to a virtual backpack is displayed, and the backpack interface can be divided into multiple display areas, and the multiple display areas can include a first display area for displaying virtual props currently held, and a second display area for displaying virtual props not currently held. In some virtual games, the backpack interface can also include a third display area, and the third display area is used to display virtual consumable props. Virtual consumable props can include, but are not limited to: virtual bullets, virtual arrows, and virtual potions.
[0161] Taking virtual weapons as an example, virtual weapons owned by the virtual character (for example, picked up in the game scene or purchased in the virtual mall) or contained in virtual facilities (for example, virtual treasure boxes) within the preset range of the virtual character can be displayed in the second display area; virtual consumable props owned by the virtual character (for example, picked up in the game scene, purchased in the virtual mall) or contained in virtual facilities within the preset range of the virtual character can be displayed in the third display area; in response to the first prop selection operation on the second display area, the virtual weapon selected by the first prop selection operation in the second display area is used as the virtual prop currently held by the virtual character and displayed in the first display area. A prop list is generated according to the display content of the first display area.
[0162] It should be noted that in this application, the virtual props currently held by the virtual character include the virtual props currently held by the virtual character and the pre-selected standby virtual props corresponding to the virtual character, and should not be understood as only the virtual props currently held by the virtual character. Specifically, in response to the second prop selection operation on the first display area, among the virtual weapons currently held in the first display area, the virtual weapon selected by the second prop selection operation is used as the virtual prop currently held by the virtual character, and the unselected virtual weapons are used as the pre-selected standby virtual props of the virtual character.
[0163] By setting up a prop list, players can quickly switch virtual props during intense games.
[0164] The following Figure 5 and Figure 6 Introduction to virtual backpack and prop list:
[0165] like Figure 5 , which is a display schematic diagram of an example of a backpack interface in a method for repairing a virtual prop provided in an embodiment of the present application, Figure 5 It includes a game interface (5-a), a game interface (5-b) and a game interface (5-c).
[0166] The game interface (5-a) displays at least part of the game scene, the virtual character 301 in the game scene, and the virtual treasure box 305 placed in the game scene. The game interface (5-a) also provides a backpack control 312, and the backpack control 312 displays a backpack icon. The virtual treasure box 305 and the backpack control 312 can be used to expand the virtual backpack in the game interface. In response to an interactive operation on the virtual treasure box 305 or a touch operation on the backpack control 312, the game interface (5-a) will switch to (5-b). In an optional manner, the backpack interface can also include a page switching tag for facilitating the player to switch between the first page and the second page, wherein the first page displays the virtual props owned by the virtual character, and the second page is used to display the virtual props in the virtual treasure box; when the player purchases the virtual props in the virtual treasure box, the purchased virtual props are displayed on the first page.
[0167] The game interface (5-b) displays at least part of the game scene and the virtual character 301 in the game scene. The game interface (5-b) also includes a backpack interface 313, wherein the backpack interface 313 includes a first display area 313-1 for displaying the currently held virtual props, a second display area 313-2 for displaying the currently unheld virtual props, and a third display area 313-3 for displaying virtual consumable props. The first display area 313-1 may include two prop windows for respectively accommodating the virtual knife 306 and the virtual firearm currently held by the virtual character. Specifically, the prop window displays the contained virtual props in the form of prop icons, such as the prop icon 314 of the virtual knife 306 and the prop icon 315 of the virtual firearm shown in the game interface (5-b). It can be understood that the second display area 313-2 may also include multiple prop windows, each of which is used to accommodate a virtual prop; the third display area 313-3 may include multiple prop windows, each of which is used to accommodate a virtual consumable prop. It should be noted that the virtual prop currently held by the virtual character is a handheld weapon selected in advance by the player operating the virtual character 301 from the virtual backpack, and the pre-selected spare virtual prop is a spare weapon selected in advance by the player operating the virtual character 301 from the virtual backpack.
[0168] In a specific embodiment of the present application, taking the virtual props as virtual weapons as an example, the virtual weapons can be virtual knives, virtual guns, etc. Figure 5 and Figure 6This solution is described as follows: in response to a touch operation on the backpack control 312, the backpack interface 313 is triggered to be displayed. In this embodiment, the first display area 313-1 of the backpack interface 313 is initially empty, and the second display area 313-2 displays the virtual weapons owned by the virtual character 301; in response to the first prop selection operation on the second display area 313-2, the virtual weapon selected by the first prop selection operation in the second display area is used as the virtual weapon currently held by the virtual character 301 and displayed in the first display area 313-1, as shown in the game interface (5-b), the virtual knife 306 and the virtual firearm are the virtual weapons selected by the first prop selection operation. A prop list is generated according to the display content of the first display area 313-1. Furthermore, in response to the second prop selection operation on the first display area 313-1, the virtual weapon selected by the second prop selection operation among the virtual weapons currently held in the first display area 313-1 is used as the virtual weapon currently held by the virtual character 301, and the unselected virtual weapons are used as the virtual weapons pre-selected as spares for the virtual character, as shown in the game interface (5-b). For example, if the second prop selection operation acts on the prop list containing the virtual knife 306, the virtual knife 306 is the currently held virtual weapon, and the virtual firearm is the pre-selected spare virtual weapon, wherein the prop window containing the virtual knife 306 is highlighted to indicate that the virtual weapon is held by the virtual character.
[0169] It can be understood that, as shown in the game interface (5-c), the second prop selection operation acts on the prop list containing the virtual firearm 307, then the virtual firearm 307 is the front-hand virtual weapon, and the virtual knife 306 is the pre-selected spare virtual weapon, wherein the prop window containing the virtual firearm 307 is highlighted to indicate that the virtual weapon is held by the virtual character.
[0170] It should be noted that in response to the second item selection operation, in addition to Figure 5 In addition to the highlighted display of the currently held virtual weapon as shown in the example, the prop window for accommodating the virtual props currently held by the virtual character and the prop window for accommodating pre-selected spare virtual props in the present application can also be distinguished and displayed in the following manner: the prop window for accommodating the virtual props currently held by the virtual character is displayed in the first color, the prop window for accommodating the pre-selected spare virtual props is displayed in the first color, the prop window for accommodating the virtual props currently held by the virtual character is displayed as a selection mark of "√", etc. For example, the first color can be blue and the second color can be gray.
[0171] Generate a prop list according to the display content of the first display area of the backpack interface. Specifically, after closing the backpack interface, the prop list is displayed in the game interface, and the content displayed in the prop list is associated with the display content of the first display area in the backpack interface. Specifically, the prop window included in the first display area in the backpack interface corresponds to the prop window included in the prop list, that is, the prop list also includes a prop window for accommodating the virtual props currently held by the virtual character, and the prop window included in the prop list can also display the contained virtual props in the form of prop icons. In addition, each prop window corresponding to the prop list can also provide the durability value of the contained virtual props. It should be noted that the display mode of the prop window for accommodating the virtual props currently held by the virtual character and the prop window for accommodating the pre-selected spare virtual props in the prop list can be respectively consistent with the corresponding prop window in the backpack interface. For example, if the virtual prop currently held by the virtual character in the backpack interface is highlighted, the virtual prop currently held by the virtual character in the prop list is also highlighted.
[0172] In an embodiment of the present application, the display positions of the two prop windows in the prop list and the two prop windows included in the first display area in the backpack interface can be the same or different. For example, the prop window in the first display area in the backpack interface for accommodating the virtual props currently held by the virtual character is located above the prop window for accommodating pre-selected virtual props, the prop window in the prop list for accommodating the virtual props currently held by the virtual character can be located above the prop window for accommodating pre-selected virtual props, and the prop window in the prop list for accommodating the virtual props currently held by the virtual character can also be located below the prop window for accommodating pre-selected virtual props. The prop window in the prop list for accommodating the virtual props currently held by the virtual character and the prop window for accommodating pre-selected virtual props can also be displayed side by side, and the two prop windows do not overlap with each other.
[0173] like Figure 63 is a schematic diagram of displaying a prop list in a method for repairing a virtual prop provided in an embodiment of the present application. The game interface displays at least part of a game scene and a virtual character 301 in the game scene. The game interface also includes a prop list 317. The prop list 317 can be provided with a plurality of prop windows for respectively displaying virtual props currently held by the virtual character and prop information corresponding to the currently held virtual props. For example, the virtual character 301 holds a virtual knife 306 and a virtual firearm. The prop list 317 can include two prop windows 317-1 and 317-2. The prop window 317-1 is used to hold the virtual firearm, and the prop window 317-2 is used to hold the virtual knife 306. The item information of the virtual gun is displayed in the item window 317-1, and the item information of the virtual knife 306 is displayed in the item window 317-2. The item information displayed in the item window 317-1 includes the item icon 315 of the virtual gun and "20 / 20" used to represent the current durability value of the virtual gun. The item information displayed in the item window 317-2 includes the item icon 314 of the virtual knife 306 and "16 / 20" used to represent the current durability value of the virtual knife 306. When the player clicks on the item window 317-2, the virtual character is controlled to hold the virtual knife 306, and the item window 317-2 containing the virtual knife 306 currently held by the virtual character is highlighted.
[0174] It should be noted that Figure 6 In the example, the durability value corresponds to the remaining number of uses of the virtual props. In the prop window 317-2, "20 / 20" means that the preset maximum number of uses of the virtual knife 306 currently held by the virtual character is 20 times, and the remaining number of uses of the virtual knife 306 is 20 times. In the prop window 317-1, "16 / 20" means that the preset maximum number of uses of the pre-selected backup virtual firearm is 20 times, and the remaining number of uses of the virtual firearm is 20 times.
[0175] In an optional embodiment, the prop window in the prop list for accommodating the virtual props currently held by the virtual character and the prop window for accommodating pre-selected virtual props can also have other different display styles to enable the player to quickly distinguish whether the virtual props contained in each prop window in the prop list are the currently held virtual props or the pre-selected virtual props.
[0176] The above-mentioned display style may specifically include but is not limited to: the display positions of the prop window for accommodating the virtual props currently held by the virtual character and the prop window for accommodating the pre-selected virtual props are different, the display sizes of the prop window for accommodating the virtual props currently held by the virtual character and the prop window for accommodating the pre-selected virtual props are different, the display colors of the prop window for accommodating the virtual props currently held by the virtual character and the prop window for accommodating the pre-selected virtual props are different, and the prop window for accommodating the virtual props currently held by the virtual character contains a preset graphic for indicating that the accommodated virtual props are the virtual props held by the virtual character. The preset graphic may include but is not limited to any one of the following: "√", circle, triangle, rectangle, etc. The present application does not specifically limit the display style of the prop window for accommodating the virtual props currently held by the virtual character and the prop window for accommodating the pre-selected virtual props.
[0177] It should be noted that, in the case where the first virtual prop is a pre-selected virtual prop, the selection operation in step S202 may also be a touch operation on the prop list, and the touch operation on the prop list is used to control the virtual character to hold the first virtual prop, thereby switching between the currently held and pre-selected virtual props. Specifically, the prop window in the prop list for accommodating the pre-selected first virtual prop may include a prop icon corresponding to the first virtual prop, and the touch operation may be triggered for the prop icon. The prop window in the prop list for accommodating the pre-selected first virtual prop may also include a touch icon. Reference Figure 6 , the virtual character currently holds the virtual knife 306, and the virtual gun is a pre-selected standby virtual prop. After that, click the prop icon 315 of the virtual gun to switch the virtual knife 306 originally held by the virtual character to the virtual gun, and the virtual knife 306 is used as the pre-selected standby virtual prop.
[0178] In the embodiment of the present application, when the virtual character holds a virtual prop, the touch operation on the prop list can specifically realize the switching between the virtual prop held by the virtual character and the pre-selected spare virtual prop.
[0179] In a specific implementation, the prop list as a whole can be used as a response area, that is, Figure 6 Any position in the prop list 317 can be a touch point position of a touch operation, and a trigger operation is performed on the prop list according to the touch point position.
[0180] In another specific implementation, the prop window in the prop list for accommodating the virtual prop currently held by the virtual character can be used as a response area, that is, Figure 6Any position in the middle prop window 317 - 2 can be a touch point position for a touch operation, and a trigger operation is performed on the prop list based on the touch point position.
[0181] In another specific implementation, the prop window in the prop list for accommodating pre-selected virtual props can be used as a response area, that is, Figure 6 Any position in the middle prop window 317 - 1 can be a touch point position for a touch operation, and a trigger operation is performed on the prop list based on the touch point position.
[0182] In this application, in response to a touch operation on the prop list, the switching between the virtual props held by the virtual character and the pre-selected virtual props can be implemented in the following manner:
[0183] In response to the touch operation on the prop list, the virtual props contained in the prop window for containing the virtual props currently held by the virtual character and the prop window for containing the pre-selected standby virtual props are switched in position, and the virtual props held by the virtual character are switched from the virtual props contained in the prop window for containing the virtual props currently held by the virtual character before the position switch to the virtual props contained in the prop window for containing the virtual props currently held by the virtual character after the position switch. It can be understood that the virtual props contained in the prop window for containing the virtual props currently held by the virtual character after the position switch are also the virtual props contained in the prop window for containing the pre-selected standby virtual props before the position switch, thereby realizing the switching of the virtual props held by the virtual character and the pre-selected standby virtual props.
[0184] It can be seen that by displaying the prop list, the player can quickly and conveniently switch between the virtual prop currently held by the virtual character and the pre-selected backup virtual props, without having to unfold the virtual backpack to switch the virtual prop currently held by the virtual character. The specific advantages are as follows:
[0185] 1. Convenience of operation: The prop list is usually located in a prominent position on the game interface. Triggering the prop list to directly switch props allows players to operate more easily during the game. In contrast, the existing method of switching props from a virtual backpack requires opening the virtual backpack first, and then selecting props from multiple virtual props, which is more cumbersome.
[0186] 2. Combat Fluency: In battle, it is crucial to quickly switch virtual props. Switching props directly by triggering the prop list will not interrupt the player's operating rhythm or cause the battle to be interrupted. In contrast, the existing method of switching props from a virtual backpack may require pausing the game, affecting the combat experience.
[0187] 3. Strategic decision-making: By directly switching props through triggering operations on the prop list, players can quickly respond to battlefield conditions and adjust tactics. The existing method of switching props from the virtual backpack will waste combat time, which will have serious negative effects if the player is currently in a fierce battle.
[0188] 4. Avoiding misoperation: Since the virtual backpack contains all the virtual props owned by the virtual character, a virtual prop that is not currently needed may be mistakenly selected when switching props from the virtual backpack. In this application, players are allowed to pre-select pre-selected backup virtual props, and a prop list containing the pre-selected backup virtual props window selected by the player is displayed in the game interface. In this way, the player can accurately switch the virtual props held by the virtual character to the pre-selected backup virtual props through the prop list, which can effectively avoid mistakenly selecting unnecessary virtual props when selecting virtual props from the virtual backpack.
[0189] In short, switching virtual props through the displayed prop list provides a faster and smoother operation experience, which is beneficial to the player's performance in battle and helps to maintain the strategic and entertaining nature of the game. For players, the simple and intuitive weapon switching method can enhance the gaming experience and make it feel more comfortable and natural.
[0190] Optionally, in the virtual prop repair method provided in the embodiment of the present application, a progress indicator for indicating the repair progress corresponding to the first virtual prop may be displayed on the game interface of the terminal corresponding to the virtual character.
[0191] The progress indicator can be displayed in the above-mentioned prop list, or can be displayed in other positions in the game interface, which is not limited in this application. The selection operation in step S202 can also be a touch operation on the progress indicator.
[0192] like Figure 7 As shown, it is a display schematic diagram of an example of a progress indicator in the virtual prop repair method provided in an embodiment of the present application. The game interface displays at least a portion of the game scene. The game interface also includes a prop list 317. The prop list 317 includes a prop window 317-1 for accommodating pre-selected spare virtual firearms. The prop window 317-1 contains a prop icon 315 of the virtual firearm. The virtual firearm is a virtual prop that is being repaired. The prop window 317-1 displays a progress indicator 400 for the virtual firearm.
[0193] like Figure 8As shown, it is a display schematic diagram of another example of a progress indicator in the virtual prop repair method provided in an embodiment of the present application. At least part of the game scene is displayed in the game interface. The game interface also includes a prop list 317 and a repair display area 318 showing prop information of a virtual firearm. The virtual firearm is a virtual prop that is being repaired. The repair display area 318 displays a prop icon 316 of the virtual firearm and a progress indicator 401 of the virtual firearm.
[0194] It is understandable that the progress indicator in the present application can be at least one of a progress bar, a repair percentage, a remaining repair time, a remaining number of uses, and a preset icon.
[0195] Among them, the repair progress bar reads the progress as time goes by, and the repair of the first virtual prop is completed when the progress of the repair progress bar is full, the repair percentage is used to indicate the proportion of the completed repair part of the first virtual prop to the total repair part, the remaining repair time is the difference between the total repair time and the repaired time corresponding to the first virtual prop, the remaining number of uses is the sum of the remaining number of uses corresponding to the first virtual prop when no repair is performed and the number of uses restored during the repair process, and the repair of the first virtual prop is completed when the remaining number of uses reaches a preset maximum number of uses.
[0196] It should be noted that the remaining repair time refers to the time required to complete the current repair of the first virtual prop, and the remaining repair time is different from the remaining usage time mentioned above.
[0197] In addition, when the first virtual item is being repaired and when the repair is paused, the progress indicator may be presented in different styles.
[0198] Specifically, when the progress indicator is a progress bar, if the first virtual item is in repair, the progress indicator is presented in a manner of a growing progress bar; if the first virtual item is in a repair pause, the progress indicator is presented in a manner of a stopped progress bar.
[0199] When the progress indicator is a repair percentage, if the first virtual item is in repair, the progress indicator is presented in a manner of increasing the repair percentage; if the first virtual item is in repair pause, the progress indicator is presented in a manner of stopping the repair percentage.
[0200] When the progress indicator is the remaining repair time, if the first virtual item is in repair, the progress indicator is presented in a manner that the remaining repair time decreases; if the first virtual item is in repair pause, the progress indicator is presented in a manner that the remaining repair time stops decreasing.
[0201] When the progress indicator is the remaining number of uses, if the first virtual item is in the process of being repaired, the progress indicator is presented in a manner in which the remaining number of uses increases; if the first virtual item is in the process of being repaired, the progress indicator is presented in a manner in which the remaining number of uses stops increasing.
[0202] In the case where the progress indicator is a preset icon, if the first virtual prop is in repair, the progress indicator is presented in a manner that the preset icon has a flashing effect; if the first virtual prop is in a repair pause, the progress indicator is presented in a manner that the preset icon does not have a flashing effect; or, if the first virtual prop is in repair, the progress indicator is presented in a manner that the color of the preset icon continuously changes; if the first virtual prop is in a repair pause, the progress indicator is presented in a manner that the preset icon has a fixed color.
[0203] In the embodiment of the present application, the selection operation in step S202 may be a touch operation on a progress indicator corresponding to the first virtual prop, or a touch operation on a sub-area displaying a pre-selected first virtual prop, and the present application does not specifically limit this.
[0204] Optionally, in a case where a first virtual prop pre-selected as a spare in the prop list is repaired, in the present application, in response to completion of the repair of the first virtual prop, the first virtual prop may be highlighted in the prop list.
[0205] It is understandable that highlighting the first virtual prop that has been repaired can immediately attract the player's attention, making it easier for the player to notice that the first virtual prop has been repaired, so as to quickly operate the virtual character to hold the first virtual prop that has been repaired to perform an attack. The highlighting can be one or more of highlighting, displaying a color that is different from other virtual props displayed in the prop list, and the like.
[0206] like Fig. 9 As shown, it is a display schematic diagram of an example of virtual prop repair completion in the virtual prop repair method provided by the embodiment of the present application. At least part of the game scene is displayed in the game interface. The game interface also includes a prop list 317. The prop list 317 includes a prop window 317-1 containing a virtual firearm. The virtual firearm is currently repaired and the remaining number of uses is restored to 20. The prop window 317-1 can display a bold frame to indicate that the virtual firearm contained has been repaired. It should be noted that Fig. 9In the embodiment, the frame of the prop window accommodating the repaired virtual prop is bolded to highlight the repaired virtual prop. In specific implementation, the repaired virtual prop may be highlighted by highlighting the prop icon corresponding to the repaired virtual prop or changing the color of the prop icon corresponding to the repaired virtual prop. This application does not specifically limit this.
[0207] In another optional embodiment, in response to the completion of the repair of the first virtual prop, a prompt message indicating that the repair of the first virtual prop is complete can also be displayed in the game interface to quickly prompt the player that the first virtual prop has been repaired, so as to quickly operate the virtual character to hold the repaired first virtual prop and perform attacking behavior.
[0208] like Fig.10 As shown, it is a display schematic diagram of another example of the completion of repair of a virtual prop in the virtual prop repair method provided in an embodiment of the present application. The game interface includes a prop list 317, and the prop list 317 includes a prop window 317-1 containing a virtual firearm. The virtual firearm is currently repaired and the remaining number of uses is restored to 20. Then, a display box 500 is provided in the game interface, and a prompt message "Virtual firearm repair completed, do you want to use it immediately" is displayed in the display box 500. The display box 500 also provides a "yes" control for quickly switching the virtual prop held by the virtual character to the first virtual prop that has been repaired, and a "no" control for refusing to switch the virtual prop held by the virtual character.
[0209] Optionally, in the embodiment of the present application, the first virtual item can be repaired by consuming the repair resources in the game. Therefore, the "repairing the first virtual item" in step S201 may include the following steps:
[0210] Obtaining the number of repair resources that the virtual character has in the current game for repairing virtual props;
[0211] Determining a repairable durability value according to the amount of the repair resource;
[0212] The first virtual item is repaired with the repairable durability value.
[0213] The repairable durability value refers to the durability value that can be restored to the first virtual item when the first virtual item is repaired by the repair resource. Specifically, the repairable durability value represents the durability value that can be increased or restored to the first virtual item after the repair resource is used.
[0214] Take the durability value as the remaining number of uses as the following example: the remaining number of uses of the first virtual item is 8 times, and the virtual character has 3 repair resources in the current game, and the 3 repair resources can restore the number of uses 3 times. Then, when the first virtual item is repaired by the 3 repair resources, the remaining number of uses of the first virtual item can be restored to 11 times at most.
[0215] Generally, the repairable durability value is positively correlated with the number of repair resources. For example, the repairable durability value corresponding to 5 repair resources may be 5, and the repairable durability value corresponding to 10 repair resources may be 10.
[0216] In addition, the durability value of a repair resource that can be repaired within a unit time period can be a fixed value. For example, the durability value that a repair resource can repair in one minute is 1, and the durability value that 10 repair resources can repair in one minute is 10.
[0217] In the embodiment of the present application, the repair resource is a consumable item that can be obtained by picking up or purchasing. Therefore, the repair method of the virtual item provided in the embodiment of the present application may further include the following steps:
[0218] In response to a pick-up operation for a repair resource in the game scene, the repair resource picked up by the pick-up operation is determined as a repair resource owned by the virtual character in the current game match.
[0219] The above-mentioned picking operation can be achieved by the player controlling the virtual character to move to the placement location of the repair resource in the game scene. Usually, some repair resources will be placed in the game scene, and the virtual character will also discard the repair resources during the game to free up storage space in the virtual backpack. In this way, the repair resources can be obtained through the picking operation.
[0220] Alternatively, in the present application, in response to a purchase operation for a repair resource, the repair resource purchased by the purchase operation may be determined as the repair resource owned by the virtual character in the current game match.
[0221] The virtual game corresponds to a virtual store for purchasing virtual resources, and the purchased virtual resources may include but are not limited to one or more of virtual props, repair resources, virtual skins, and special effects. In this way, the repair resources can be obtained by purchasing the repair resources in the virtual store.
[0222] Optionally, an upper limit on the number of repair resources that a virtual character can possess may be set to prevent the virtual character from obtaining repair resources without limit, thereby saving storage space.
[0223] In the case where an upper limit on the number of repair resources owned by the virtual character is set, the virtual item repair method provided in the embodiment of the present application may further include the following steps:
[0224] When the number of repair resources owned by the virtual character reaches the upper limit, displaying a message that the repair resource has failed to be picked up according to the picking operation; or
[0225] According to the purchase operation, information indicating that the purchase of the repair resource has failed is displayed.
[0226] like Fig.11 FIG. 1 is a schematic diagram showing the picking up of repair resources in the method for repairing a virtual prop provided in an embodiment of the present application. Fig.11 The game interface (11-a) and the game interface (11-b) are included. The game interface (11-a) includes a virtual character 301 in a game scene, a repair resource 308 placed in the game scene, and a store control 320 for opening a virtual store. When the repair resources owned by the virtual character 301 reach the upper limit of the owned quantity, after the pick-up operation is triggered for the repair resource 308, the game interface (11-a) will switch to the interface game (11-b), and the game interface (11-b) will display a display box 501 containing "pick-up failed".
[0227] It should be noted that Fig.11 The picking operation triggered for the repair resources placed in the game scene can be automatically triggered by the player controlling the virtual character to move to the interactive range of the repair resource, or it can be triggered by the player controlling the virtual character to move to the placement location of the repair resource and then controlling the virtual character to pick up the repair resource. This application does not specifically limit this.
[0228] like Fig.12 , which is a display schematic diagram of purchasing repair resources in the method for repairing virtual props provided in an embodiment of the present application, Fig.12 The game interface (12-a) and the game interface (12-b) are provided with a display interface 319 of a virtual store. The display interface 319 of the virtual store can be a response to the Fig.11The interface displayed by the touch operation of the store control 320 in the game interface (11-a) in the virtual store, the display interface 319 of the virtual store includes a purchase interface 319-1 for virtual consumable props and a control 319-2 for triggering a purchase operation, the purchase interface 319-1 for virtual consumable props includes at least one purchase window, one of which contains a repair resource 308. When the repair resources owned by the virtual character reach the upper limit of the owned quantity, after the purchase operation is triggered for the repair resource 308, the game interface (12-a) will switch to the game interface (12-b), and the game interface (12-b) will display a display box 502 containing "Purchase Failed". It should be noted that Fig.12 The purchase operation triggered for the repair resource 308 may be to first select the purchase window of the repair resource 308 and then select the control 319-2.
[0229] Optionally, in order to enhance the user's gaming experience, the upper limit of the number of repair resources corresponding to the virtual character may be allowed to be expanded. Therefore, the virtual prop repair method provided in the embodiment of the present application may also include the following steps:
[0230] In response to the expansion instruction for the upper limit of the owned quantity, the upper limit of the owned quantity of the repair resources set by the virtual character is increased.
[0231] In specific implementation, the capacity expansion instruction may be issued through a capacity expansion operation, and the capacity expansion operation may specifically be: purchasing an expansion box in a virtual store that expands the upper limit of the owned quantity.
[0232] In addition, the virtual props held by the virtual character can also be repaired through the player's operation.
[0233] Therefore, while the virtual character is holding the second virtual prop, the method for repairing the virtual prop provided in the embodiment of the present application may further include the following steps:
[0234] In response to a repair operation on the second virtual prop held by the virtual character, the second virtual prop is repaired.
[0235] It can be understood that the above-mentioned repair operation can be a trigger operation for repairing the control, a voice command operation, an air gesture operation or a shortcut key operation.
[0236] When the repair operation is a trigger operation for the displayed repair control, the trigger operation may be a click operation, a slide operation, a press operation, a drag operation, etc. This embodiment does not specifically limit the triggering method of the trigger operation for the displayed repair control.
[0237] like Fig.13, is a display diagram of an example of a repair control in the virtual prop repair method provided in an embodiment of the present application. The game interface includes a virtual character 301 in the game scene, a prop list and a repair control 321. The virtual character 301 currently holds a virtual knife 309. The player can select the repair control 321 to repair the virtual knife 309. Fig.13 The display method of the repair control shown in the figure is only an example and is not intended to limit the repair control provided in the embodiment of the present application.
[0238] It should be noted that in the present application, during the process of repairing the second virtual prop held in hand, the virtual character can be allowed to use the second virtual prop to attack, and can respond to the second game attack instruction to stop repairing the second virtual prop currently in the second repair progress, and control the virtual character to hold the second virtual prop in the second repair progress to attack. It should be noted that in the present application, the virtual character holding the virtual prop to attack refers to the virtual character holding the virtual prop to attack.
[0239] Corresponding to the method for repairing a virtual item provided in the first embodiment of the present application, the second embodiment of the present application further provides a device for repairing a virtual item, such as Fig.14 As shown, the virtual prop repair device 1400 includes:
[0240] The repair unit 1401 is configured to repair the first virtual item in the virtual backpack corresponding to the virtual character in response to the durability value of the first virtual item satisfying the repair condition;
[0241] The pausing repairing unit 1402 is configured to control the virtual character to hold the first virtual prop at the first repairing progress in response to a selection operation on the first virtual prop being repaired;
[0242] The control unit 1403 is used to control the virtual character to hold the first virtual prop in the first repair progress to perform an attacking behavior in response to the first game attack instruction.
[0243] Optionally, the repair unit 1401 is specifically used for:
[0244] Acquire the first virtual item in the virtual backpack whose durability value satisfies the repair condition;
[0245] The first virtual items are repaired according to a repair order of the first virtual items whose durability values satisfy a repair condition.
[0246] Optionally, the repair unit 1401 is specifically used for:
[0247] According to the repair sequence of the first virtual items whose durability values satisfy a repair condition, a preset number of the first virtual items in the repair sequence are repaired.
[0248] Optionally, the repair sequence includes at least one of the following:
[0249] The first repair order is to repair the pre-selected virtual props first, the second repair order is to repair according to the preset prop arrangement order, the third repair order is to repair according to the prop durability value from low to high, the fourth repair order is to repair according to the prop rarity from high to low, the fifth repair order is to repair according to the prop level from high to low, and the sixth repair order is to repair according to the prop usage frequency from high to low.
[0250] Optionally, the repairing unit 1401 is further specifically configured to: after the attacking behavior ends, repair the first virtual prop according to the first repair progress.
[0251] Optionally, the repair unit 1401 is specifically used for:
[0252] Determine a first durability value of the first virtual item after the attacking behavior according to the usage data of the first virtual item during the attacking behavior and the first repair progress;
[0253] The first virtual item is repaired according to the first durability value.
[0254] Optionally, the repair unit 1401 is specifically used for:
[0255] In response to an uninstallation operation triggered for the first virtual prop held by the virtual character, a picture showing that the first virtual prop is not held by the virtual character is displayed, and the first virtual prop is repaired according to the first durability value.
[0256] Optionally, the virtual character holds a second virtual prop, and the control unit 1403 is further configured to:
[0257] In response to the second game attack instruction, the virtual character is controlled to hold the second virtual prop to perform an attacking behavior.
[0258] Optionally, the repair unit 1401 is specifically used for:
[0259] While the virtual character is holding the second virtual prop, in response to the durability value of the first virtual prop in the virtual backpack corresponding to the virtual character meeting a repair condition, repairing the first virtual prop;
[0260] or,
[0261] During the period when the virtual character holds the second virtual item to perform an attack, in response to the durability value of the first virtual item in the virtual backpack corresponding to the virtual character meeting a repair condition, the first virtual item is repaired.
[0262] Optionally, the pause repair unit 1402 is specifically configured to:
[0263] In response to the selection operation on the first virtual prop being repaired, the second virtual prop held by the virtual character is switched to the first virtual prop at the first repair progress.
[0264] Optionally, the virtual prop repairing device 1400 further includes a display unit, and the display unit is used to:
[0265] Display a prop list, wherein the prop list includes prop information of the virtual prop currently held by the virtual character and prop information of the first virtual prop pre-selected as a backup; the virtual props displayed in the prop list are props selected by the player operating the virtual character from the virtual backpack.
[0266] Optionally, the display unit is further used for:
[0267] A progress indicator is displayed to indicate the repair progress of the first virtual item.
[0268] Optionally, the display unit is further specifically used for:
[0269] If the first virtual item is being repaired, the progress indicator is presented in the form of a growing progress bar;
[0270] If the first virtual item is in the process of being repaired and suspended, the progress indicator is presented in a manner that the progress bar stops growing.
[0271] Optionally, the display unit is further used for:
[0272] In response to the first virtual prop being repaired, the first virtual prop is highlighted in the prop list.
[0273] Optionally, the progress indicator is at least one of a progress bar, a percentage, a remaining time, and a remaining number of uses;
[0274] Among them, the progress bar reads the progress as time changes, and the first virtual prop is repaired when the progress of the progress bar is full, the percentage is used to indicate the proportion of the completed repair part of the first virtual prop to the total repair part, the remaining time is the difference between the total repair time and the repaired time corresponding to the first virtual prop, the remaining number of uses is the sum of the remaining number of uses corresponding to the first virtual prop when no repair is performed and the number of uses restored during the repair process, and the first virtual prop is repaired when the remaining number of uses reaches a preset maximum number of uses.
[0275] Optionally, the repair unit 1401 is specifically used for:
[0276] Obtaining the number of repair resources that the virtual character has in the current game for repairing virtual props;
[0277] Determining a repairable durability value according to the amount of the repair resource;
[0278] The first virtual item is repaired with the repairable durability value.
[0279] Optionally, the repair unit 1401 is further used for:
[0280] In response to a pick-up operation for a repair resource in the game scene, determining the repair resource picked up by the pick-up operation as a repair resource owned by the virtual character in the current game match; or
[0281] In response to a purchase operation for a repair resource, the repair resource purchased by the purchase operation is determined as the repair resource owned by the virtual character in the current game match.
[0282] Optionally, the virtual character is provided with an upper limit on the number of repair resources it can possess, and the repair unit 1401 is further configured to:
[0283] When the number of repair resources owned by the virtual character reaches the upper limit, displaying a message that the repair resource has failed to be picked up according to the picking operation; or
[0284] According to the purchase operation, information indicating that the purchase of the repair resource has failed is displayed.
[0285] Optionally, the repair unit 1401 is further used for:
[0286] In response to the expansion instruction for the upper limit of the owned quantity, the upper limit of the owned quantity of the repair resources set by the virtual character is increased.
[0287] Optionally, the repair unit 1401 is specifically used for:
[0288] Repairing the pre-selected first virtual prop according to the first repair sequence;
[0289] In response to the completion of repair of the pre-selected first virtual prop, the virtual props in the first virtual props except the pre-selected first virtual prop are repaired according to one of the second repair order, the third repair order, the fourth repair order, the fifth repair order, and the sixth repair order.
[0290] Optionally, the control unit 1403 is further configured to:
[0291] In a case where the virtual character does not hold a virtual prop, in response to a selection instruction for the second virtual prop in the virtual backpack, the virtual character is controlled to hold the second virtual prop.
[0292] Optionally, the durability value includes any one of the following: remaining number of uses, remaining usage time, and damage degree of item components;
[0293] If the durability value is the remaining number of uses, the repair condition is that the remaining number of uses is less than the preset maximum number of uses; if the durability value is the remaining usage time, the repair condition is that the remaining usage time is less than the preset maximum usage time; if the durability value is the damage degree of the prop component, the repair condition is that the damage degree of the prop component is greater than or equal to the preset damage degree.
[0294] Optionally, when the durability value is the remaining number of uses, the repair unit 1401 is specifically used to:
[0295] Subtract the number of times the first virtual item is used in the attacking behavior from the remaining number of times the first virtual item is used as indicated by the first repair progress to obtain an updated remaining number of times;
[0296] The updated remaining number of uses is determined as the first durability value.
[0297] Optionally, the repair unit 1401 is further used for:
[0298] In response to a repair operation on the second virtual prop held by the virtual character, the second virtual prop is repaired.
[0299] Optionally, the pause repair unit 1402 is further configured to:
[0300] In response to the selection operation, the repair of the first virtual item currently in the first repair progress is stopped.
[0301] Optionally, the repair operation includes a trigger operation on the displayed repair control.
[0302] Corresponding to the method for repairing a virtual prop provided in the first embodiment of the present application, the third embodiment of the present application further provides an electronic device for repairing a virtual prop. Fig.15 As shown, the electronic device 1500 includes: a processor 1501; and a memory 1502, which is used to store a program of a method for repairing a virtual item. After the device is powered on and the program of the method for repairing a virtual item is run by the processor, the following steps are performed:
[0303] In response to the durability value of the first virtual item in the virtual backpack corresponding to the virtual character satisfying the repair condition, repairing the first virtual item;
[0304] In response to a selection operation on the first virtual prop being repaired, controlling the virtual character to hold the first virtual prop of the first repair progress;
[0305] In response to a first game attack instruction, the virtual character is controlled to hold the first virtual prop at the first repair progress to perform an attacking behavior.
[0306] Corresponding to the virtual item repair method provided in the first embodiment of the present application, the fourth embodiment of the present application provides a computer-readable storage medium storing a program of the virtual item repair method, the program is executed by a processor to perform the following steps:
[0307] In response to the durability value of the first virtual item in the virtual backpack corresponding to the virtual character satisfying the repair condition, repairing the first virtual item;
[0308] In response to a selection operation on the first virtual prop being repaired, controlling the virtual character to hold the first virtual prop of the first repair progress;
[0309] In response to a first game attack instruction, the virtual character is controlled to hold the first virtual prop at the first repair progress to perform an attacking behavior.
[0310] It should be noted that for the detailed description of the devices, electronic devices and computer-readable storage media provided in the second, third and fourth embodiments of the present application, reference can be made to the relevant description of the first embodiment of the present application, and no further details will be given here.
[0311] Although the present application is disclosed as above in the form of a preferred embodiment, it is not intended to limit the present application. Any technical personnel in this field may make possible changes and modifications without departing from the spirit and scope of the present application. Therefore, the scope of protection of the present application shall be based on the scope defined by the claims of the present application.
[0312] In a typical configuration, a node device in a blockchain includes one or more processors (CPU), input / output interfaces, network interfaces, and memory.
[0313] The memory may include non-permanent storage in a computer-readable medium, random access memory (RAM) and / or non-volatile memory in the form of read-only memory (ROM) or flash RAM. The memory is an example of a computer-readable medium.
[0314] 1. Computer-readable media includes permanent and non-permanent, removable and non-removable media that can be used to store information by any method or technology. Information can be computer-readable instructions, data structures, program modules or other data. Examples of computer storage media include, but are not limited to, phase change memory (PRAM), static random access memory (SRAM), dynamic random access memory (DRAM), random access memory (RAM) of other attributes, read-only memory (ROM), electrically erasable programmable read-only memory (EEPROM), flash memory or other memory technology, compact disk read-only memory (CD-ROM), digital versatile disk (DVD) or other optical storage, magnetic cassettes, magnetic tape magnetic disk storage or other magnetic storage media or any other non-transmission media that can be used to store information that can be accessed by a computing device. As defined in this article, computer-readable media does not include non-transitory media such as modulated data signals and carrier waves.
[0315] 2. Those skilled in the art should understand that the embodiments of the present application can be provided as methods, systems or computer program products. Therefore, the present application can take the form of a complete hardware embodiment, a complete software embodiment or an embodiment combining software and hardware. Moreover, the present application can take the form of a computer program product implemented on one or more computer-usable storage media (including but not limited to disk storage, CD-ROM, optical storage, etc.) containing computer-usable program code.
[0316] Although the present application is disclosed as above in the form of a preferred embodiment, it is not intended to limit the present application. Any technical personnel in this field may make possible changes and modifications without departing from the spirit and scope of the present application. Therefore, the scope of protection of the present application shall be based on the scope defined by the claims of the present application.
Claims
1. A method for repairing a virtual prop, characterized in that: The method comprises: In response to a durability value of a first virtual item in a virtual backpack corresponding to the virtual character satisfying a repair condition, automatically repairing the first virtual item, wherein the first virtual item is not currently held by the virtual character; In response to a selection operation on the first virtual prop being repaired, controlling the virtual character to hold the first virtual prop at a first repairing progress; In response to a first game attack instruction, the virtual character is controlled to hold the first virtual prop at the first repair progress to perform an attacking behavior.
2. The method according to claim 1, characterized in that In response to the durability value of the first virtual item in the virtual backpack corresponding to the virtual character satisfying the repair condition, automatically repairing the first virtual item includes: Acquire the first virtual item in the virtual backpack whose durability value satisfies the repair condition; The first virtual items are repaired according to a repair order of the first virtual items whose durability values satisfy a repair condition.
3. The method according to claim 2, characterized in that The automatically repairing the first virtual prop according to the repair order of the first virtual prop whose durability value satisfies the repair condition includes: According to the repair sequence of the first virtual items whose durability values satisfy a repair condition, a preset number of the first virtual items in the repair sequence are repaired.
4. The method according to claim 2, characterized in that: The repair sequence includes at least one of the following: The first repair order is to repair the pre-selected virtual props first, the second repair order is to repair according to the preset prop arrangement order, the third repair order is to repair according to the arrangement order of the prop durability value, the fourth repair order is to repair according to the arrangement order of the prop rarity, the fifth repair order is to repair according to the arrangement order of the prop level, and the sixth repair order is to repair according to the arrangement order of the prop usage frequency.
5. The method according to claim 1, characterized in that The method further includes: after the attack behavior ends, repairing the first virtual prop according to the first repair progress.
6. The method according to claim 5, characterized in that The repairing the first virtual prop according to the first repair progress includes: Determine a first durability value of the first virtual item after the attacking behavior according to the usage data of the first virtual item during the attacking behavior and the first repair progress; The first virtual item is repaired according to the first durability value.
7. The method according to claim 5, characterized in that Repairing the first virtual item according to the first durability value includes: In response to an uninstallation operation triggered for the first virtual prop held by the virtual character, a picture showing that the first virtual prop is not held by the virtual character is displayed, and the first virtual prop is repaired according to the first durability value.
8. The method according to claim 1, characterized in that The virtual character holds a second virtual prop, and the method further includes: In response to the second game attack instruction, the virtual character is controlled to hold the second virtual prop to perform an attacking behavior.
9. The method according to claim 8, characterized in that In response to the durability value of the first virtual item in the virtual backpack corresponding to the virtual character satisfying the repair condition, automatically repairing the first virtual item includes: During the period when the virtual character holds the second virtual prop, in response to the durability value of the first virtual prop in the virtual backpack corresponding to the virtual character meeting the repair condition, repairing the first virtual prop; or, During the period when the virtual character holds the second virtual item to perform an attack, in response to the durability value of the first virtual item in the virtual backpack corresponding to the virtual character meeting a repair condition, the first virtual item is repaired.
10. The method according to claim 8, characterized in that In response to a selection operation on the first virtual prop being repaired, controlling the virtual character to hold the first virtual prop of the first repair progress includes: In response to the selection operation on the first virtual prop being repaired, the second virtual prop held by the virtual character is switched to the first virtual prop at the first repair progress.
11. The method according to claim 1, characterized in that: The method further comprises: Display a prop list, wherein the prop list includes prop information of the virtual prop currently held by the virtual character and prop information of the first virtual prop pre-selected as a backup; the virtual props displayed in the prop list are props selected by the player operating the virtual character from the virtual backpack.
12. The method according to claim 1, characterized in that The method further comprises: A progress indicator is displayed to indicate the repair progress of the first virtual item.
13. The method according to claim 12, characterized in that The progress indicator includes a progress bar; the progress indicator displayed to indicate the repair progress corresponding to the first virtual prop includes: If the first virtual item is being repaired, the progress indicator is presented in the form of a growing progress bar; If the first virtual item is in the process of being repaired and suspended, the progress indicator is presented in a manner that the progress bar stops growing.
14. The method according to claim 11, characterized in that The method further comprises: In response to the first virtual prop being repaired, the first virtual prop is highlighted in the prop list.
15. The method according to claim 12, characterized in that The progress indicator is at least one of a progress bar, a percentage, a remaining time, and a remaining number of uses; Among them, the progress bar reads the progress as time changes, and the first virtual prop is repaired when the progress of the progress bar is full, the percentage is used to indicate the proportion of the completed repair part of the first virtual prop to the total repair part, the remaining time is the difference between the total repair time and the repaired time corresponding to the first virtual prop, the remaining number of uses is the sum of the remaining number of uses corresponding to the first virtual prop when no repair is performed and the number of uses restored during the repair process, and the first virtual prop is repaired when the remaining number of uses reaches a preset maximum number of uses.
16. The method according to claim 1, characterized in that The automatically repairing the first virtual prop comprises: Obtaining the number of repair resources that the virtual character has in the current game for repairing virtual props; Determining a repairable durability value according to the amount of the repair resource; The first virtual item is repaired with the repairable durability value.
17. The method according to claim 16, characterized in that The method further comprises: In response to a pick-up operation for a repair resource in the game scene, determining the repair resource picked up by the pick-up operation as a repair resource owned by the virtual character in the current game match; or In response to a purchase operation for a repair resource, the repair resource purchased by the purchase operation is determined as the repair resource owned by the virtual character in the current game match.
18. The method according to claim 17, characterized in that The virtual character is provided with an upper limit on the number of repair resources it possesses, and the method further comprises: When the number of repair resources owned by the virtual character reaches the upper limit, displaying a message that the repair resource has failed to be picked up according to the picking operation; or According to the purchase operation, information indicating that the purchase of the repair resource has failed is displayed.
19. The method according to claim 18, characterized in that The method further comprises: In response to the expansion instruction for the upper limit of the owned quantity, the upper limit of the owned quantity of the repair resources set by the virtual character is increased.
20. The method according to claim 4, characterized in that The repairing of the first virtual item according to the repairing order of the first virtual item whose durability value satisfies the repairing condition comprises: Repairing the pre-selected first virtual prop according to the first repair sequence; In response to the completion of repair of the pre-selected first virtual prop, the virtual props in the first virtual props except the pre-selected first virtual prop are repaired according to one of the second repair order, the third repair order, the fourth repair order, the fifth repair order, and the sixth repair order.
21. The method according to claim 8, characterized in that The method further comprises: In a case where the virtual character does not hold a virtual prop, in response to a selection instruction for the second virtual prop in the virtual backpack, the virtual character is controlled to hold the second virtual prop.
22. The method according to claim 6, characterized in that The durability value includes any one of the following: remaining number of uses, remaining usage time, and damage degree of item components; If the durability value is the remaining number of uses, the repair condition is that the remaining number of uses is less than the preset maximum number of uses; if the durability value is the remaining usage time, the repair condition is that the remaining usage time is less than the preset maximum usage time; if the durability value is the damage degree of the prop component, the repair condition is that the damage degree of the prop component is greater than or equal to the preset damage degree.
23. The method according to claim 22, characterized in that In a case where the durability value is the remaining number of uses, determining the first durability value of the first virtual item after the attacking behavior according to the usage data of the first virtual item in the attacking behavior and the first repair progress includes: Subtract the number of times the first virtual item is used in the attacking behavior from the remaining number of times the first virtual item is used as indicated by the first repair progress to obtain an updated remaining number of times; The updated remaining number of uses is determined as the first durability value.
24. The method according to claim 8, characterized in that The method further comprises: In response to a repair operation on the second virtual prop held by the virtual character, the second virtual prop is repaired.
25. The method according to claim 24, characterized in that The repair operation includes a trigger operation for the displayed repair control.
26. The method according to claim 1, characterized in that The method further comprises: In response to the selection operation, the repair of the first virtual item currently in the first repair progress is stopped.
27. A virtual prop repair device, characterized in that: The device comprises: a repair unit, configured to automatically repair a first virtual item in a virtual backpack corresponding to the virtual character in response to the durability value of the first virtual item satisfying a repair condition, wherein the first virtual item is not currently held by the virtual character; a pause repairing unit, configured to control the virtual character to hold the first virtual prop at a first repairing progress in response to a selection operation on the first virtual prop being repaired; The control unit is used to control the virtual character to hold the first virtual prop at the first repair progress to perform an attacking behavior in response to a first game attack instruction.
28. An electronic device, characterized in that: include: processor; as well as The memory is used to store a data processing program. After the electronic device is powered on and the program is run by the processor, the method as described in any one of claims 1 to 26 is executed.
29. A computer-readable storage medium, characterized in that: A data processing program is stored, and the program is run by a processor to execute the method according to any one of claims 1 to 26.
